annotate index.html @ 650:ce3d4d6d01b8 Dev_main

Major updates. Specification Nodes now own file (specification.js). Updating Analysis to allow filtering based on survey responses.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 31 Mar 2016 13:31:42 +0100
parents d7b1b270c13a
children
rev   line source
b@75 1 <!DOCTYPE html>
b@75 2 <html lang="en">
b@75 3 <head>
b@75 4 <meta charset="utf-8" />
b@75 5
b@75 6
b@75 7 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
b@75 8 Remove this if you use the .htaccess -->
b@75 9 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
b@75 10
b@225 11 <title>Web Audio Evaluation Tool</title>
b@75 12 <meta name="description" content="" />
b@75 13 <meta name="author" content="" />
b@75 14
b@75 15 <!-- Load up the default core JS and CSS files-->
n@152 16 <link rel='stylesheet' type='text/css' href='core.css'>
b@75 17 <!-- Use jQuery hosted from Google CDN -->
nicholas@103 18 <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>-->
n@650 19 <script type="text/javascript" src="jquery-2.1.4.js"></script>
n@650 20 <script type="text/javascript" src='specification.js'></script>
n@650 21 <script type="text/javascript" src='core.js'></script>
n@650 22 <script type="text/javascript" src='loudness.js'></script>
n@650 23 <script type="text/javascript" src='xmllint.js'></script>
n@650 24 <script type="text/javascript" src='WAVE.js'></script>
b@75 25 <script type="text/javascript">
nicholas@420 26 // 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@420 27 if (window.location.search.length != 0)
nicholas@420 28 {
nicholas@420 29 var search = window.location.search.split('?')[1];
nicholas@420 30 // Now split the requests into pairs
nicholas@420 31 var searchQueries = search.split('&');
nicholas@420 32 for (var i in searchQueries)
nicholas@420 33 {
nicholas@420 34 // Split each request into
nicholas@420 35 searchQueries[i] = searchQueries[i].split('=');
nicholas@420 36 if (searchQueries[i][0] == "url")
nicholas@420 37 {
nicholas@420 38 url = searchQueries[i][1];
nicholas@420 39 }
nicholas@420 40 }
n@431 41 loadProjectSpec(url);
n@432 42 window.onbeforeunload = function() {
n@432 43 return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
n@432 44 };
nicholas@420 45 }
b@75 46 </script>
b@75 47 </head>
b@75 48
b@75 49 <body>
b@75 50 <!-- Load up the default page interface allowing for project setting loads, even if hard-coded-->
b@75 51 <!-- Actual test interface design should be contained in the .js for ease of dynamic content-->
b@75 52 <div id='topLevelBody'>
n@512 53 <span>Web Audio Evaluation Toolbox</span>
b@75 54 </div>
n@512 55 <div id="popupHolder" class="popupHolder" style="visibility: hidden; z-index: -1">
n@510 56 <div id="popupContent">
n@513 57 <div id="popupTitleHolder" style="text-align: center">
n@510 58 <span id="popupTitle"></span>
n@510 59 </div>
n@513 60 <div id="popupResponse"></div>
n@510 61 </div>
n@510 62 <button id="popup-proceed" class="popupButton">Next</button>
n@510 63 <button id="popup-previous" class="popupButton">Back</button>
n@510 64 </div>
n@510 65 <div class="testHalt" style="visibility: hidden; z-index: -2"></div>
b@75 66 </body>
b@75 67 </html>