Mercurial > hg > webaudioevaluationtool
comparison interfaces/AB.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 | 8f4b70c56e87 |
comparison
equal
deleted
inserted
replaced
2386:3f8996191f5b | 2387:5b755f508e2e |
---|---|
3 | 3 |
4 function loadInterface() { | 4 function loadInterface() { |
5 // Get the dimensions of the screen available to the page | 5 // Get the dimensions of the screen available to the page |
6 var width = window.innerWidth; | 6 var width = window.innerWidth; |
7 var height = window.innerHeight; | 7 var height = window.innerHeight; |
8 interfaceContext.insertPoint.innerHTML = null; // Clear the current schema | 8 interfaceContext.insertPoint.innerHTML = ""; // Clear the current schema |
9 | 9 |
10 // Custom comparator Object | 10 // Custom comparator Object |
11 Interface.prototype.comparator = null; | 11 Interface.prototype.comparator = null; |
12 | 12 |
13 Interface.prototype.checkScaleRange = function(min, max) { | 13 Interface.prototype.checkScaleRange = function(min, max) { |
323 return false; | 323 return false; |
324 }; | 324 }; |
325 }; | 325 }; |
326 | 326 |
327 this.boxHolders = document.getElementById('box-holders'); | 327 this.boxHolders = document.getElementById('box-holders'); |
328 this.boxHolders.innerHTML = null; | 328 this.boxHolders.innerHTML = ""; |
329 this.comparators = []; | 329 this.comparators = []; |
330 this.selected = null; | 330 this.selected = null; |
331 | 331 |
332 // First generate the Audio Objects for the Audio Engine | 332 // First generate the Audio Objects for the Audio Engine |
333 for (var index=0; index<audioHolderObject.audioElements.length; index++) | 333 for (var index=0; index<audioHolderObject.audioElements.length; index++) |