MediaWiki:Mobile.js: Difference between revisions
(Created page with "→Any JavaScript here will be loaded for users using the mobile site: var newClass= document.createElement('div'); newClass.className = "logo"; var a = document.createEleme...") |
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= ' | img.src= 'https://wiki.teltonika-networks.com/wiki/skins/Wiki-teltonika-logo-vec.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 10:59, 27 November 2018
/* 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/Wiki-teltonika-logo-vec.svg?bb794'; a.appendChild(img); document.getElementsByClassName("branding-box")[0].appendChild(newClass);