This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.ori( {}, | |
function(res){ | |
alert( 'current roation=' + res); | |
}, | |
function(code,errorprops,params) {...} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.notify(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.send( {to:'[email protected]',subject:'Hi There',body:'The message.'} ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.geo({interval: 0}, function(res){ | |
$fh.map({target: '#map_div', lat:res.lat, lon:res.lon, zoom:9}, function(map){ | |
console.log(map.map); | |
}, function(msg){ | |
console.log(msg); | |
}); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.log( {message:'your log message'} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.data( {act:'save', key:'foo', val:'bar'} ); | |
$fh.data( {key:'foo'}, function(res) { | |
alert( res.key+'='+res.val ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.geo( {interval:5000}, function(res){ | |
alert( 'lon='+res.lon+', lat='+res.lat+', alt='+res.alt+', at='+res.when); | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.geo( {interval:5000}, function(res){ | |
alert( 'lon='+res.lon+', lat='+res.lat+', alt='+res.alt+', at='+res.when); | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.geoip( function(res) { alert(JSON.stringify(res.geoip)); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
hashvalue:"<The hash value of the input text>" | |
} |