comparison ape.js @ 2047:6118a9aea1f5

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 <nickjillings@users.noreply.github.com>
date Sat, 20 Jun 2015 11:04:44 +0100
parents aa57c9c16cba
children f6e8b7156017
comparison
equal deleted inserted replaced
2046:aa57c9c16cba 2047:6118a9aea1f5
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();