diff core.js @ 1:5b34e5fed7bb

inactive (non-clickable) boxes in AB (e.g.: for training)
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 22 Apr 2016 02:27:04 +0100
parents d2eb0e6ccaaf
children bd0bd3033ac5
line wrap: on
line diff
--- a/core.js	Wed Apr 20 16:26:57 2016 +0100
+++ b/core.js	Fri Apr 22 02:27:04 2016 +0100
@@ -305,13 +305,13 @@
 		break;
 		
 		case "AB":
-		interfaceJS.setAttribute("src","interfaces/AB.js");
+		interfaceJS.setAttribute("src","interfaces/AB.js?0");
 		
 		// AB comes with a css file
 		var css = document.createElement('link');
 		css.rel = 'stylesheet';
 		css.type = 'text/css';
-		css.href = 'interfaces/AB.css';
+		css.href = 'interfaces/AB.css?'+Math.random();
 		
 		document.getElementsByTagName("head")[0].appendChild(css);
 		break;
@@ -892,7 +892,12 @@
 		if (this.stateIndex == null) {
 			this.initialise();
 		}
-        storage.update();
+		 $('#box-holders').fadeTo(200, 0.1, function(){
+			 $('#box-holders').fadeTo(200, 1);
+		});
+
+
+		storage.update();
 		if (this.stateIndex == -1) {
 			this.stateIndex++;
 			console.log('Starting test...');