annotate analyse.html @ 1420:5040ba7c3682

Bug #1482: Reference is red for APE.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 11 Dec 2015 11:06:21 +0000
parents 8147e19de61b
children babd5366db49 888292c88c33
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 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
nickjillings@1400 7 Remove this if you use the .htaccess -->
nickjillings@1400 8 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
nickjillings@1400 9
nickjillings@1400 10 <title>Analysis</title>
nickjillings@1400 11 <meta name="description" content="Show results from subjective evaluation">
nickjillings@1400 12 <meta name="author" content="Brecht De Man">
nickjillings@1400 13
nickjillings@1400 14 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
nickjillings@1400 15 <script type="text/javascript">
nickjillings@1400 16 // To aid 'one-page set-up' all scripts and CSS must be included directly in this file!
nickjillings@1400 17
nickjillings@1400 18 //google.load("visualization", "1", {packages:["corechart"]});
nickjillings@1400 19
nickjillings@1400 20 /*************
nickjillings@1400 21 * SETUP *
nickjillings@1400 22 *************/
nickjillings@1400 23 // folder where to find the XML files
nickjillings@1400 24 xmlFileFolder = "analysis_test";
nickjillings@1400 25 // array of XML files
nickjillings@1400 26 var xmlFiles = ['McG-A-2013-09.xml', 'McG-A-2014-03.xml', 'McG-A-2014-12.xml', 'McG-B-2013-09.xml',
nickjillings@1400 27 'McG-B-2014-03.xml', 'McG-B-2014-12.xml', 'McG-C-2013-09.xml', 'McG-C-2014-03.xml', 'McG-C-2014-12.xml',
nickjillings@1400 28 'McG-D-2013-09.xml', 'McG-D-2014-03.xml', 'McG-D-2014-12.xml', 'McG-E-2013-09.xml', 'McG-E-2014-03.xml',
nickjillings@1400 29 'McG-E-2014-12.xml', 'McG-F-2013-09.xml', 'McG-F-2014-03.xml', 'McG-F-2014-12.xml', 'McG-G-2014-03.xml',
nickjillings@1400 30 'McG-G-2014-12.xml', 'McG-H-2013-09.xml', 'McG-H-2014-03.xml', 'McG-H-2014-12.xml', 'McG-I-2013-09.xml',
nickjillings@1400 31 'McG-I-2014-03.xml', 'McG-J-2013-09.xml', 'McG-J-2014-03.xml', 'McG-K-2013-09.xml', 'McG-K-2014-03.xml',
nickjillings@1400 32 'McG-L-2013-09.xml', 'McG-L-2014-03.xml', 'McG-M-2013-09.xml', 'McG-M-2014-03.xml', 'McG-N-2013-09.xml',
nickjillings@1400 33 'McG-N-2014-03.xml', 'McG-O-2013-09.xml', 'McG-O-2014-03.xml', 'McG-P-2013-09.xml', 'McG-P-2014-03.xml',
nickjillings@1400 34 'McG-pro1-2013-09.xml', 'McG-pro1-2014-03.xml', 'McG-pro1-2014-12.xml', 'McG-pro2-2013-09.xml',
nickjillings@1400 35 'McG-pro2-2014-03.xml', 'McG-pro2-2014-12.xml', 'McG-Q-2014-12.xml', 'McG-R-2014-12.xml',
nickjillings@1400 36 'McG-S-2014-12.xml', 'McG-subA-2013-09.xml', 'McG-subA-2014-03.xml', 'McG-subB-2014-03.xml',
nickjillings@1400 37 'McG-subB-2014-12.xml', 'McG-subC-2013-09.xml', 'McG-subC-2014-03.xml', 'McG-subC-2014-12.xml',
nickjillings@1400 38 'McG-subD-2013-09.xml', 'McG-subD-2014-12.xml', 'McG-subE-2014-12.xml', 'McG-subG-2014-12.xml',
nickjillings@1400 39 'McG-subH-2013-09.xml', 'McG-T-2014-12.xml', 'McG-U-2014-12.xml', 'McG-V-2014-12.xml',
nickjillings@1400 40 'McG-W-2014-12.xml', 'McG-X-2014-12.xml', 'MG1-2013-09.xml', 'MG2-2013-09.xml', 'MG3-2013-09.xml',
nickjillings@1400 41 'MG4-2013-09.xml', 'MG5-2013-09.xml', 'MG6-2013-09.xml', 'MG7-2013-09.xml', 'MG8-2013-09.xml',
nickjillings@1400 42 'MG9-2013-09.xml', 'QM-1-1.xml', 'QM-1-2.xml', 'QM-10-1.xml', 'QM-11-1.xml', 'QM-11-2.xml', 'QM-12-1.xml', 'QM-12-2.xml',
nickjillings@1400 43 'QM-13-1.xml', 'QM-14-1.xml', 'QM-15-1.xml', 'QM-16-1.xml', 'QM-17-1.xml', 'QM-18-1.xml', 'QM-18-2.xml',
nickjillings@1400 44 'QM-18-3.xml', 'QM-19-1.xml', 'QM-2-1.xml', 'QM-2-2.xml', 'QM-2-3.xml', 'QM-20-1.xml', 'QM-20-2.xml',
nickjillings@1400 45 'QM-20-3.xml', 'QM-21-1.xml', 'QM-21-2.xml', 'QM-3-1.xml', 'QM-3-2.xml', 'QM-3-3.xml', 'QM-4-1.xml', 'QM-5-1.xml',
nickjillings@1400 46 'QM-5-2.xml', 'QM-6-1.xml', 'QM-6-2.xml', 'QM-7-1.xml', 'QM-7-2.xml', 'QM-8-1.xml', 'QM-9-1.xml',
nickjillings@1400 47 'PXL-L1.xml','PXL-L2.xml','PXL-L3.xml','PXL-L4.xml','PXL-L5.xml','PXL-S1.xml','PXL-S2.xml','PXL-S3.xml',
nickjillings@1400 48 'PXL-S4.xml','PXL-S5.xml','PXL-S6.xml','PXL-S7.xml','PXL-pro.xml','DU-A1.xml','DU-A2.xml','DU-B1.xml',
nickjillings@1400 49 'DU-B2.xml','DU-C1.xml','DU-C2.xml','DU-D1.xml','DU-D2.xml','DU-E1.xml','DU-F1.xml','DU-F2.xml','DU-G1.xml',
nickjillings@1400 50 'DU-G2.xml','DU-H1.xml','DU-H2.xml','DU-I2.xml','DU-J2.xml','DU-K1.xml','DU-K2.xml','DU-L1.xml','DU-L2.xml',
nickjillings@1400 51 'DU-M1.xml','DU-M2.xml','DU-N1.xml','DU-O1.xml','DU-O2.xml','DU-P1.xml','DU-P2.xml','DU-Q1.xml','DU-Q2.xml',
nickjillings@1400 52 'DU-R1.xml','DU-R2.xml','DU-S1.xml','DU-S2.xml','DU-T1.xml','DU-T2.xml','DU-U1.xml','DU-U2.xml','DU-U3.xml'];
nickjillings@1400 53 //['QM-1-1.xml','QM-2-1.xml','QM-2-2.xml','QM-2-3.xml','QM-3-1.xml','QM-3-2.xml','QM-4-1.xml','QM-5-1.xml','QM-5-2.xml','QM-6-1.xml','QM-6-2.xml','QM-7-1.xml','QM-7-2.xml','QM-8-1.xml','QM-9-1.xml','QM-10-1.xml','QM-11-1.xml','QM-12-1.xml','QM-12-2.xml','QM-13-1.xml','QM-14-1.xml','QM-15-1.xml','QM-16-1.xml','QM-17-1.xml','QM-18-1.xml','QM-18-2.xml','QM-18-3.xml','QM-19-1.xml','QM-20-1.xml','QM-20-2.xml','QM-20-3.xml','QM-21-1.xml','QM-21-2.xml'];
nickjillings@1400 54 //['McG-A-2014-03.xml','McG-B-2014-03.xml','McG-C-2014-03.xml','McG-D-2014-03.xml','McG-E-2014-03.xml','McG-F-2014-03.xml','McG-G-2014-03.xml','McG-H-2014-03.xml'];
nickjillings@1400 55
nickjillings@1400 56 //TODO: make retrieval of file names automatic / drag files on here
nickjillings@1400 57
nickjillings@1400 58 /****************
nickjillings@1400 59 * VARIABLES *
nickjillings@1400 60 ****************/
nickjillings@1400 61
nickjillings@1400 62 // Counters
nickjillings@1400 63 // How many files, audioholders, audioelementes and statements annotated (don't count current one)
nickjillings@1400 64 var numberOfFiles = -1;
nickjillings@1400 65 var numberOfaudioholders = -1;
nickjillings@1400 66 var numberOfaudioelementes = -1;
nickjillings@1400 67 var numberOfStatements = -1;
nickjillings@1400 68 var numberOfSkippedComments = 0;
nickjillings@1400 69
nickjillings@1400 70 // Object arrays
nickjillings@1400 71 var fileNameArray = [];
nickjillings@1400 72 var subjectArray = [];
nickjillings@1400 73 var audioholderArray = [];
nickjillings@1400 74 var audioelementArray = [];
nickjillings@1400 75
nickjillings@1400 76 // End of (file, audioholder, audioelement) flags
nickjillings@1400 77 var newFile = true;
nickjillings@1400 78 var newAudioHolder = true;
nickjillings@1400 79 var newAudioElement = true;
nickjillings@1400 80
nickjillings@1400 81 var fileCounter = 0; // file index
nickjillings@1400 82 var audioholderCounter=0; // audioholder index (current XML file)
nickjillings@1400 83 var audioelementCounter=0; // audioelement index (current audioholder)
nickjillings@1400 84 var statementNumber=0; // total number of statements
nickjillings@1400 85
nickjillings@1400 86 var root; // root of XML file
nickjillings@1400 87 var commentInFull = ''; // full comment
nickjillings@1400 88
nickjillings@1400 89 var playAudio = true; // whether corresponding audio should be played back
nickjillings@1400 90
nickjillings@1400 91 // // Measuring time
nickjillings@1400 92 // var lastTimeMeasured = -1; //
nickjillings@1400 93 // var durationLastAnnotation = -1; // duration of last annotation
nickjillings@1400 94 // var timeArray = [];
nickjillings@1400 95 // var MIN_TIME = 1.0; // minimum time counted as significant
nickjillings@1400 96 // var measurementPaused = false; // whether time measurement is paused
nickjillings@1400 97 // var timeInBuffer = 0; //
nickjillings@1400 98
nickjillings@1400 99 var topLevel;
nickjillings@1400 100 window.onload = function() {
nickjillings@1400 101 // Initialise page
nickjillings@1400 102 topLevel = document.getElementById('topLevelBody');
nickjillings@1400 103 var setup = document.createElement('div');
nickjillings@1400 104 setup.id = 'setupTagDiv';
nickjillings@1400 105 loadAllFiles();
nickjillings@1400 106 printSurveyData()
nickjillings@1400 107 //makePlots();
nickjillings@1400 108 // measure time at this point:
nickjillings@1400 109 lastTimeMeasured = new Date().getTime(); // in milliseconds
nickjillings@1400 110 };
nickjillings@1400 111
nickjillings@1400 112 // Assert function
nickjillings@1400 113 function assert(condition, message) {
nickjillings@1400 114 if (!condition) {
nickjillings@1400 115 message = message || "Assertion failed";
nickjillings@1400 116 if (typeof Error !== "undefined") {
nickjillings@1400 117 throw new Error(message);
nickjillings@1400 118 }
nickjillings@1400 119 throw message; // Fallback
nickjillings@1400 120 }
nickjillings@1400 121 }
nickjillings@1400 122
nickjillings@1400 123 function median(values) { // TODO: replace code by '50th percentile' - should be the same?
nickjillings@1400 124 values.sort( function(a,b) {return a - b;} );
nickjillings@1400 125 var half = Math.floor(values.length/2);
nickjillings@1400 126 if(values.length % 2)
nickjillings@1400 127 return values[half];
nickjillings@1400 128 else
nickjillings@1400 129 return (values[half-1] + values[half]) / 2.0;
nickjillings@1400 130 }
nickjillings@1400 131
nickjillings@1400 132 function percentile(values, n) {
nickjillings@1400 133 values.sort( function(a,b) {return a - b;} );
nickjillings@1400 134 // get ordinal rank
nickjillings@1400 135 var rank = Math.min(Math.floor(values.length*n/100), values.length-1);
nickjillings@1400 136 return values[rank];
nickjillings@1400 137 }
nickjillings@1400 138
nickjillings@1400 139 /***********************
nickjillings@1400 140 * TIME MEASUREMENT *
nickjillings@1400 141 ************************/
nickjillings@1400 142
nickjillings@1400 143 // measure time since last time this function was called
nickjillings@1400 144 function timeSinceLastCall() {
nickjillings@1400 145 // current time
nickjillings@1400 146 var currentTime = new Date().getTime();
nickjillings@1400 147 // calculate time difference
nickjillings@1400 148 var timeDifference = currentTime - lastTimeMeasured + timeInBuffer;
nickjillings@1400 149 // clear buffer (for pausing)
nickjillings@1400 150 timeInBuffer = 0;
nickjillings@1400 151 // remember last measured time
nickjillings@1400 152 lastTimeMeasured = currentTime;
nickjillings@1400 153 return timeDifference;
nickjillings@1400 154 }
nickjillings@1400 155
nickjillings@1400 156 // pause time measurement
nickjillings@1400 157 function pauseTimeMeasurement() {
nickjillings@1400 158 // UN-PAUSE
nickjillings@1400 159 if (measurementPaused) { // already paused
nickjillings@1400 160 // button shows 'pause' again
nickjillings@1400 161 document.getElementById('pauseButton').innerHTML = 'Pause';
nickjillings@1400 162 // toggle state
nickjillings@1400 163 measurementPaused = false;
nickjillings@1400 164 // resume time measurement
nickjillings@1400 165 lastTimeMeasured = new Date().getTime(); // reset time, discard time while paused
nickjillings@1400 166 } else { // PAUSE
nickjillings@1400 167 // button shows 'resume'
nickjillings@1400 168 document.getElementById('pauseButton').innerHTML = 'Resume';
nickjillings@1400 169 // toggle state
nickjillings@1400 170 measurementPaused = true;
nickjillings@1400 171 // pause time measurement
nickjillings@1400 172 timeInBuffer = timeSinceLastCall();
nickjillings@1400 173 }
nickjillings@1400 174 }
nickjillings@1400 175
nickjillings@1400 176 // show elapsed time on interface
nickjillings@1400 177 function showTimeElapsedInSeconds() {
nickjillings@1400 178 // if paused: un-pause
nickjillings@1400 179 if (measurementPaused) {
nickjillings@1400 180 pauseTimeMeasurement();
nickjillings@1400 181 }
nickjillings@1400 182
nickjillings@1400 183 // time of last annotation
nickjillings@1400 184 var lastAnnotationTime = timeSinceLastCall()/1000;
nickjillings@1400 185 document.getElementById('timeDisplay').innerHTML = lastAnnotationTime.toFixed(2);
nickjillings@1400 186 // average time over last ... annotations
nickjillings@1400 187 var avgAnnotationTime;
nickjillings@1400 188 var numberOfElementsToAverage =
nickjillings@1400 189 document.getElementById('numberOfTimeAverages').value;
nickjillings@1400 190 if (isPositiveInteger(numberOfElementsToAverage)) {
nickjillings@1400 191 avgAnnotationTime =
nickjillings@1400 192 calculateAverageTime(lastAnnotationTime,
nickjillings@1400 193 Number(numberOfElementsToAverage));
nickjillings@1400 194 } else {
nickjillings@1400 195 // change text field content to 'ALL'
nickjillings@1400 196 document.getElementById('numberOfTimeAverages').value = 'ALL';
nickjillings@1400 197 avgAnnotationTime = calculateAverageTime(lastAnnotationTime, -1);
nickjillings@1400 198 }
nickjillings@1400 199 document.getElementById('timeAverageDisplay').innerHTML = avgAnnotationTime.toFixed(2);
nickjillings@1400 200 }
nickjillings@1400 201
nickjillings@1400 202 // auxiliary function: is string a positive integer?
nickjillings@1400 203 // http://stackoverflow.com/questions/10834796/...
nickjillings@1400 204 // validate-that-a-string-is-a-positive-integer
nickjillings@1400 205 function isPositiveInteger(str) {
nickjillings@1400 206 var n = ~~Number(str);
nickjillings@1400 207 return String(n) === str && n >= 0;
nickjillings@1400 208 }
nickjillings@1400 209
nickjillings@1400 210 // calculate average time
nickjillings@1400 211 function calculateAverageTime(newTimeMeasurementInSeconds,numberOfPoints) {
nickjillings@1400 212 // append last measurement time to time array, if significant
nickjillings@1400 213 if (newTimeMeasurementInSeconds > MIN_TIME) {
nickjillings@1400 214 timeArray.push(newTimeMeasurementInSeconds);
nickjillings@1400 215 }
nickjillings@1400 216 // average over last N elements of this array
nickjillings@1400 217 if (numberOfPoints < 0 || numberOfPoints>=timeArray.length) { // calculate average over all
nickjillings@1400 218 var sum = 0;
nickjillings@1400 219 for (var i = 0; i < timeArray.length; i++) {
nickjillings@1400 220 sum += timeArray[i];
nickjillings@1400 221 }
nickjillings@1400 222 averageOfTimes = sum/timeArray.length;
nickjillings@1400 223 } else { // calculate average over specified number of times measured last
nickjillings@1400 224 var sum = 0;
nickjillings@1400 225 for (var i = timeArray.length-numberOfPoints; i < timeArray.length; i++) {
nickjillings@1400 226 sum += timeArray[i];
nickjillings@1400 227 }
nickjillings@1400 228 averageOfTimes = sum/numberOfPoints;
nickjillings@1400 229 }
nickjillings@1400 230 return averageOfTimes;
nickjillings@1400 231 }
nickjillings@1400 232
nickjillings@1400 233
nickjillings@1400 234 /********************************
nickjillings@1400 235 * PLAYBACK OF AUDIO *
nickjillings@1400 236 ********************************/
nickjillings@1400 237
nickjillings@1400 238 //PLAYaudioelement
nickjillings@1400 239 // Keep track of whether audio should be played
nickjillings@1400 240 function playFlagChanged(){
nickjillings@1400 241 playAudio = playFlag.checked; // global variable
nickjillings@1400 242
nickjillings@1400 243 if (!playAudio){ // if audio needs to stop
nickjillings@1400 244 audio.pause(); // stop audio - if anything is playing
nickjillings@1400 245 currently_playing = ''; // back to empty string so playaudioelement knows nothing's playing
nickjillings@1400 246 }
nickjillings@1400 247 }
nickjillings@1400 248
nickjillings@1400 249 // audioholder that's currently playing
nickjillings@1400 250 var currently_playing_audioholder = ''; // at first: empty string
nickjillings@1400 251 var currently_playing_audioelement = '';
nickjillings@1400 252 var audio;
nickjillings@1400 253
nickjillings@1400 254 // Play audioelement of audioholder if available, from start or from same position
nickjillings@1400 255 function playaudioelement(audioholderName, audioelementerName){
nickjillings@1400 256 if (playAudio) { // if enabled
nickjillings@1400 257 // get corresponding file from folder
nickjillings@1400 258 var file_location = 'audio/'+audioholderName + '/' + audioelementerName + '.mp3'; // fixed path and file name format
nickjillings@1400 259
nickjillings@1400 260 // if not available, show error/warning message
nickjillings@1400 261 //TODO ...
nickjillings@1400 262
nickjillings@1400 263 // if nothing playing yet, start playing
nickjillings@1400 264 if (currently_playing_audioholder == ''){ // signal that nothing is playing
nickjillings@1400 265 //playSound(audioBuffer);
nickjillings@1400 266 audio = new Audio(file_location);
nickjillings@1400 267 audio.loop = true; // loop when end is reached
nickjillings@1400 268 audio.play();
nickjillings@1400 269 currently_playing_audioholder = audioholderName;
nickjillings@1400 270 currently_playing_audioelement = audioelementerName;
nickjillings@1400 271 } else if (currently_playing_audioholder != audioholderName) {
nickjillings@1400 272 // if different audioholder playing, stop that and start playing
nickjillings@1400 273 audio.pause(); // stop audio
nickjillings@1400 274 audio = new Audio(file_location); // load new file
nickjillings@1400 275 audio.loop = true; // loop when end is reached
nickjillings@1400 276 audio.play(); // play audio from the start
nickjillings@1400 277 currently_playing_audioholder = audioholderName;
nickjillings@1400 278 currently_playing_audioelement = audioelementerName;
nickjillings@1400 279 } else if (currently_playing_audioelement != audioelementerName) {
nickjillings@1400 280 // if same audioholder playing, start playing from where it left off
nickjillings@1400 281 skipTime = audio.currentTime; // time to skip to
nickjillings@1400 282 audio.pause(); // stop audio
nickjillings@1400 283 audio = new Audio(file_location);
nickjillings@1400 284 audio.addEventListener('loadedmetadata', function() {
nickjillings@1400 285 this.currentTime = skipTime;
nickjillings@1400 286 console.log('Loaded '+audioholderName+'-'+audioelementerName+', playing from '+skipTime);
nickjillings@1400 287 }, false); // skip to same time when audio is loaded!
nickjillings@1400 288 audio.loop = true; // loop when end is reached
nickjillings@1400 289 audio.play(); // play from that time
nickjillings@1400 290 audio.currentTime = skipTime;
nickjillings@1400 291 currently_playing_audioholder = audioholderName;
nickjillings@1400 292 currently_playing_audioelement = audioelementerName;
nickjillings@1400 293 }
nickjillings@1400 294 // if same audioelement playing: keep on playing (i.e. do nothing)
nickjillings@1400 295 }
nickjillings@1400 296 }
nickjillings@1400 297
nickjillings@1400 298 /********************
nickjillings@1400 299 * READING FILES *
nickjillings@1400 300 ********************/
nickjillings@1400 301
nickjillings@1400 302 // Read necessary data from XML file
nickjillings@1400 303 function readXML(xmlFileName){
nickjillings@1400 304 if (window.XMLHttpRequest)
nickjillings@1400 305 {// code for IE7+, Firefox, Chrome, Opera, Safari
nickjillings@1400 306 xmlhttp=new XMLHttpRequest();
nickjillings@1400 307 }
nickjillings@1400 308 else
nickjillings@1400 309 {// code for IE6, IE5
nickjillings@1400 310 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
nickjillings@1400 311 }
nickjillings@1400 312 xmlhttp.open("GET",xmlFileName,false);
nickjillings@1400 313 xmlhttp.send();
nickjillings@1400 314 return xmlhttp.responseXML;
nickjillings@1400 315 }
nickjillings@1400 316
nickjillings@1400 317 // go over all files and compute relevant statistics
nickjillings@1400 318 function loadAllFiles() {
nickjillings@1400 319 // retrieve information from XMLs
nickjillings@1400 320
nickjillings@1400 321 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1400 322 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1400 323 xml = readXML(xmlFileName);
nickjillings@1400 324 if (xml != null) { // if file exists
nickjillings@1400 325 // append file name to array of file names
nickjillings@1400 326 fileNameArray.push(xmlFiles[fileIndex]);
nickjillings@1400 327
nickjillings@1400 328 // get root of XML file
nickjillings@1400 329 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1400 330
nickjillings@1400 331 // get subject ID, add to array if not already there
nickjillings@1400 332 pretest = root.getElementsByTagName('pretest')[0];
nickjillings@1400 333 subjectID = pretest.getElementsByTagName('comment')[0];
nickjillings@1400 334 if (subjectID){
nickjillings@1400 335 if (subjectID.getAttribute('id')!='sessionId') { // warning in console when not available
nickjillings@1400 336 console.log(xmlFiles[fileIndex]+': no SessionID available');
nickjillings@1400 337 }
nickjillings@1400 338 if (subjectArray.indexOf(subjectID.textContent) == -1) { // if not already in array
nickjillings@1400 339 subjectArray.push(subjectID.textContent); // append to array
nickjillings@1400 340 }
nickjillings@1400 341 }
nickjillings@1400 342
nickjillings@1400 343 // go over all audioholders, add to array if not already there
nickjillings@1400 344 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1400 345 // go over audioholderNodes and append audioholder name when not present yet
nickjillings@1400 346 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1400 347 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1400 348 if (audioholderArray.indexOf(audioholderName) == -1) { // if not already in array
nickjillings@1400 349 audioholderArray.push(audioholderName); // append to array
nickjillings@1400 350 }
nickjillings@1400 351 // within each audioholder, go over all audioelement IDs, add to array if not already there
nickjillings@1400 352 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1400 353 for (audioelementIndex = 0; audioelementIndex < audioelementNodes.length; audioelementIndex++) {
nickjillings@1400 354 audioelementName = audioelementNodes[audioelementIndex].getAttribute('id');
nickjillings@1400 355 if (audioelementArray.indexOf(audioelementName) == -1) { // if not already in array
nickjillings@1400 356 audioelementArray.push(audioelementName); // append to array
nickjillings@1400 357 }
nickjillings@1400 358 }
nickjillings@1400 359 }
nickjillings@1400 360 // count occurrences of each audioholder
nickjillings@1400 361 // ...
nickjillings@1400 362 }
nickjillings@1400 363 else {
nickjillings@1400 364 console.log('XML file '+xmlFileName+' not found.');
nickjillings@1400 365 }
nickjillings@1400 366 }
nickjillings@1400 367
nickjillings@1400 368 // sort alphabetically
nickjillings@1400 369 fileNameArray.sort();
nickjillings@1400 370 subjectArray.sort();
nickjillings@1400 371 audioholderArray.sort();
nickjillings@1400 372 audioelementArray.sort();
nickjillings@1400 373
nickjillings@1400 374 // display all information in HTML
nickjillings@1400 375 // show XML file folder
nickjillings@1400 376 document.getElementById('xmlFileFolder_span').innerHTML = "\""+xmlFileFolder+"/\"";
nickjillings@1400 377 // show number of files
nickjillings@1400 378 document.getElementById('numberOfFiles_span').innerHTML = fileNameArray.length;
nickjillings@1400 379 // show list of subject names
nickjillings@1400 380 document.getElementById('subjectArray_span').innerHTML = subjectArray.toString();
nickjillings@1400 381 // show list of audioholders
nickjillings@1400 382 document.getElementById('audioholderArray_span').innerHTML = audioholderArray.toString();
nickjillings@1400 383 // show list of audioelementes
nickjillings@1400 384 document.getElementById('audioelementArray_span').innerHTML = audioelementArray.toString();
nickjillings@1400 385 }
nickjillings@1400 386
nickjillings@1400 387 function printSurveyData() {
nickjillings@1400 388 // print some fields from the survey for different people
nickjillings@1400 389
nickjillings@1400 390 // go over all XML files
nickjillings@1400 391 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1400 392 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1400 393 xml = readXML(xmlFileName);
nickjillings@1400 394 // make a div
nickjillings@1400 395 var div = document.createElement('div');
nickjillings@1400 396 document.body.appendChild(div);
nickjillings@1400 397 div.id = 'div_survey_'+xmlFileName;
nickjillings@1400 398 div.style.width = '1100px';
nickjillings@1400 399 //div.style.height = '350px';
nickjillings@1400 400
nickjillings@1400 401 // title for that div (subject id)
nickjillings@1400 402 document.getElementById('div_survey_'+xmlFileName).innerHTML = '<h2>'+xmlFileName+'</h2>';
nickjillings@1400 403
nickjillings@1400 404 // which songs did they do
nickjillings@1400 405 if (xml != null) { // if file exists
nickjillings@1400 406 // get root of XML file
nickjillings@1400 407 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1400 408 // go over all audioholders
nickjillings@1400 409 // document.getElementById('div_survey_'+xmlFileName).innerHTML += '<strong>Audioholders: </strong>';
nickjillings@1400 410 // audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1400 411 // for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length-1; audioholderIndex++) {
nickjillings@1400 412 // document.getElementById('div_survey_'+xmlFileName).innerHTML += audioholderNodes[audioholderIndex].getAttribute('id')+', ';
nickjillings@1400 413 // }
nickjillings@1400 414 // document.getElementById('div_survey_'+xmlFileName).innerHTML += audioholderNodes[audioholderNodes.length-1].getAttribute('id');
nickjillings@1400 415
nickjillings@1400 416 // survey responses (each if available)
nickjillings@1400 417 // get posttest node for total test
nickjillings@1400 418 childNodes = root.childNodes;
nickjillings@1400 419 posttestnode = null;
nickjillings@1400 420 for (idx = 0; idx < childNodes.length; idx++){
nickjillings@1400 421 if (childNodes[childNodes.length-idx-1].tagName == 'posttest') {
nickjillings@1400 422 posttestnode = childNodes[childNodes.length-idx-1];
nickjillings@1400 423 break;
nickjillings@1400 424 }
nickjillings@1400 425 }
nickjillings@1400 426
nickjillings@1400 427 // mix experience
nickjillings@1400 428 if (posttestnode) {
nickjillings@1400 429 posttestcomments = posttestnode.getElementsByTagName('comment');
nickjillings@1400 430 for (idx=0; idx < posttestcomments.length; idx++){
nickjillings@1400 431 commentsToPrint = ['generalExperience', 'interfaceExperience'];
nickjillings@1400 432 idAttribute = posttestcomments[idx].getAttribute('id');
nickjillings@1400 433 if (commentsToPrint.indexOf(idAttribute) >= 0) { // if exists?
nickjillings@1400 434 document.getElementById('div_survey_'+xmlFileName).innerHTML += '<br><strong>'+idAttribute+': </strong>'+posttestcomments[idx].textContent;
nickjillings@1400 435 }
nickjillings@1400 436 }
nickjillings@1400 437 }
nickjillings@1400 438 }
nickjillings@1400 439 }
nickjillings@1400 440 }
nickjillings@1400 441
nickjillings@1400 442 function makePlots() { //TODO: split into different functions
nickjillings@1400 443 // TEMPORARY
nickjillings@1400 444 makeTimeline(xmlFileFolder+"/"+xmlFiles[7]);
nickjillings@1400 445
nickjillings@1400 446 // create value array
nickjillings@1400 447 var ratings = []; // 3D matrix of ratings (audioholder, audioelement, subject)
nickjillings@1400 448 for (audioholderIndex = 0; audioholderIndex < audioholderArray.length; audioholderIndex++) {
nickjillings@1400 449 ratings.push([]);
nickjillings@1400 450 for (audioelementIndex = 0; audioelementIndex < audioelementArray.length; audioelementIndex++) {
nickjillings@1400 451 ratings[audioholderIndex].push([]);
nickjillings@1400 452 }
nickjillings@1400 453 }
nickjillings@1400 454
nickjillings@1400 455 // go over all XML files
nickjillings@1400 456 for (fileIndex = 0; fileIndex < xmlFiles.length; fileIndex++) {
nickjillings@1400 457 xmlFileName = xmlFileFolder+"/"+xmlFiles[fileIndex];
nickjillings@1400 458 xml = readXML(xmlFileName);
nickjillings@1400 459 if (xml != null) { // if file exists
nickjillings@1400 460 // get root of XML file
nickjillings@1400 461 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1400 462 // go over all audioholders
nickjillings@1400 463 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1400 464 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1400 465 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1400 466 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1400 467 // go over all audioelements
nickjillings@1400 468 for (audioelementIndex = 0; audioelementIndex < audioelementNodes.length; audioelementIndex++) {
nickjillings@1400 469 audioelementName = audioelementNodes[audioelementIndex].getAttribute('id');
nickjillings@1400 470 // get value
nickjillings@1400 471 var value = audioelementNodes[audioelementIndex].getElementsByTagName("value")[0].textContent;
nickjillings@1400 472 if (value) { // if not empty, null, undefined...
nickjillings@1400 473 ratingValue = parseFloat(value);
nickjillings@1400 474 // add to matrix at proper position
nickjillings@1400 475 aHidx = audioholderArray.indexOf(audioholderName);
nickjillings@1400 476 aEidx = audioelementArray.indexOf(audioelementName);
nickjillings@1400 477 ratings[aHidx][aEidx].push(ratingValue);
nickjillings@1400 478 }
nickjillings@1400 479 }
nickjillings@1400 480 }
nickjillings@1400 481
nickjillings@1400 482 // go over all audioholders
nickjillings@1400 483
nickjillings@1400 484 // go over all audioelements within audioholder, see if present in idMatrix, add if not
nickjillings@1400 485 // add corresponding rating to 'ratings', at position corresponding with position in idMatrix
nickjillings@1400 486 }
nickjillings@1400 487 }
nickjillings@1400 488
nickjillings@1400 489 for (audioholderIndex = 0; audioholderIndex < audioholderArray.length; audioholderIndex++) {
nickjillings@1400 490 audioholderName = audioholderArray[audioholderIndex]; // for this song
nickjillings@1400 491 tickArray = []
nickjillings@1400 492
nickjillings@1400 493 raw_data = [['SubjectID', 'Rating']];
nickjillings@1400 494 audioElIdx = 0;
nickjillings@1400 495 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1400 496 if (ratings[audioholderIndex][audioelementIndex].length>0) {
nickjillings@1400 497 audioElIdx++; // increase if not empty
nickjillings@1400 498 // make tick label
nickjillings@1400 499 tickArray.push({v:audioElIdx, f: audioelementArray[audioelementIndex]});
nickjillings@1400 500 }
nickjillings@1400 501 for (subject = 0; subject<ratings[audioholderIndex][audioelementIndex].length; subject++){
nickjillings@1400 502 // add subject-value pair for each subject
nickjillings@1400 503 raw_data.push([audioElIdx, ratings[audioholderIndex][audioelementIndex][subject]]);
nickjillings@1400 504 }
nickjillings@1400 505 }
nickjillings@1400 506
nickjillings@1400 507 // create plot (one per song)
nickjillings@1400 508 var data = google.visualization.arrayToDataTable(raw_data);
nickjillings@1400 509
nickjillings@1400 510 var options = {
nickjillings@1400 511 title: audioholderName,
nickjillings@1400 512 hAxis: {title: 'audioelement ID', minValue: 0, maxValue: audioElIdx+1,
nickjillings@1400 513 ticks: tickArray},
nickjillings@1400 514 vAxis: {title: 'Rating', minValue: 0, maxValue: 1},
nickjillings@1400 515 seriesType: 'scatter',
nickjillings@1400 516 legend: 'none'
nickjillings@1400 517 };
nickjillings@1400 518 var div = document.createElement('div');
nickjillings@1400 519 document.body.appendChild(div);
nickjillings@1400 520 div.id = 'div_'+audioholderName;
nickjillings@1400 521 div.style.width = '1100px';
nickjillings@1400 522 div.style.height = '350px';
nickjillings@1400 523 var chart = new google.visualization.ComboChart(document.getElementById('div_'+audioholderName));
nickjillings@1400 524 chart.draw(data, options);
nickjillings@1400 525
nickjillings@1400 526 // box plots
nickjillings@1400 527 var div = document.createElement('div');
nickjillings@1400 528 document.body.appendChild(div);
nickjillings@1400 529 div.id = 'div_box_'+audioholderName;
nickjillings@1400 530 div.style.width = '1100px';
nickjillings@1400 531 div.style.height = '350px';
nickjillings@1400 532 // Get median, percentiles, maximum and minimum; outliers.
nickjillings@1400 533 pctl25 = [];
nickjillings@1400 534 pctl75 = [];
nickjillings@1400 535 med = [];
nickjillings@1400 536 min = [];
nickjillings@1400 537 max = [];
nickjillings@1400 538 outlierArray = [];
nickjillings@1400 539 max_n_outliers = 0; // maximum number of outliers for one audioelement
nickjillings@1400 540 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1400 541 med.push(median(ratings[audioholderIndex][audioelementIndex])); // median
nickjillings@1400 542 pctl25.push(percentile(ratings[audioholderIndex][audioelementIndex], 25)); // 25th percentile
nickjillings@1400 543 pctl75.push(percentile(ratings[audioholderIndex][audioelementIndex], 75)); // 75th percentile
nickjillings@1400 544 IQR = pctl75[pctl75.length-1]-pctl25[pctl25.length-1];
nickjillings@1400 545 // outliers: range of values which is above pctl75+1.5*IQR or below pctl25-1.5*IQR
nickjillings@1400 546 outliers = [];
nickjillings@1400 547 rest = [];
nickjillings@1400 548 for (idx = 0; idx<ratings[audioholderIndex][audioelementIndex].length; idx++){
nickjillings@1400 549 if (ratings[audioholderIndex][audioelementIndex][idx] > pctl75[pctl75.length-1]+1.5*IQR ||
nickjillings@1400 550 ratings[audioholderIndex][audioelementIndex][idx] < pctl25[pctl25.length-1]-1.5*IQR){
nickjillings@1400 551 outliers.push(ratings[audioholderIndex][audioelementIndex][idx]);
nickjillings@1400 552 }
nickjillings@1400 553 else {
nickjillings@1400 554 rest.push(ratings[audioholderIndex][audioelementIndex][idx]);
nickjillings@1400 555 }
nickjillings@1400 556 }
nickjillings@1400 557 outlierArray.push(outliers);
nickjillings@1400 558 max_n_outliers = Math.max(max_n_outliers, outliers.length); // update max mber
nickjillings@1400 559 // max: maximum value which is not outlier
nickjillings@1400 560 max.push(Math.max.apply(null, rest));
nickjillings@1400 561 // min: minimum value which is not outlier
nickjillings@1400 562 min.push(Math.min.apply(null, rest));
nickjillings@1400 563 }
nickjillings@1400 564
nickjillings@1400 565 // Build data array
nickjillings@1400 566 boxplot_data = [['ID', 'Span', '', '', '', 'Median']];
nickjillings@1400 567 for (idx = 0; idx < max_n_outliers; idx++) {
nickjillings@1400 568 boxplot_data[0].push('Outlier');
nickjillings@1400 569 }
nickjillings@1400 570 for (audioelementIndex = 0; audioelementIndex<ratings[audioholderIndex].length; audioelementIndex++){
nickjillings@1400 571 if (ratings[audioholderIndex][audioelementIndex].length>0) { // if rating array not empty for this audioelement
nickjillings@1400 572 data_array = [
nickjillings@1400 573 audioelementArray[audioelementIndex], // name
nickjillings@1400 574 min[audioelementIndex], // minimum
nickjillings@1400 575 pctl75[audioelementIndex],
nickjillings@1400 576 pctl25[audioelementIndex],
nickjillings@1400 577 max[audioelementIndex], // maximum
nickjillings@1400 578 med[audioelementIndex]
nickjillings@1400 579 ];
nickjillings@1400 580 for (idx = 0; idx < max_n_outliers; idx++) {
nickjillings@1400 581 if (idx<outlierArray[audioelementIndex].length){
nickjillings@1400 582 data_array.push(outlierArray[audioelementIndex][idx]);
nickjillings@1400 583 }
nickjillings@1400 584 else {
nickjillings@1400 585 data_array.push(null);
nickjillings@1400 586 }
nickjillings@1400 587 }
nickjillings@1400 588 boxplot_data.push(data_array);
nickjillings@1400 589 }
nickjillings@1400 590 }
nickjillings@1400 591
nickjillings@1400 592 // Create and populate the data table.
nickjillings@1400 593 var data = google.visualization.arrayToDataTable(boxplot_data);
nickjillings@1400 594 // Create and draw the visualization.
nickjillings@1400 595 var ac = new google.visualization.ComboChart(document.getElementById('div_box_'+audioholderName));
nickjillings@1400 596 ac.draw(data, {
nickjillings@1400 597 title : audioholderName,
nickjillings@1400 598 //width: 600,
nickjillings@1400 599 //height: 400,
nickjillings@1400 600 vAxis: {title: "Rating"},
nickjillings@1400 601 hAxis: {title: "audioelement ID"},
nickjillings@1400 602 seriesType: "line",
nickjillings@1400 603 pointSize: 5,
nickjillings@1400 604 lineWidth: 0,
nickjillings@1400 605 colors: ['black'],
nickjillings@1400 606 series: { 0: {type: "candlesticks", color: 'blue'}, // box plot shape
nickjillings@1400 607 1: {type: "line", pointSize: 10, lineWidth: 0, color: 'red' } }, // median
nickjillings@1400 608 legend: 'none'
nickjillings@1400 609 });
nickjillings@1400 610 }
nickjillings@1400 611 }
nickjillings@1400 612
nickjillings@1400 613 function makeTimeline(xmlFileName){ // WIP
nickjillings@1400 614 // Based on the XML file name, take time data and plot playback and marker movements
nickjillings@1400 615
nickjillings@1400 616 // read XML file and check if exists
nickjillings@1400 617 xml = readXML(xmlFileName);
nickjillings@1400 618 if (!xml) { // if file does not exist
nickjillings@1400 619 console.log('XML file '+xml+'does not exist. ('+xmlFileName+')')
nickjillings@1400 620 return; // do nothing; exit function
nickjillings@1400 621 }
nickjillings@1400 622 // get root of XML file
nickjillings@1400 623 root = xml.getElementsByTagName('browserevaluationresult')[0];
nickjillings@1400 624
nickjillings@1400 625 audioholder_time = 0;
nickjillings@1400 626 previous_audioholder_time = 0; // time spent before current audioholder
nickjillings@1400 627 time_offset = 0; // test starts at zero
nickjillings@1400 628
nickjillings@1400 629 // go over all audioholders
nickjillings@1400 630 audioholderNodes = root.getElementsByTagName('audioholder');
nickjillings@1400 631 for (audioholderIndex = 0; audioholderIndex < audioholderNodes.length; audioholderIndex++) {
nickjillings@1400 632 audioholderName = audioholderNodes[audioholderIndex].getAttribute('id');
nickjillings@1400 633 if (!audioholderName) {
nickjillings@1400 634 console.log('audioholder name is empty; go to next one. ('+xmlFileName+')');
nickjillings@1400 635 break;
nickjillings@1400 636 }
nickjillings@1400 637
nickjillings@1400 638 // subtract total audioholder length from subsequent audioholder event times
nickjillings@1400 639 audioholder_children = audioholderNodes[audioholderIndex].childNodes;
nickjillings@1400 640 foundIt = false;
nickjillings@1400 641 console.log(audioholder_children[2].getElementsByTagName("metricResult")) // not working!
nickjillings@1400 642 for (idx = 0; idx<audioholder_children.length; idx++) { // go over children
nickjillings@1400 643
nickjillings@1400 644 if (audioholder_children[idx].getElementsByTagName('metricResult').length) {
nickjillings@1400 645 console.log(audioholder_children[idx].getElementsByTagName('metricResult')[0]);
nickjillings@1400 646 if (audioholder_children[idx].getElementsByTagName('metricResult')[0].getAttribute('id') == "testTime"){
nickjillings@1400 647 audioholder_time = parseFloat(audioholder_children[idx].getElementsByTagName('metricResult')[0].textContent);
nickjillings@1400 648 console.log(audioholder_time);
nickjillings@1400 649 foundIt = true;
nickjillings@1400 650 }
nickjillings@1400 651 }
nickjillings@1400 652 }
nickjillings@1400 653 if (!foundIt) {
nickjillings@1400 654 console.log("Skipping audioholder without total time specified from "+xmlFileName+"."); // always hitting this
nickjillings@1400 655 break;
nickjillings@1400 656 }
nickjillings@1400 657
nickjillings@1400 658 audioelementNodes = audioholderNodes[audioholderIndex].getElementsByTagName('audioelement');
nickjillings@1400 659
nickjillings@1400 660 // make div
nickjillings@1400 661
nickjillings@1400 662 // draw chart
nickjillings@1400 663
nickjillings@1400 664 // legend with audioelement names
nickjillings@1400 665 }
nickjillings@1400 666 }
nickjillings@1400 667
nickjillings@1400 668 </script>
nickjillings@1400 669
nickjillings@1400 670
nickjillings@1400 671
nickjillings@1400 672 <style>
nickjillings@1400 673 div {
nickjillings@1400 674 padding: 2px;
nickjillings@1400 675 margin-top: 2px;
nickjillings@1400 676 margin-bottom: 2px;
nickjillings@1400 677 }
nickjillings@1400 678 div.head{
nickjillings@1400 679 margin-left: 10px;
nickjillings@1400 680 border: black;
nickjillings@1400 681 border-width: 2px;
nickjillings@1400 682 border-style: solid;
nickjillings@1400 683 }
nickjillings@1400 684 div.attrib{
nickjillings@1400 685 margin-left:25px;
nickjillings@1400 686 border: black;
nickjillings@1400 687 border-width: 2px;
nickjillings@1400 688 border-style: dashed;
nickjillings@1400 689 margin-bottom: 10px;
nickjillings@1400 690 }
nickjillings@1400 691 div#headerMatter{
nickjillings@1400 692 background-color: #FFFFCC;
nickjillings@1400 693 }
nickjillings@1400 694 div#currentStatement{
nickjillings@1400 695 font-size:3.0em;
nickjillings@1400 696 font-weight: bold;
nickjillings@1400 697
nickjillings@1400 698 }
nickjillings@1400 699 div#debugDisplay {
nickjillings@1400 700 color: #CCCCCC;
nickjillings@1400 701 font-size:0.3em;
nickjillings@1400 702 }
nickjillings@1400 703 span#scoreDisplay {
nickjillings@1400 704 font-weight: bold;
nickjillings@1400 705 }
nickjillings@1400 706 div#wrapper {
nickjillings@1400 707 width: 780px;
nickjillings@1400 708 border: 1px solid black;
nickjillings@1400 709 overflow: hidden; /* add this to contain floated children */
nickjillings@1400 710 }
nickjillings@1400 711 div#instrumentSection {
nickjillings@1400 712 width: 250px;
nickjillings@1400 713 border: 1px solid red;
nickjillings@1400 714 display: inline-block;
nickjillings@1400 715 }
nickjillings@1400 716 div#featureSection {
nickjillings@1400 717 width: 250px;
nickjillings@1400 718 border: 1px solid green;
nickjillings@1400 719 display: inline-block;
nickjillings@1400 720 }
nickjillings@1400 721 div#valenceSection {
nickjillings@1400 722 width: 250px;
nickjillings@1400 723 border: 1px solid blue;
nickjillings@1400 724 display: inline-block;
nickjillings@1400 725 }
nickjillings@1400 726 button#previousComment{
nickjillings@1400 727 width: 120px;
nickjillings@1400 728 height: 150px;
nickjillings@1400 729 font-size:1.5em;
nickjillings@1400 730 }
nickjillings@1400 731 button#nextComment{
nickjillings@1400 732 width: 666px;
nickjillings@1400 733 height: 150px;
nickjillings@1400 734 font-size:1.5em;
nickjillings@1400 735 }
nickjillings@1400 736 ul
nickjillings@1400 737 {
nickjillings@1400 738 list-style-type: none; /* no bullet points */
nickjillings@1400 739 margin-left: -20px; /* less indent */
nickjillings@1400 740 margin-top: 0px;
nickjillings@1400 741 margin-bottom: 5px;
nickjillings@1400 742 }
nickjillings@1400 743 </style>
nickjillings@1400 744
nickjillings@1400 745 </head>
nickjillings@1400 746
nickjillings@1400 747 <body>
nickjillings@1400 748 <h1>Subjective evaluation results</h1>
nickjillings@1400 749
nickjillings@1400 750 <div id="debugDisplay">
nickjillings@1400 751 XML file folder: <span id="xmlFileFolder_span"></span>
nickjillings@1400 752 </div>
nickjillings@1400 753
nickjillings@1400 754 <div id="headerMatter">
nickjillings@1400 755 <div>
nickjillings@1400 756 <strong>Result XML files:</strong> <span id="numberOfFiles_span"></span>
nickjillings@1400 757 </div>
nickjillings@1400 758 <div>
nickjillings@1400 759 <strong>Audioholders in dataset:</strong> <span id="audioholderArray_span"></span>
nickjillings@1400 760 </div>
nickjillings@1400 761 <div>
nickjillings@1400 762 <strong>Subjects in dataset:</strong> <span id="subjectArray_span"></span>
nickjillings@1400 763 </div>
nickjillings@1400 764 <div>
nickjillings@1400 765 <strong>Audioelements in dataset:</strong> <span id="audioelementArray_span"></span>
nickjillings@1400 766 </div>
nickjillings@1400 767 <br>
nickjillings@1400 768 </div>
nickjillings@1400 769 <br>
nickjillings@1400 770
nickjillings@1400 771 <!-- Show time elapsed
nickjillings@1400 772 The last annotation took <strong><span id="timeDisplay">(N/A)</span></strong> seconds.
nickjillings@1400 773 <br>-->
nickjillings@1400 774
nickjillings@1400 775 </body>
nickjillings@1400 776 </html>