Mercurial > hg > webaudioevaluationtool
diff index.html @ 1444:5590afd89544
Merge. Reload will only generate alert if test is loaded.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Fri, 18 Dec 2015 18:31:26 +0000 |
parents | 7fba5afe041e ab037c4210b7 |
children | 56ee920d5d85 |
line wrap: on
line diff
--- a/index.html Fri Dec 18 18:29:57 2015 +0000 +++ b/index.html Fri Dec 18 18:31:26 2015 +0000 @@ -20,10 +20,6 @@ <script src='core.js'></script> <script src='loudness.js'></script> <script type="text/javascript"> - window.onbeforeunload = function() { - return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?"; - }; - // SEARCH QUERY: By using the GET Request option ?url=loca/path/to/project.xml in the URL bar, you can load a project quickly if (window.location.search.length != 0) { @@ -40,6 +36,9 @@ } } loadProjectSpec(url); + window.onbeforeunload = function() { + return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?"; + }; } </script> </head>