Mercurial > hg > webaudioevaluationtool
comparison core.js @ 844:a55ad1c569e4
Added mushra interface. Also added instructions for building your own interface (working copy).
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 28 Jul 2015 12:00:46 +0100 |
parents | 1e8bdac90b78 |
children | f86d75be0d56 |
comparison
equal
deleted
inserted
replaced
843:7dc27e13f263 | 844:a55ad1c569e4 |
---|---|
611 css.rel = 'stylesheet'; | 611 css.rel = 'stylesheet'; |
612 css.type = 'text/css'; | 612 css.type = 'text/css'; |
613 css.href = 'ape.css'; | 613 css.href = 'ape.css'; |
614 | 614 |
615 document.getElementsByTagName("head")[0].appendChild(css); | 615 document.getElementsByTagName("head")[0].appendChild(css); |
616 } else if (specification.interfaceType == "MUSHRA") | |
617 { | |
618 interfaceJS.setAttribute("src","mushra.js"); | |
619 | |
620 // MUSHRA comes with a css file | |
621 var css = document.createElement('link'); | |
622 css.rel = 'stylesheet'; | |
623 css.type = 'text/css'; | |
624 css.href = 'mushra.css'; | |
625 | |
626 document.getElementsByTagName("head")[0].appendChild(css); | |
616 } | 627 } |
617 document.getElementsByTagName("head")[0].appendChild(interfaceJS); | 628 document.getElementsByTagName("head")[0].appendChild(interfaceJS); |
618 | 629 |
619 // Define window callbacks for interface | 630 // Define window callbacks for interface |
620 window.onresize = function(event){resizeWindow(event);}; | 631 window.onresize = function(event){resizeWindow(event);}; |