annotate index.html @ 1436:ab037c4210b7

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