Mercurial > hg > webaudioevaluationtool
diff core.js @ 1143:c1c5cb020fd3
Added new horizontal slider class. Launched using ABC test interface.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Wed, 13 Jan 2016 12:27:38 +0000 |
parents | 3924a4e1499b |
children | 5d29ff213161 |
line wrap: on
line diff
--- a/core.js Wed Jan 13 10:31:31 2016 +0000 +++ b/core.js Wed Jan 13 12:27:38 2016 +0000 @@ -174,6 +174,17 @@ css.href = 'interfaces/AB.css'; document.getElementsByTagName("head")[0].appendChild(css); + case "ABC": + // Above enumerate to horizontal sliders + interfaceJS.setAttribute("src","interfaces/horizontal-sliders.js"); + + // horizontal-sliders comes with a css file + var css = document.createElement('link'); + css.rel = 'stylesheet'; + css.type = 'text/css'; + css.href = 'interfaces/horizontal-sliders.css'; + + document.getElementsByTagName("head")[0].appendChild(css); } document.getElementsByTagName("head")[0].appendChild(interfaceJS);