changeset 2268:0c3111ca4566

Indx.html fix
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 20 Apr 2016 17:13:19 +0100
parents 0ea213bbe018
children 64bdcd9ad9a4 418e419ddfd1 e0b0dde71ab1
files index.html
diffstat 1 files changed, 47 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Wed Apr 20 17:08:31 2016 +0100
+++ b/index.html	Wed Apr 20 17:13:19 2016 +0100
@@ -1,7 +1,9 @@
 <!DOCTYPE html>
 <html lang="en">
-	<head>
+    <head>
 		<meta charset="utf-8" />
+
+
 		<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
 		Remove this if you use the .htaccess -->
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
@@ -9,6 +11,39 @@
 		<title>Web Audio Evaluation Tool</title>
 		<meta name="description" content="" />
 		<meta name="author" content="" />
+		
+		<!-- Load up the default core JS and CSS files-->
+		<link rel='stylesheet' type='text/css' href='css/core.css'>
+		<!-- Use jQuery hosted from Google CDN -->
+		<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>-->
+		<script type="text/javascript" src="js/jquery-2.1.4.js"></script>
+        <script type="text/javascript" src='js/specification.js'></script>
+		<script type="text/javascript" src='js/core.js'></script>
+		<script type="text/javascript" src='js/loudness.js'></script>
+		<script type="text/javascript" src='js/xmllint.js'></script>
+        <script type="text/javascript" src='js/WAVE.js'></script>
+		<script type="text/javascript">
+			// SEARCH QUERY: By using the GET Request option ?url=loca/path/to/project.xml in the URL bar, you can load a project quickly
+			if (window.location.search.length != 0)
+			{
+				var search = window.location.search.split('?')[1];
+				// Now split the requests into pairs
+				var searchQueries = search.split('&');
+				for (var i in searchQueries)
+				{
+					// Split each request into
+					searchQueries[i] = searchQueries[i].split('=');
+					if (searchQueries[i][0] == "url")
+					{
+						url = decodeURI(searchQueries[i][1]);
+					}
+				}
+				loadProjectSpec(url);
+				window.onbeforeunload = function() {
+					return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
+				};
+			}
+		</script>
 	</head>
 
 	<body>
@@ -31,5 +66,16 @@
 				<li><a href="docs/Instructions/Instructions.pdf" target="_blank">Instructions</a></li>
 			</ul>
 		</div>
+        <div id="popupHolder" class="popupHolder" style="visibility: hidden; z-index: -1">
+            <div id="popupContent">
+                <div id="popupTitleHolder" style="text-align: center">
+                    <span id="popupTitle"></span>
+                </div>
+                <div id="popupResponse"></div>
+            </div>
+            <button id="popup-proceed" class="popupButton">Next</button>
+            <button id="popup-previous" class="popupButton">Back</button>
+        </div>
+        <div class="testHalt" style="visibility: hidden; z-index: -2"></div>
 	</body>
 </html>