comparison index.html @ 607:328f24798462 multiple-tests-concatenation

working, hacked together.
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 11 Mar 2016 16:49:47 +0000
parents d7b1b270c13a
children
comparison
equal deleted inserted replaced
583:6833d8c2b52e 607:328f24798462
30 var searchQueries = search.split('&'); 30 var searchQueries = search.split('&');
31 for (var i in searchQueries) 31 for (var i in searchQueries)
32 { 32 {
33 // Split each request into 33 // Split each request into
34 searchQueries[i] = searchQueries[i].split('='); 34 searchQueries[i] = searchQueries[i].split('=');
35 if (searchQueries[i][0] == "url") 35 var key = searchQueries[i][0];
36 var string = searchQueries[i][1];
37 if (key === "url")
36 { 38 {
37 url = searchQueries[i][1]; 39 url = string;
40 }
41 if (key === "returnUrl"){
42 returnUrl = decodeURIComponent(string);
38 } 43 }
39 } 44 }
40 loadProjectSpec(url); 45 loadProjectSpec(url+"?"+Math.random()); // force resource reload, in case the server is lazy
41 window.onbeforeunload = function() { 46 window.onbeforeunload = function() {
42 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?"; 47 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
43 }; 48 };
44 } 49 }
45 </script> 50 </script>
47 52
48 <body> 53 <body>
49 <!-- Load up the default page interface allowing for project setting loads, even if hard-coded--> 54 <!-- Load up the default page interface allowing for project setting loads, even if hard-coded-->
50 <!-- Actual test interface design should be contained in the .js for ease of dynamic content--> 55 <!-- Actual test interface design should be contained in the .js for ease of dynamic content-->
51 <div id='topLevelBody'> 56 <div id='topLevelBody'>
52 <span>Web Audio Evaluation Toolbox</span> 57 <span>Loading Web Audio Evaluation Toolbox ...</span>
58 <noscript>Javascript must be enabled in your browsers in order to be able to view this website</noscript>
53 </div> 59 </div>
54 <div id="popupHolder" class="popupHolder" style="visibility: hidden; z-index: -1"> 60 <div id="popupHolder" class="popupHolder" style="visibility: hidden; z-index: -1">
55 <div id="popupContent"> 61 <div id="popupContent">
56 <div id="popupTitleHolder" style="text-align: center"> 62 <div id="popupTitleHolder" style="text-align: center">
57 <span id="popupTitle"></span> 63 <span id="popupTitle"></span>