comparison test_create.html @ 2851:d1cde8698cc6

Starting on rewriting of test creator
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 26 Apr 2017 14:38:28 +0100
parents 464c6c6692d6
children f75db4482006
comparison
equal deleted inserted replaced
2850:6c41a874fd21 2851:d1cde8698cc6
1 <html> 1 <html>
2 2
3 <head> 3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <!-- This defines the test creator tool for the Web Audio Evaluation Toolbox --> 5 <!-- This defines the test creator tool for the Web Audio Evaluation Toolbox -->
6 <link rel='stylesheet' type="text/css" href="test_create/style.css" /> 6 <link rel="stylesheet" type="text/css" href="test_create/style.css" />
7 <link rel='stylesheet' type="text/css" href="test_create/custom.css" /> 7 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
8 <script type="text/javascript"> 8 <script src="js/jquery-2.1.4.js"></script>
9 window.onbeforeunload = function(e) { 9 <script src="js/angular.min.js"></script>
10 var message = 'If you leave the page now, any unsaved changes will be lost', 10 <script type="text/javascript" src="js/specification.js"></script>
11 e = e || window.event; 11 <script type="text/javascript" src="test_create/test_core.js"></script>
12 if (e) { 12 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
13 e.returnValue = message;
14 }
15 return message;
16 };
17 // Copy of Specifiation node from Core.js
18 13
19 </script> 14 <title>WAET 1.2.1 Test Creator</title>
20 <script src="js/jquery-2.1.4.js"></script>
21 <script type="text/javascript" src='js/specification.js'></script>
22 <script type="text/javascript" src="test_create/test_core.js"></script>
23 </head> 15 </head>
24 16
25 <body> 17 <body>
26 <div id="popupHolder"></div> 18 <div ng-app="creator" ng-controller="view">
27 <div id="blanket"></div> 19 <div id="pageRoot">
28 <div id="content"></div> 20 <h1>Web Audio Evaluation Tool - Test Creator</h1>
21 </div>
22 <div id="setupNode" class="node" ng-controller="setup">
23 <h2>Setup</h2>
24 <div class="attributes">
25 <div class="attribute">
26 <span>Interface: </span>
27 <input type="text" ng-model="specification.interface" />
28 </div>
29 <div class="attribute">
30 <span>Save URL: </span>
31 <input type="text" ng-model="specification.projectReturn" />
32 </div>
33 <div class="attribute">
34 <span>Exit URL: </span>
35 <input type="text" ng-model="specification.returnURL" />
36 </div>
37 <div class="attribute">
38 <span>Randomise Page Order: </span>
39 <input type="checkbox" ng-model="specification.randomiseOrder" />
40 </div>
41 <div class="attribute">
42 <span>Page Pool Size: </span>
43 <input type="number" ng-model="specification.poolSize" min="0" />
44 </div>
45 <div class="attribute">
46 <span>Loudness Normalisation (LUFS): </span>
47 <input type="number" ng-model="specification.loudness" max="0" />
48 </div>
49 <div class="attribute">
50 <span>Fixed Sampling Rate: </span>
51 <input type="number" ng-model="specification.sampleRate" min="0" />
52 </div>
53 <div class="attribute">
54 <span>Pre-Test audio calibration: </span>
55 <input type="checkbox" ng-model="specification.calibration" />
56 </div>
57 <div class="attribute">
58 <span>Global Cross-fade time: </span>
59 <input type="number" ng-model="specification.crossFade" min="0" step="0.1" />
60 </div>
61 <div class="attribute">
62 <span>Global Fragment Pre-Silence: </span>
63 <input type="number" ng-model="specification.preSilence" min="0" step="0.1" />
64 </div>
65 <div class="attribute">
66 <span>Global Fragment Post-Silence: </span>
67 <input type="number" ng-model="specification.preSilence" min="0" step="0.1" />
68 </div>
69 <div class="attribute">
70 <span>Play audio one-at-a-time: </span>
71 <input type="checkbox" ng-model="specification.playOne" />
72 </div>
73 </div>
74 </div>
75 <div id="popupHolder" ng-show="popupVisible">
76 <div ng-controller="introduction" class="popup" ng-show="popupVisible">
77 <div class="popupTitle" ng-switch="state">
78 <span ng-switch-when="0">Test Creator</span>
79 <span ng-switch-when="1">Create New Test</span>
80 </div>
81 <div class="popupContent container-fluid" ng-switch="state">
82 <div ng-switch-when="0">
83 <div>
84 <span>Welcome to the WAET test creator tool. This will allow you to create a new test from scratch to suit your testing needs. If you wish to update a test file, please drag and drop the XML document into the area below for processing, otherwise press 'Next' to start a new test. This tool generates files for the WAET 1.2.1 version.</span>
85 </div>
86 <div class="drag-drop" id="introdragdrop"><span>Upload XML here</span></div>
87 </div>
88 <div ng-switch-when="1">
89 <div>
90 <span>Please select the interface you would like to use below. Selecting an interface will give a brief description of the interface type.</span>
91 </div>
92 <div class="row">
93 <div class="col-md-6" style="overflow-y: scroll;height: 333px;">
94 <div class="new-test" ng-repeat="i in interfaces" ng-mouseover="mouseover(i.name)" ng-click="initialise(i.name)">
95 <label style="cursor:pointer">
96 <input type="radio" name="new-test" value="{{i.name}}" id="i.name" style="cursor:pointer" /> {{i.name}}
97 </label>
98 </div>
99 </div>
100 <div class="col-md-6">
101 <span>{{description}}</span>
102 </div>
103 </div>
104 </div>
105 </div>
106 <div class="popupButtons">
107 <button id="popupBack" type="button" class="btn btn-default" ng-show="state>0" ng-click="back()">Back</button>
108 <button id="popupNext" type="button" class="btn btn-default" ng-click="next()">Next</button>
109 </div>
110 </div>
111 </div>
112 <div id="screenblank" ng-show="popupVisible"></div>
113 </div>
29 </body> 114 </body>
30 115
31 </html> 116 </html>