Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1192:d5fd92bcaa6f
Volume tracker stores data in result <metric> node (was saving in <survey>).
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 19 Feb 2016 10:40:52 +0000 |
parents | 3c25db9c8393 |
children | c9d94c072539 |
comparison
equal
deleted
inserted
replaced
1191:3c25db9c8393 | 1192:d5fd92bcaa6f |
---|---|
2844 interfaceContext.volume.valueText.textContent = interfaceContext.volume.valueDB+'dB'; | 2844 interfaceContext.volume.valueText.textContent = interfaceContext.volume.valueDB+'dB'; |
2845 audioEngineContext.outputGain.gain.value = interfaceContext.volume.valueLin; | 2845 audioEngineContext.outputGain.gain.value = interfaceContext.volume.valueLin; |
2846 } | 2846 } |
2847 this.slider.onmouseup = function(event) | 2847 this.slider.onmouseup = function(event) |
2848 { | 2848 { |
2849 var storePoint = testState.currentStore.XMLDOM.children[0].getAllElementsByName('volumeTracker'); | 2849 var storePoint = testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].getAllElementsByName('volumeTracker'); |
2850 if (storePoint.length == 0) | 2850 if (storePoint.length == 0) |
2851 { | 2851 { |
2852 storePoint = storage.document.createElement('metricresult'); | 2852 storePoint = storage.document.createElement('metricresult'); |
2853 storePoint.setAttribute('name','volumeTracker'); | 2853 storePoint.setAttribute('name','volumeTracker'); |
2854 testState.currentStore.XMLDOM.children[0].appendChild(storePoint); | 2854 testState.currentStore.XMLDOM.getElementsByTagName('metric')[0].appendChild(storePoint); |
2855 } | 2855 } |
2856 else { | 2856 else { |
2857 storePoint = storePoint[0]; | 2857 storePoint = storePoint[0]; |
2858 } | 2858 } |
2859 var node = storage.document.createElement('movement'); | 2859 var node = storage.document.createElement('movement'); |