Mercurial > hg > webaudioevaluationtool
changeset 680:d7bdfe8bf67e
Added page-exit checks
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 17 Apr 2015 10:06:20 +0100 |
parents | a79490e0fdc7 |
children | ab56aa2fe064 |
files | apeTool.html |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/apeTool.html Fri Apr 17 09:57:46 2015 +0100 +++ b/apeTool.html Fri Apr 17 10:06:20 2015 +0100 @@ -26,7 +26,11 @@ <!-- Use jQuery hosted from Google CDN --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src='core.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?"; + }; + </script> <!-- Uncomment the following script for automatic loading of projects --> <script> url = 'example_eval/project.xml'; //Project XML document location