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

Line 7: Line 7:
 
     $("#bodyContent div.printfooter").remove();
 
     $("#bodyContent div.printfooter").remove();
 
     $("#bodyContent div.visualClear").remove();
 
     $("#bodyContent div.visualClear").remove();
 +
    USTC.load_css("//fonts.googleapis.com/css?family=Montserrat|Josefin+Sans");
 
};
 
};
 
USTC.load_css = function(name) {
 
USTC.load_css = function(name) {

Revision as of 12:42, 1 September 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("//fonts.googleapis.com/css?family=Montserrat|Josefin+Sans");

}; 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);