comparison ape.js @ 1041:6a188a912b0f

Feature #1288: Fragments now have 'id', holding their given ID from the set up XML, and 'presentedid' giving their on page order.
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Sat, 20 Jun 2015 11:04:44 +0100
parents aef4cbbd66d1
children f6e8b7156017
comparison
equal deleted inserted replaced
1040:aef4cbbd66d1 1041:6a188a912b0f
653 xmlDoc.appendChild(metric); 653 xmlDoc.appendChild(metric);
654 var audioObjects = audioEngineContext.audioObjects; 654 var audioObjects = audioEngineContext.audioObjects;
655 for (var i=0; i<audioObjects.length; i++) 655 for (var i=0; i<audioObjects.length; i++)
656 { 656 {
657 var audioElement = audioEngineContext.audioObjects[i].exportXMLDOM(); 657 var audioElement = audioEngineContext.audioObjects[i].exportXMLDOM();
658 audioElement.setAttribute('presentedId',i);
658 xmlDoc.appendChild(audioElement); 659 xmlDoc.appendChild(audioElement);
659 } 660 }
660 661
661 $(interfaceContext.commentQuestions).each(function(index,element){ 662 $(interfaceContext.commentQuestions).each(function(index,element){
662 var node = element.exportXMLDOM(); 663 var node = element.exportXMLDOM();