Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 192: Line 192:
'use strict';
'use strict';
-
 
-
// class helper functions from bonzo https://github.com/ded/bonzo
 
function classReg( className ) {
function classReg( className ) {
Line 199: Line 197:
}
}
-
// classList support for class management
 
-
// altho to be fair, the api sucks because it won't accept multiple classes at once
 
var hasClass, addClass, removeClass;
var hasClass, addClass, removeClass;
Line 234: Line 230:
window.classie = {
window.classie = {
-
  // full names
 
   hasClass: hasClass,
   hasClass: hasClass,
   addClass: addClass,
   addClass: addClass,
   removeClass: removeClass,
   removeClass: removeClass,
   toggleClass: toggleClass,
   toggleClass: toggleClass,
-
  // short names
 
   has: hasClass,
   has: hasClass,
   add: addClass,
   add: addClass,

Revision as of 23:24, 6 August 2014