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
function readTime() { | |
$fh.act({act:'getCurrentTime'}, function(res) { | |
// Convert the response into a jQuery Object | |
var resObj = $(res.response); | |
// Extract the element with the id of 'ct' - this is the element that contains the time | |
var time = resObj.find('#ct'); | |
// Display the time in-app using jQuery |
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
function getCurrentTime() { | |
var response = $fh.web({ | |
url: 'http://www.timeanddate.com/worldclock/city.html?n=78', | |
method: 'GET' | |
}); | |
return {'response': response.body}; | |
} |
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
#login: | |
{ background: url(../images/sprite.png) scroll 0 -410px no-repeat; | |
display:block; | |
width: 137px; | |
height: 40px; | |
} | |
#login:hover | |
{ | |
background-position: 160px -410px; |
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
<html> | |
<head> | |
<style> | |
<link href="style.css" rel="stylesheet" type="text/css" /> | |
</style> | |
</head> | |
<body> | |
<div id=”logo”></div> | |
<div id=”login”></div> |
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
#logo { | |
background: url(../images/sprite.png) scroll 0 0 no-repeat; | |
display:block; | |
width: 212px; | |
height: 35px; | |
} |
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
Example 1: | |
On your html document, create a div called ‘logo’: | |
<html> | |
<head> | |
<style> | |
<link href="style.css" rel="stylesheet" type="text/css" /> | |
</style> | |
</head> | |
<body> | |
<div id=”logo”></div> |
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.handlers({type:'back'}, function(){ | |
if(exit_app){ | |
return true; //This will close the app | |
} else { | |
return false; //This will keep the app active | |
} | |
}) |
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
{ | |
key: '<hex value of the key>' | |
} |
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.sec({ | |
act:'getkey', | |
params: | |
{keytype:'public|private|secret|modulu', | |
__cuid:'<optional-client unique device id>', | |
__session_id:'<optional-session id for the key>'} | |
}); |
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
{ | |
result:'success' | |
} |