# HG changeset patch # User Brecht De Man # Date 1435746952 -3600 # Node ID 329dfa208333dacaee31d8f01a500c7b09863f57 # Parent b7fd0296c6ab0aac0444f7ab7b5cdc3138662d0e Log slider movements to console diff -r b7fd0296c6ab -r 329dfa208333 ape.js --- a/ape.js Wed Jul 01 11:11:54 2015 +0100 +++ b/ape.js Wed Jul 01 11:35:52 2015 +0100 @@ -33,7 +33,6 @@ audioEngineContext.metric.sliderMoved = function() { - var id = this.data; this.data = -1; var position = convSliderPosToRate(id); @@ -495,6 +494,7 @@ var time = audioEngineContext.timer.getTestTime(); var id = Number(ev.srcElement.getAttribute('trackindex')); audioEngineContext.audioObjects[id].metric.moved(time,convSliderPosToRate(ev.srcElement)); + console.log('slider '+id+' moved to '+convSliderPosToRate(ev.srcElement)+' ('+time+')'); } function buttonSubmitClick() // TODO: Only when all songs have been played! diff -r b7fd0296c6ab -r 329dfa208333 core.js --- a/core.js Wed Jul 01 11:11:54 2015 +0100 +++ b/core.js Wed Jul 01 11:35:52 2015 +0100 @@ -406,7 +406,7 @@ this.stateResults.push(obj); } } else { - conolse.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP'); + console.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP'); } }; this.advanceState = function(){ @@ -1688,8 +1688,8 @@ root.id = this.specification.id; root.setAttribute('type',this.specification.type); root.textContent = this.textArea.value; - console.log("Question :"+this.string.textContent); - console.log("Response :"+root.textContent); + console.log("Question: "+this.string.textContent); + console.log("Response: "+root.textContent); return root; }; };