diff 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
line wrap: on
line diff
--- a/core.js	Mon Jul 27 16:08:52 2015 +0100
+++ b/core.js	Tue Jul 28 12:00:46 2015 +0100
@@ -613,6 +613,17 @@
 		css.href = 'ape.css';
 		
 		document.getElementsByTagName("head")[0].appendChild(css);
+	} else if (specification.interfaceType == "MUSHRA")
+	{
+		interfaceJS.setAttribute("src","mushra.js");
+		
+		// MUSHRA comes with a css file
+		var css = document.createElement('link');
+		css.rel = 'stylesheet';
+		css.type = 'text/css';
+		css.href = 'mushra.css';
+		
+		document.getElementsByTagName("head")[0].appendChild(css);
 	}
 	document.getElementsByTagName("head")[0].appendChild(interfaceJS);