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

(Created page with "window.USTC = {}; USTC.init = function() { USTC.load_css("style.css"); $("#top_menu_under").remove(); $("#content > h1").remove(); $("#bodyContent > p").remove...")
(No difference)

Revision as of 14:09, 12 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);