Created
October 9, 2012 04:39
-
-
Save shikolay/3856645 to your computer and use it in GitHub Desktop.
Index file for SmartTV app experiments
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<title>Untitled Document</title> | |
<!--<link rel="stylesheet" type="text/css" href="style.css"/>--> | |
<!--<script src="main.js" type="text/javascript"></script>--> | |
</head> | |
<body onload="handleLoad()"> | |
<div id="alertbox"></div> | |
<script type="text/javascript"> | |
window.realAlert = window.alert; | |
window.alert = function (s) { | |
var alertnode = document.getElementById("alertbox"); | |
alertnode.innerHTML += s + "<br>"; | |
realAlert('#' + s + '#') | |
}; | |
function handleLoad() { | |
console.log('handleLoad()'); | |
if (window.curWidget) { | |
curWidget.setPreference('ready', 'true'); | |
} | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment