Mercurial > hg > webaudioevaluationtool
comparison 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 |
comparison
equal
deleted
inserted
replaced
1391:7fba5afe041e | 1444:5590afd89544 |
---|---|
18 <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>--> | 18 <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>--> |
19 <script src="jquery-2.1.4.js"></script> | 19 <script src="jquery-2.1.4.js"></script> |
20 <script src='core.js'></script> | 20 <script src='core.js'></script> |
21 <script src='loudness.js'></script> | 21 <script src='loudness.js'></script> |
22 <script type="text/javascript"> | 22 <script type="text/javascript"> |
23 window.onbeforeunload = function() { | |
24 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?"; | |
25 }; | |
26 | |
27 // SEARCH QUERY: By using the GET Request option ?url=loca/path/to/project.xml in the URL bar, you can load a project quickly | 23 // SEARCH QUERY: By using the GET Request option ?url=loca/path/to/project.xml in the URL bar, you can load a project quickly |
28 if (window.location.search.length != 0) | 24 if (window.location.search.length != 0) |
29 { | 25 { |
30 var search = window.location.search.split('?')[1]; | 26 var search = window.location.search.split('?')[1]; |
31 // Now split the requests into pairs | 27 // Now split the requests into pairs |
38 { | 34 { |
39 url = searchQueries[i][1]; | 35 url = searchQueries[i][1]; |
40 } | 36 } |
41 } | 37 } |
42 loadProjectSpec(url); | 38 loadProjectSpec(url); |
39 window.onbeforeunload = function() { | |
40 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?"; | |
41 }; | |
43 } | 42 } |
44 </script> | 43 </script> |
45 </head> | 44 </head> |
46 | 45 |
47 <body> | 46 <body> |