MediaWiki:Common.css: verschil tussen versies
Uit wiki.lasso-concepten.nl
Geen bewerkingssamenvatting Label: Handmatige ongedaanmaking |
Geen bewerkingssamenvatting |
||
Regel 2: | Regel 2: | ||
/** #toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;}; | /** #toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;}; | ||
/** #tocnumber {display:none;} | /** #tocnumber {display:none;} | ||
/** Back-to-top Function | |||
$( function () { | |||
var elems = document.getElementsByClassName('editsection'); // *** NOTE: ClassName may need to be 'mw-editsection' instead | |||
for (i = 0; i < elems.length; i++) { | |||
var span = document.createElement('span'); | |||
var link = document.createElement('a'); | |||
link.href = '#top'; | |||
link.appendChild(document.createTextNode('back to top')); | |||
span.appendChild(document.createTextNode('[')); | |||
span.appendChild(link); | |||
span.appendChild(document.createTextNode('] ')); | |||
elems[i].insertBefore(span, elems[i].firstChild); | |||
} | |||
}); |
Versie van 27 feb 2023 19:22
/** CSS die hier wordt geplaatst heeft invloed op alle vormgevingen */
/** #toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;};
/** #tocnumber {display:none;}
/** Back-to-top Function
$( function () {
var elems = document.getElementsByClassName('editsection'); // *** NOTE: ClassName may need to be 'mw-editsection' instead
for (i = 0; i < elems.length; i++) {
var span = document.createElement('span');
var link = document.createElement('a');
link.href = '#top';
link.appendChild(document.createTextNode('back to top'));
span.appendChild(document.createTextNode('['));
span.appendChild(link);
span.appendChild(document.createTextNode('] '));
elems[i].insertBefore(span, elems[i].firstChild);
}
});