MediaWiki:Mobile.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
newClass.appendChild(a); | newClass.appendChild(a); | ||
var img = document.createElement('img'); | var img = document.createElement('img'); | ||
img.src= 'https://wiki.teltonika-networks.com/wiki/skins/ | img.src= 'https://wiki.teltonika-networks.com/wiki/skins/teltonika_only_logo.svg?bb794'; | ||
a.appendChild(img); | a.appendChild(img); | ||
document.getElementsByClassName("branding-box")[0].appendChild(newClass); | document.getElementsByClassName("branding-box")[0].appendChild(newClass); |
Revision as of 16:51, 22 January 2019
/* Any JavaScript here will be loaded for users using the mobile site */ var newClass= document.createElement('div'); newClass.className = "logo"; var a = document.createElement("a"); a.href = '/'; newClass.appendChild(a); var img = document.createElement('img'); img.src= 'https://wiki.teltonika-networks.com/wiki/skins/teltonika_only_logo.svg?bb794'; a.appendChild(img); document.getElementsByClassName("branding-box")[0].appendChild(newClass);