diff core.js @ 1537:18bb9a840145

Feature #1295: Page count can be displayed below the Start/Submit buttons
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 23 Jul 2015 10:48:14 +0100
parents eade64ba381a
children 0e525f772934
line wrap: on
line diff
--- a/core.js	Thu Jul 23 10:12:24 2015 +0100
+++ b/core.js	Thu Jul 23 10:48:14 2015 +0100
@@ -541,6 +541,10 @@
 	if (specification.randomiseOrder)
 	{
  		specification.audioHolders = randomiseOrder(specification.audioHolders);
+ 		for (var i=0; i<specification.audioHolders.length; i++)
+ 		{
+ 			specification.audioHolders[i].presentedId = i;
+ 		}
 	}
 	
 	$(specification.audioHolders).each(function(index,elem){
@@ -1460,6 +1464,7 @@
 	
 	this.audioHolderNode = function(parent,xml) {
 		this.type = 'audioHolder';
+		this.presentedId = parent.audioHolders.length;
 		this.interfaceNode = function(DOM) {
 			var title = DOM.getElementsByTagName('title');
 			if (title.length == 0) {this.title = null;}