Mercurial > hg > webaudioevaluationtool
comparison analyse.html @ 444:9c9fd68693b1
Merge. Pull of revision info from dev_main.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Wed, 23 Dec 2015 14:36:00 +0000 |
parents | 751fc4749b60 |
children | a95d323a911e |
comparison
equal
deleted
inserted
replaced
442:1081368deed7 | 444:9c9fd68693b1 |
---|---|
13 | 13 |
14 <script type="text/javascript" src="https://www.google.com/jsapi"></script> | 14 <script type="text/javascript" src="https://www.google.com/jsapi"></script> |
15 <script type="text/javascript"> | 15 <script type="text/javascript"> |
16 // To aid 'one-page set-up' all scripts and CSS must be included directly in this file! | 16 // To aid 'one-page set-up' all scripts and CSS must be included directly in this file! |
17 | 17 |
18 //google.load("visualization", "1", {packages:["corechart"]}); | 18 google.load("visualization", "1", {packages:["corechart"]}); |
19 | 19 |
20 /************* | 20 /************* |
21 * SETUP * | 21 * SETUP * |
22 *************/ | 22 *************/ |
23 // folder where to find the XML files | 23 // folder where to find the XML files |
24 xmlFileFolder = "analysis_test"; | 24 xmlFileFolder = "saves"; |
25 // array of XML files | 25 // array of XML files |
26 var xmlFiles = ['McG-A-2013-09.xml', 'McG-A-2014-03.xml', 'McG-A-2014-12.xml', 'McG-B-2013-09.xml', | 26 // THIS IS WHERE YOU SPECIFY RESULT XML FILES TO ANALYSE |
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', | 27 var xmlFiles = ['test-0.xml','test-1.xml','test-2.xml','test-3.xml']; |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
34 'McG-pro1-2013-09.xml', 'McG-pro1-2014-03.xml', 'McG-pro1-2014-12.xml', 'McG-pro2-2013-09.xml', | |
35 'McG-pro2-2014-03.xml', 'McG-pro2-2014-12.xml', 'McG-Q-2014-12.xml', 'McG-R-2014-12.xml', | |
36 'McG-S-2014-12.xml', 'McG-subA-2013-09.xml', 'McG-subA-2014-03.xml', 'McG-subB-2014-03.xml', | |
37 'McG-subB-2014-12.xml', 'McG-subC-2013-09.xml', 'McG-subC-2014-03.xml', 'McG-subC-2014-12.xml', | |
38 'McG-subD-2013-09.xml', 'McG-subD-2014-12.xml', 'McG-subE-2014-12.xml', 'McG-subG-2014-12.xml', | |
39 'McG-subH-2013-09.xml', 'McG-T-2014-12.xml', 'McG-U-2014-12.xml', 'McG-V-2014-12.xml', | |
40 'McG-W-2014-12.xml', 'McG-X-2014-12.xml', 'MG1-2013-09.xml', 'MG2-2013-09.xml', 'MG3-2013-09.xml', | |
41 'MG4-2013-09.xml', 'MG5-2013-09.xml', 'MG6-2013-09.xml', 'MG7-2013-09.xml', 'MG8-2013-09.xml', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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', | |
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']; | |
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']; | |
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']; | |
55 | 28 |
29 | |
56 //TODO: make retrieval of file names automatic / drag files on here | 30 //TODO: make retrieval of file names automatic / drag files on here |
57 | 31 |
58 /**************** | 32 /**************** |
59 * VARIABLES * | 33 * VARIABLES * |
60 ****************/ | 34 ****************/ |
101 // Initialise page | 75 // Initialise page |
102 topLevel = document.getElementById('topLevelBody'); | 76 topLevel = document.getElementById('topLevelBody'); |
103 var setup = document.createElement('div'); | 77 var setup = document.createElement('div'); |
104 setup.id = 'setupTagDiv'; | 78 setup.id = 'setupTagDiv'; |
105 loadAllFiles(); | 79 loadAllFiles(); |
80 makePlots(); | |
106 printSurveyData() | 81 printSurveyData() |
107 //makePlots(); | |
108 // measure time at this point: | 82 // measure time at this point: |
109 lastTimeMeasured = new Date().getTime(); // in milliseconds | 83 lastTimeMeasured = new Date().getTime(); // in milliseconds |
110 }; | 84 }; |
111 | 85 |
112 // Assert function | 86 // Assert function |
422 posttestnode = childNodes[childNodes.length-idx-1]; | 396 posttestnode = childNodes[childNodes.length-idx-1]; |
423 break; | 397 break; |
424 } | 398 } |
425 } | 399 } |
426 | 400 |
427 // mix experience | 401 // post-test info |
428 if (posttestnode) { | 402 if (posttestnode) { |
429 posttestcomments = posttestnode.getElementsByTagName('comment'); | 403 posttestcomments = posttestnode.getElementsByTagName('comment'); |
430 for (idx=0; idx < posttestcomments.length; idx++){ | 404 for (idx=0; idx < posttestcomments.length; idx++){ |
431 commentsToPrint = ['generalExperience', 'interfaceExperience']; | 405 commentsToPrint = ['age', 'location']; // CHANGE WHAT TO PRINT |
432 idAttribute = posttestcomments[idx].getAttribute('id'); | 406 idAttribute = posttestcomments[idx].getAttribute('id'); |
433 if (commentsToPrint.indexOf(idAttribute) >= 0) { // if exists? | 407 if (commentsToPrint.indexOf(idAttribute) >= 0) { // if exists? |
434 document.getElementById('div_survey_'+xmlFileName).innerHTML += '<br><strong>'+idAttribute+': </strong>'+posttestcomments[idx].textContent; | 408 document.getElementById('div_survey_'+xmlFileName).innerHTML += '<br><strong>'+idAttribute+': </strong>'+posttestcomments[idx].textContent; |
435 } | 409 } |
436 } | 410 } |