# HG changeset patch # User Nicholas Jillings # Date 1432645671 -3600 # Node ID 43c0e9dbc36713484c3d298db6a885302f25d9a9 # Parent 44ff8bf4dec1a6987c8e9c6211cc17e6c7a1a923# Parent 8a87f83c7e6515af9a06a8dd7dfcf4497f784278 Merged. Added popup reponse questions into console diff -r 44ff8bf4dec1 -r 43c0e9dbc367 ape.js --- a/ape.js Tue May 26 13:01:39 2015 +0100 +++ b/ape.js Tue May 26 14:07:51 2015 +0100 @@ -113,6 +113,7 @@ var id = this.data; this.data = -1; var position = convSliderPosToRate(id); + console.log('slider ' + id + ': '+ position + ' (' + time + ')'); // DEBUG/SAFETY: show position and slider id if (audioEngineContext.timer.testStarted) { audioEngineContext.audioObjects[id].metric.moved(time,position); @@ -131,6 +132,7 @@ this.lastClicked = id; audioEngineContext.audioObjects[id].metric.listening(time); } + console.log('slider ' + id + ' played (' + time + ')'); // DEBUG/SAFETY: show played slider id }; // Create the top div for the Title element @@ -178,6 +180,8 @@ if (audioEngineContext.status == 1) { audioEngineContext.stop(); this.innerHTML = 'Stop'; + var time = audioEngineContext.timer.getTestTime(); + console.log('Stopped at ' + time); // DEBUG/SAFETY } }; // Create Submit (save) button @@ -733,6 +737,7 @@ var response = document.createElement("response"); question.textContent = commentObjects[i].children[0].textContent; response.textContent = commentObjects[i].children[2].value; + console.log('Comment ' + i + ': ' + commentObjects[i].children[2].value); // DEBUG/SAFETY comment.appendChild(question); comment.appendChild(response); audioElement.appendChild(comment); @@ -802,6 +807,7 @@ cqHolder.id = commentQuestion[i].id; comment.textContent = commentQuestion[i].children[2].value; question.textContent = commentQuestion[i].children[0].textContent; + console.log('Question ' + i + ': ' + commentObjects[i].children[2].value); // DEBUG/SAFETY cqHolder.appendChild(question); cqHolder.appendChild(comment); xmlDoc.appendChild(cqHolder); diff -r 44ff8bf4dec1 -r 43c0e9dbc367 core.js --- a/core.js Tue May 26 13:01:39 2015 +0100 +++ b/core.js Tue May 26 14:07:51 2015 +0100 @@ -152,6 +152,8 @@ var hold = document.createElement('comment'); hold.id = node.attributes['id'].value; hold.innerHTML = textArea.value; + console.log("Question: "+ node.textContent); + console.log("Question Response: "+ textArea.value); this.responses.appendChild(hold); } }