Mercurial > hg > webaudioevaluationtool
comparison interfaces/ape.js @ 3062:e441e3d5c7e7
Potential implementation of #109
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 31 Oct 2017 15:55:07 +0000 |
parents | b17a3e5e469b |
children | 6b95437ae672 |
comparison
equal
deleted
inserted
replaced
3061:83097e588634 | 3062:e441e3d5c7e7 |
---|---|
642 DOMRoot.innerHTML = ""; | 642 DOMRoot.innerHTML = ""; |
643 } | 643 } |
644 this.initialisePage = function (page_init) { | 644 this.initialisePage = function (page_init) { |
645 this.clear(); | 645 this.clear(); |
646 page = page_init; | 646 page = page_init; |
647 var interfaceObj = interfaceContext.getCombinedInterfaces(page); | 647 var randomiseAxisOrder; |
648 if (page.randomiseAxisOrder !== undefined) { | |
649 randomiseAxisOrder = page.randomiseAxisOrder; | |
650 } else { | |
651 randomiseAxisOrder = page.parent.randomiseAxisOrder; | |
652 } | |
648 var commentBoxes = false; | 653 var commentBoxes = false; |
649 // Create each of the interface axis | 654 // Create each of the interface axis |
655 if (randomiseAxisOrder) { | |
656 page.interfaces = randomiseOrder(page.interfaces); | |
657 } | |
658 var interfaceObj = interfaceContext.getCombinedInterfaces(page); | |
650 interfaceObj.forEach(function (i) { | 659 interfaceObj.forEach(function (i) { |
651 var node = new axisObject(i, this); | 660 var node = new axisObject(i, this); |
652 axis.push(node); | 661 axis.push(node); |
653 i.options.forEach(function (o) { | 662 i.options.forEach(function (o) { |
654 if (o.type == "show" && o.name == "comments") { | 663 if (o.type == "show" && o.name == "comments") { |