comparison core.js @ 1343:9af89ccadb59

Added new horizontal slider class. Launched using ABC test interface.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 13 Jan 2016 12:27:38 +0000
parents 397e96ee781a
children 5d29ff213161
comparison
equal deleted inserted replaced
1342:397e96ee781a 1343:9af89ccadb59
170 // AB comes with a css file 170 // AB comes with a css file
171 var css = document.createElement('link'); 171 var css = document.createElement('link');
172 css.rel = 'stylesheet'; 172 css.rel = 'stylesheet';
173 css.type = 'text/css'; 173 css.type = 'text/css';
174 css.href = 'interfaces/AB.css'; 174 css.href = 'interfaces/AB.css';
175
176 document.getElementsByTagName("head")[0].appendChild(css);
177 case "ABC":
178 // Above enumerate to horizontal sliders
179 interfaceJS.setAttribute("src","interfaces/horizontal-sliders.js");
180
181 // horizontal-sliders comes with a css file
182 var css = document.createElement('link');
183 css.rel = 'stylesheet';
184 css.type = 'text/css';
185 css.href = 'interfaces/horizontal-sliders.css';
175 186
176 document.getElementsByTagName("head")[0].appendChild(css); 187 document.getElementsByTagName("head")[0].appendChild(css);
177 } 188 }
178 document.getElementsByTagName("head")[0].appendChild(interfaceJS); 189 document.getElementsByTagName("head")[0].appendChild(interfaceJS);
179 190