annotate index.html @ 1391:7fba5afe041e

Will attempt to load XML only if url is set
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 18 Dec 2015 18:29:57 +0000
parents 1e85294554fe
children 8540d153caec
rev   line source
b@1390 1 <!DOCTYPE html>
b@1390 2 <html lang="en">
b@1390 3 <head>
b@1390 4 <meta charset="utf-8" />
b@1390 5
b@1390 6
b@1390 7 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
b@1390 8 Remove this if you use the .htaccess -->
b@1390 9 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
b@1390 10
b@1390 11 <title>Web Audio Evaluation Tool</title>
b@1390 12 <meta name="description" content="" />
b@1390 13 <meta name="author" content="" />
b@1390 14
b@1390 15 <!-- Load up the default core JS and CSS files-->
b@1390 16 <link rel='stylesheet' type='text/css' href='core.css'>
b@1390 17 <!-- Use jQuery hosted from Google CDN -->
b@1390 18 <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>-->
b@1390 19 <script src="jquery-2.1.4.js"></script>
b@1390 20 <script src='core.js'></script>
b@1390 21 <script src='loudness.js'></script>
b@1390 22 <script type="text/javascript">
b@1390 23 window.onbeforeunload = function() {
b@1390 24 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
b@1390 25 };
b@1390 26
b@1390 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
b@1390 28 if (window.location.search.length != 0)
b@1390 29 {
b@1390 30 var search = window.location.search.split('?')[1];
b@1390 31 // Now split the requests into pairs
b@1390 32 var searchQueries = search.split('&');
b@1390 33 for (var i in searchQueries)
b@1390 34 {
b@1390 35 // Split each request into
b@1390 36 searchQueries[i] = searchQueries[i].split('=');
b@1390 37 if (searchQueries[i][0] == "url")
b@1390 38 {
b@1390 39 url = searchQueries[i][1];
b@1390 40 }
b@1390 41 }
nickjillings@1391 42 loadProjectSpec(url);
b@1390 43 }
b@1390 44 </script>
b@1390 45 </head>
b@1390 46
b@1390 47 <body>
b@1390 48 <!-- Load up the default page interface allowing for project setting loads, even if hard-coded-->
b@1390 49 <!-- Actual test interface design should be contained in the .js for ease of dynamic content-->
b@1390 50 <div id='topLevelBody'>
b@1390 51 <h1>Web Audio Evaluation Tool</h1>
b@1390 52 <h2>Start menu </h2>
b@1390 53 <ul>
b@1390 54 <li><a href="index.html?url=example_eval/project.xml" target="_blank">APE interface test example</a></li>
b@1390 55 <li><a href="index.html?url=example_eval/mushra_example.xml" target="_blank">MUSHRA interface test example</a></li>
b@1390 56 <li><a href="test_create/test_create.html" target="_blank">Test creator</a></li>
b@1390 57 <li><a href="analyse.html" target="_blank">Analysis and diagnostics of results</a></li>
b@1390 58 </ul>
b@1390 59
b@1390 60 <br>
b@1390 61
b@1390 62 <ul>
b@1390 63 <li><a href="LICENSE.txt" target="_blank">License</a></li>
b@1390 64 <li><a href="CITING.txt" target="_blank">Citing</a></li>
b@1390 65 <li><a href="docs/Instructions/Instructions.pdf" target="_blank">Instructions</a></li>
b@1390 66 </ul>
b@1390 67
b@1390 68
b@1390 69 </div>
b@1390 70 </body>
b@1390 71 </html>