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...")
 
(Blanked the page)
 
Line 1: Line 1:
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);
+

Latest revision as of 14:11, 12 September 2015