Team:Freiburg/Templates/html/js.html

From 2014.igem.org

(Difference between revisions)
Line 29: Line 29:
         parent = parent.parentNode;
         parent = parent.parentNode;
       }
       }
-
    }
 
-
  }
 
-
 
-
  function hasClass( elem, klass ) {
 
-
    return (" " + elem.className + " " ).indexOf( " "+klass+" " ) > -1;
 
-
  }
 
-
 
-
  // remove unnecessary css
 
-
  if (hasClass(document.body, 'mediawiki')){
 
-
    var unwantedStylesheets = document.head.querySelectorAll('head link[rel="stylesheet"], head style[type="text/css"]');
 
-
    for (var i=0;i<unwantedStylesheets.length; i++){
 
-
      unwantedStylesheets[i].remove();
 
     }
     }
   }
   }

Revision as of 18:14, 7 October 2014