MediaWiki:Gadget-SpostaInfofonte.js

Ocio: Daspò ver salvà, podaria esare neçesario snetare ła cache dal propio navegadore web par vedare i canbiamenti.

  • Firefox / Safari: tegner strucà el boton de łe letare grande Shift e schiciare sora Ricarga, o se nò struca Ctrl-F5 o Ctrl-R (⌘-R so Mac)
  • Google Chrome: strucare Ctrl-Shift-R (⌘-Shift-R so on Mac)
  • Internet Explorer / Edge: tegner strucà el boton Ctrl e schiciare so Ajorna, o sinò Ctrl-F5
  • Opera: Va in tel Menu → Inpostasion (Opera → Prefarense so on Mac) e pò in Privacy & sicuresa → Sneta dati del navegadore → Imajini e file in te ła cache.
/* Sposta el box "Informassion su la fonte" a pié de pagina */
function sposta_infofonte() {
 
	var box = document.getElementById('infofonte');
	var scat = document.getElementById('scatola');

	if (scat && box) {
		scat.parentNode.insertBefore(box, scat.nextSibling);
		$("#infofonte").show();

 		var sora = document.getElementById('capitolo_sora');

		//duplicassion de la bara "Capitolo presedente/sucesivo" 
		if (sora) {
			footer = document.createElement('div');
			footer.setAttribute('class', 'testo');
			footer.setAttribute('style', 'margin-top:50px; align:center');
 
			soto = sora.cloneNode(true);
			$(soto).find('#linkEdissionFonte').remove();
			soto.setAttribute('id', 'capitolo_soto');
 
			footer.appendChild(soto);
 
			scat.parentNode.insertBefore(footer, scat.nextSibling);
			$('#capitolo_soto td:nth-child(1)').after('<td style="width:8%; text-align:center; font-size:1em; padding:0"><a href="#top" style="color:#808080" title="Torna sù">&#x25B2;</a></td>');
		}
		else {
			box.setAttribute('style', 'width:100% !important; margin-bottom:5px; margin-top:50px');
		}
	}
}
 
$(document).ready(sposta_infofonte);
Traesto fora da Wikipèdia - L'ençiclopedia łìbara e cołaboradiva in łéngua Vèneta "https://vec.wikisource.org/w/index.php?title=MediaWiki:Gadget-SpostaInfofonte.js&oldid=58108"