Misc cleanup.

This commit is contained in:
Neil Fraser
2016-11-05 00:15:39 -07:00
parent 917b8ff542
commit 5b033e2f7b
10 changed files with 21 additions and 19 deletions

View File

@@ -1,5 +1,3 @@
<!-- TODO(quachtina96): move the CSS out to a separate file -->
<!DOCTYPE html>
<html>
<head>
@@ -37,11 +35,12 @@
var init = function() {
blocklyFactory = new AppController();
blocklyFactory.init();
window.addEventListener('beforeunload', blocklyFactory.confirmLeavePage);
};
window.addEventListener('load', init);
</script>
</head>
<body onbeforeunload="return blocklyFactory.confirmLeavePage()">
<body>
<h1><a href="https://developers.google.com/blockly/">Blockly</a> &gt;
<a href="../index.html">Demos</a> &gt; Blockly Developer Tools
<button id="helpButton" title="View documentation in new window.">