Mercurial > hg > webaudioevaluationtool
changeset 117:43c0e9dbc367
Merged. Added popup reponse questions into console
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 May 2015 14:07:51 +0100 |
parents | 44ff8bf4dec1 (current diff) 8a87f83c7e65 (diff) |
children | f84a3a2c77d3 |
files | ape.js core.js |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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); } }