MediaWiki:Vector.js: Difference between revisions

From Sccswiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
         node.innerHTML = "This page is used for archiving purposes.<br/>The new page can be found <a href=https://www.in.tum.de/i05/>here</a>";
         node.innerHTML = "This page is used for archiving purposes.<br/>The new page can be found <a href=https://www.in.tum.de/i05/>here</a>";
         node.id = "depr-text";
         node.id = "depr-text";
         node.style.cssText = "top: 0, left: 0, position:'absolute'";
         node.style.cssText = "top:0;left:0;position:absolute;";
         document.body.appendChild(node);
         document.body.appendChild(node);
}());
}());

Revision as of 15:48, 20 October 2020

/* Any JavaScript here will be loaded for users using the Vector skin */

$(function () {
        var node = document.createElement("div");
        node.innerHTML = "This page is used for archiving purposes.<br/>The new page can be found <a href=https://www.in.tum.de/i05/>here</a>";
        node.id = "depr-text";
        node.style.cssText = "top:0;left:0;position:absolute;";
        document.body.appendChild(node);
}());