Mercurial > hg > webaudioevaluationtool
comparison interfaces/ABX.js @ 2387:5b755f508e2e
Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 20 May 2016 20:18:49 +0200 |
parents | 5b23f2e05207 |
children | 78f2dbe417da |
comparison
equal
deleted
inserted
replaced
2386:3f8996191f5b | 2387:5b755f508e2e |
---|---|
8 | 8 |
9 function loadInterface() { | 9 function loadInterface() { |
10 // Use this to do any one-time page / element construction. For instance, placing any stationary text objects, | 10 // Use this to do any one-time page / element construction. For instance, placing any stationary text objects, |
11 // holding div's, or setting up any nodes which are present for the entire test sequence | 11 // holding div's, or setting up any nodes which are present for the entire test sequence |
12 | 12 |
13 interfaceContext.insertPoint.innerHTML = null; // Clear the current schema | 13 interfaceContext.insertPoint.innerHTML = ""; // Clear the current schema |
14 | 14 |
15 Interface.prototype.checkScaleRange = function(min, max) { | 15 Interface.prototype.checkScaleRange = function(min, max) { |
16 var page = testState.getCurrentTestPage(); | 16 var page = testState.getCurrentTestPage(); |
17 var audioObjects = audioEngineContext.audioObjects; | 17 var audioObjects = audioEngineContext.audioObjects; |
18 var state = true; | 18 var state = true; |
124 }; | 124 }; |
125 | 125 |
126 function loadTest(page) | 126 function loadTest(page) |
127 { | 127 { |
128 // Called each time a new test page is to be build. The page specification node is the only item passed in | 128 // Called each time a new test page is to be build. The page specification node is the only item passed in |
129 document.getElementById('box-holders').innerHTML = null; | 129 document.getElementById('box-holders').innerHTML = ""; |
130 | 130 |
131 var interfaceObj = page.interfaces; | 131 var interfaceObj = page.interfaces; |
132 if (interfaceObj.length > 1) | 132 if (interfaceObj.length > 1) |
133 { | 133 { |
134 console.log("WARNING - This interface only supports one <interface> node per page. Using first interface node"); | 134 console.log("WARNING - This interface only supports one <interface> node per page. Using first interface node"); |