Difference between revisions of "Template:USTC-Software/script.js"

Line 2: Line 2:
 
USTC.init = function() {
 
USTC.init = function() {
 
     USTC.load_css("style.css");
 
     USTC.load_css("style.css");
     $("top_menu_under").remove();
+
     $("#top_menu_under").remove();
 
     $("#content > h1").remove();
 
     $("#content > h1").remove();
 
     $("#bodyContent > p").remove();
 
     $("#bodyContent > p").remove();

Revision as of 05:06, 6 August 2015

window.USTC = {}; USTC.init = function() {

   USTC.load_css("style.css");
   $("#top_menu_under").remove();
   $("#content > h1").remove();
   $("#bodyContent > p").remove();
   $("#bodyContent div.printfooter").remove();
   $("#bodyContent div.visualClear").remove();

}; USTC.load_css = function(name) {

   var node = document.createElement("link");
   node.rel = "stylesheet";
   node.href = "/Template:USTC-Software/" + name + "?action=raw&ctype=text/css";
   node.type = "text/css";
   document.head.appendChild(node);

}; $(USTC.init);