# HG changeset patch # User www-data # Date 1493047253 -3600 # Node ID 65351fea74e735947cbdfdc9896a8cd814e95fe9 # Parent 6b02dc034a99fe379c5a47b2e2f2e31356c6f717# Parent dfc2959fb7c666edbbc129a4764bede7fffa2c5d Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool diff -r 6b02dc034a99 -r 65351fea74e7 js/core.js --- a/js/core.js Sun Apr 23 10:22:17 2017 +0100 +++ b/js/core.js Mon Apr 24 16:20:53 2017 +0100 @@ -3256,7 +3256,7 @@ }; })(); var range = audioEngineContext.audioObjects.reduce(function (a, b) { - var v = b.interfaceDOM.getValue(); + var v = b.interfaceDOM.getValue() * 100.0; return { min: Math.min(a.min, v), max: Math.max(a.max, v) @@ -3266,10 +3266,10 @@ max: 0 }); if (range.min > scales.min) { - str += "At least one fragment must be below the " + range.min + " mark."; + str += "At least one fragment must be below the " + scales.min + " mark."; state = false; } else if (range.max < scales.max) { - str += "At least one fragment must be above the " + range.max + " mark."; + str += "At least one fragment must be above the " + scales.max + " mark."; state = false; } if (state === false) { @@ -3505,7 +3505,7 @@ var clone = this.parent.root.cloneNode(true); hold.appendChild(clone); var saveURL = specification.returnURL + "php/save.php?key=" + this.key + "&saveFilenamePrefix="; - if (this.parent.filenamePrefix.length == 0) { + if (this.parent.filenamePrefix.length === 0) { saveURL += "save"; } else { saveURL += this.parent.filenamePrefix;