MediaWiki:Common.js: Difference between revisions
From Unforgotten Realms Wiki
Jump to navigationJump to search
imported>Pillowkeeper mNo edit summary |
imported>Pillowkeeper Updated icons |
||
| Line 17: | Line 17: | ||
image1.id = "image1"; | image1.id = "image1"; | ||
image1.className = "links"; | image1.className = "links"; | ||
image1.src = "https://wiki.urealms.com/images/ | image1.src = "https://wiki.urealms.com/images/b/b0/Website_Icon.png"; | ||
image1.width = "32"; | image1.width = "32"; | ||
image1.height = "32"; | image1.height = "32"; | ||
| Line 28: | Line 28: | ||
image2.id = "image2"; | image2.id = "image2"; | ||
image2.className = "links" | image2.className = "links" | ||
image2.src = "https://wiki.urealms.com/images/ | image2.src = "https://wiki.urealms.com/images/3/3e/Twitch_Icon.png"; | ||
image2.width = "32"; | image2.width = "32"; | ||
image2.height = "32"; | image2.height = "32"; | ||
| Line 39: | Line 39: | ||
image3.id = "image3"; | image3.id = "image3"; | ||
image3.className = "links" | image3.className = "links" | ||
image3.src = "https://wiki.urealms.com/images/ | image3.src = "https://wiki.urealms.com/images/d/d2/Youtube_Icon.png"; | ||
image3.width = "32"; | image3.width = "32"; | ||
image3.height = "32"; | image3.height = "32"; | ||
link3.appendChild(image3); | link3.appendChild(image3); | ||
container.appendChild(link3); | container.appendChild(link3); | ||
var link4 = document.createElement("a"); | |||
link3.href = "https://www.patreon.com/brucewillakers"; | |||
var image4 = document.createElement("img"); | |||
image4.id = "image4"; | |||
image4.className = "links" | |||
image4.src = "https://wiki.urealms.com/images/e/e6/Patreon_Icon.png"; | |||
image4.width = "32"; | |||
image4.height = "32"; | |||
link4.appendChild(image4); | |||
container.appendChild(link4); | |||
var sheet = document.createElement('style') | var sheet = document.createElement('style') | ||
Revision as of 00:47, 4 April 2017
/* Any JavaScript here will be loaded for all users on every page load. */
//Sidebar Social Icon Management
//Sidebar Social Icon Management
var panel = document.getElementById("mw-panel");
var line1 = document.createElement("hr");
line1.id = "line1";
line1.className = "line";
panel.appendChild(line1);
var container = document.createElement("div");
container.id = "container";
var link1 = document.createElement("a");
link1.href = "http://live.urealms.com/";
var image1 = document.createElement("img");
image1.id = "image1";
image1.className = "links";
image1.src = "https://wiki.urealms.com/images/b/b0/Website_Icon.png";
image1.width = "32";
image1.height = "32";
link1.appendChild(image1);
container.appendChild(link1);
var link2 = document.createElement("a");
link2.href = "https://www.twitch.tv/urealms";
var image2 = document.createElement("img");
image2.id = "image2";
image2.className = "links"
image2.src = "https://wiki.urealms.com/images/3/3e/Twitch_Icon.png";
image2.width = "32";
image2.height = "32";
link2.appendChild(image2);
container.appendChild(link2);
var link3 = document.createElement("a");
link3.href = "https://www.youtube.com/user/BruceWillakers";
var image3 = document.createElement("img");
image3.id = "image3";
image3.className = "links"
image3.src = "https://wiki.urealms.com/images/d/d2/Youtube_Icon.png";
image3.width = "32";
image3.height = "32";
link3.appendChild(image3);
container.appendChild(link3);
var link4 = document.createElement("a");
link3.href = "https://www.patreon.com/brucewillakers";
var image4 = document.createElement("img");
image4.id = "image4";
image4.className = "links"
image4.src = "https://wiki.urealms.com/images/e/e6/Patreon_Icon.png";
image4.width = "32";
image4.height = "32";
link4.appendChild(image4);
container.appendChild(link4);
var sheet = document.createElement('style')
sheet.innerHTML = ".links { display: inline-block; margin: 5px; } #container {text-align: center; } .line { border: 1px solid #443924; }";
container.appendChild(sheet);
var line2 = document.createElement("hr");
line2.id = "line2";
line2.className = "line";
container.appendChild(line2);
panel.appendChild(container);


