This file contains hidden or 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.hash( parameters, function(res){ | |
| //success callback function. responses are passed into res object | |
| }, function(error){ | |
| //failure callback function. error contains the error message | |
| }); |
This file contains hidden or 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
| var res = $fh.hash( parameters ); //res will contain an 'error' key if it's failed |
This file contains hidden or 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.hash( | |
| { | |
| algorithm:'MD5|SHA1', | |
| text:'<Input text for hashing>' | |
| } | |
| ); |
This file contains hidden or 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>" | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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); | |
| }); | |
| }) |