MediaWiki:Vector.js: Difference between revisions
Content added Content deleted
(new top nav implementation, uses JS to create the nav instead of hacky CSS) |
(add wiki logo to top nav) |
||
Line 9: | Line 9: | ||
list.id = 'ricochet-top-nav-list'; |
list.id = 'ricochet-top-nav-list'; |
||
topNav.appendChild(list); |
topNav.appendChild(list); |
||
if (!document.body.classList.contains('skin-vector-legacy')) { |
|||
var link = document.createElement('a'); |
|||
link.href = 'https://wiki.ricochetuniverse.com/wiki/Main_Page'; |
|||
link.id = 'ricochet-top-nav-logo'; |
|||
link.title = 'Ricochet Universe'; |
|||
var img = document.createElement('img'); |
|||
img.src = 'https://ricochet.miraheze.org/w/thumb_handler.php/3/35/WikiLogo.png/60px-WikiLogo.png'; |
|||
img.alt = 'Ricochet Universe logo'; |
|||
img.width = 30; |
|||
img.height = 30; |
|||
var item = document.createElement('li'); |
|||
link.appendChild(img); |
|||
item.appendChild(link); |
|||
list.appendChild(item); |
|||
} |
|||
[ |
[ |