MediaWiki:Common.js
Förberedande kurs i matematik 1
(Skillnad mellan versioner)
(Tar bort sidans innehåll) |
|||
Rad 1: | Rad 1: | ||
- | /* | ||
- | Credit to John Resig for this function | ||
- | taken from Pro JavaScript techniques | ||
- | */ | ||
- | function next(elem) { | ||
- | do { | ||
- | elem = elem.nextSibling; | ||
- | } while (elem && elem.nodeType != 1); | ||
- | return elem; | ||
- | } | ||
- | function rm_next() { | ||
- | var elem = document.getElementById('ca-nstab-mediawiki'); | ||
- | if (!elem) return; | ||
- | var nextElem = next(elem); | ||
- | if (nextElem) | ||
- | nextElem.style.display = 'none'; | ||
- | } | ||
- | |||
- | addOnloadHook(rm_next); |