Skip to content

Instantly share code, notes, and snippets.

@shikolay
Created October 9, 2012 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikolay/3856645 to your computer and use it in GitHub Desktop.
Save shikolay/3856645 to your computer and use it in GitHub Desktop.
Index file for SmartTV app experiments
<!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