Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1334:9a99872c700f
Core.js now randomises the audio elements when asked to on page creation. AB has stricter selection policies, selection can occur only once playback has started.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 12 Jan 2016 11:50:38 +0000 |
parents | 45b2f482baa5 |
children | 373a9fae8896 |
comparison
equal
deleted
inserted
replaced
1333:942042597796 | 1334:9a99872c700f |
---|---|
745 else | 745 else |
746 { | 746 { |
747 if (this.currentStateMap == null) | 747 if (this.currentStateMap == null) |
748 { | 748 { |
749 this.currentStateMap = this.stateMap[this.stateIndex]; | 749 this.currentStateMap = this.stateMap[this.stateIndex]; |
750 if (this.currentStateMap.randomiseOrder) | |
751 { | |
752 this.currentStateMap.audioElements = randomiseOrder(this.currentStateMap.audioElements); | |
753 } | |
750 storage.createTestPageStore(this.currentStateMap); | 754 storage.createTestPageStore(this.currentStateMap); |
751 if (this.currentStateMap.preTest != null) | 755 if (this.currentStateMap.preTest != null) |
752 { | 756 { |
753 this.currentStatePosition = 'pre'; | 757 this.currentStatePosition = 'pre'; |
754 popup.initState(this.currentStateMap.preTest,storage.testPages[this.stateIndex].preTest); | 758 popup.initState(this.currentStateMap.preTest,storage.testPages[this.stateIndex].preTest); |