annotate index.html @ 805:08a3b497d6c4

Further Bug #1500 fix. Ensured checks are correctly binded by APE.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 18 Dec 2015 17:54:47 +0000
parents 43801b3d6131
children 8540d153caec
rev   line source
nicholas@763 1 <!DOCTYPE html>
nicholas@763 2 <html lang="en">
nicholas@763 3 <head>
nicholas@763 4 <meta charset="utf-8" />
nicholas@763 5
nicholas@763 6
nicholas@763 7 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
nicholas@763 8 Remove this if you use the .htaccess -->
nicholas@763 9 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
nicholas@763 10
nicholas@763 11 <title>Web Audio Evaluation Tool</title>
nicholas@763 12 <meta name="description" content="" />
nicholas@763 13 <meta name="author" content="" />
nicholas@763 14
nicholas@763 15 <!-- Load up the default core JS and CSS files-->
nicholas@763 16 <link rel='stylesheet' type='text/css' href='core.css'>
nicholas@763 17 <!-- Use jQuery hosted from Google CDN -->
nicholas@763 18 <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>-->
nicholas@763 19 <script src="jquery-2.1.4.js"></script>
nicholas@763 20 <script src='core.js'></script>
n@792 21 <script src='loudness.js'></script>
nicholas@763 22 <script type="text/javascript">
nicholas@763 23 window.onbeforeunload = function() {
nicholas@763 24 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
nicholas@763 25 };
nicholas@761 26
nicholas@761 27 var url = 'example_eval/project.xml';
nicholas@761 28 // SEARCH QUERY: By using the GET Request option ?url=loca/path/to/project.xml in the URL bar, you can load a project quickly
nicholas@761 29 if (window.location.search.length != 0)
nicholas@761 30 {
nicholas@761 31 var search = window.location.search.split('?')[1];
nicholas@761 32 // Now split the requests into pairs
nicholas@761 33 var searchQueries = search.split('&');
nicholas@761 34 for (var i in searchQueries)
nicholas@761 35 {
nicholas@761 36 // Split each request into
nicholas@761 37 searchQueries[i] = searchQueries[i].split('=');
nicholas@761 38 if (searchQueries[i][0] == "url")
nicholas@761 39 {
nicholas@761 40 url = searchQueries[i][1];
nicholas@761 41 }
nicholas@761 42 }
nicholas@761 43 }
nicholas@763 44 loadProjectSpec(url);
nicholas@763 45 </script>
nicholas@763 46 </head>
nicholas@763 47
nicholas@763 48 <body>
nicholas@763 49 <!-- Load up the default page interface allowing for project setting loads, even if hard-coded-->
nicholas@763 50 <!-- Actual test interface design should be contained in the .js for ease of dynamic content-->
nicholas@763 51 <div id='topLevelBody'>
nicholas@763 52 <p>HTML5 APE Tool</p>
nicholas@763 53 </div>
nicholas@763 54 </body>
nicholas@763 55 </html>