Wikipedia:Monobook.js/MonobookCompleto.js/Monobook: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
m transizione a jquery
Riga 883:
/**** Carica le funzioni personalizzate ****/
 
jQuery(document).ready(function($){
//Codice adattato da Prototype 1.6.0, http://www.prototypejs.org/
//Distribuito con licenza MIT-style
(function() {
/* Support for the DOMContentLoaded event is based on work by Dan Webb,
Matthias Miller, Dean Edwards and John Resig. */
 
var timer, fired = false;
 
function fireContentLoadedEvent() {
if (fired) return;
if (timer) window.clearInterval(timer);
contentLoaded();
fired = true;
}
 
if (document.addEventListener) {
if (navigator.userAgent.indexOf('AppleWebKit/') > -1) {
timer = window.setInterval(function() {
if (/loaded|complete/.test(document.readyState))
fireContentLoadedEvent();
}, 0);
 
window.addEventListener('load', fireContentLoadedEvent, false);
 
} else {
document.addEventListener("DOMContentLoaded",
fireContentLoadedEvent, false);
}
 
} else {
document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");
$("__onDOMContentLoaded").onreadystatechange = function() {
if (this.readyState == "complete") {
this.onreadystatechange = null;
fireContentLoadedEvent();
}
};
}
})();
 
function contentLoaded(){
saveHistoryToCookie(); //memorizza le pagine visitate in un cookie
changeLinks();
Riga 942 ⟶ 902:
ta['pt-logout'] = ['x', 'Logout (esci)']; //cambia l'accesskey per "logout"
akeytt();
});