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
<script type="text/JavaScript"> | |
// Create a simple html notification: | |
setInterval(function() { | |
var notification = webkitNotifications.createHTMLNotification('notification.html'); | |
notification.show(); | |
}, 3600000); |
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 redirectTo(url) { | |
// Display new page | |
window.location = url; | |
} | |
function displyImage(imgURL) { | |
// Displays a Image | |
var $ = $jquery; | |
var img = $("<img />"); | |
img.attr({ | |
"src" : imgURL |
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 displayMessage(message, callback) { | |
// Display an alert-like message | |
var $ = $jquery; | |
if (isTesting) | |
console.log(message); | |
var bg = $('<div/>').appendTo("body"); | |
bg.css({ | |
"position" : "fixed", | |
"top" : 0, | |
"left" : 0, |