Anónimo

Cambios

De CEBES Perquín
337 bytes eliminados ,  17:43 9 abr 2021
sin resumen de edición
//END Ticker de la portada
var firstRun = true;
function loadFunc() {
if( firstRun ) {
firstRun = false;
} else {
return;
}
 
window.pageName = mw.config.get('wgPageName');
window.storagePresent = (typeof(localStorage) != 'undefined');
 
// DEPRECATED
if( document.getElementById('infoboxinternal') != null && document.getElementById('infoboxend') != null ) {
document.getElementById('infoboxend').innerHTML = '<a id="infoboxtoggle" href="javascript:infoboxToggle()">[Hide]</a>';
}
$ // Upload form - need to run before adding hide buttons if (document)mw.ready(function(){ $("#hide")config.onget('clickwgCanonicalSpecialPageName', function() { $("#element").hide(); return false; }); $("#show").on(=== 'clickUpload', function() { $("#element").show setupUploadForm(); return false; });});
function muestra_oculta addHideButtons(id){if (document.getElementById){ //se obtiene el idvar el = document.getElementById(id); //se define la variable "el" igual a nuestro divel.style.display = (el.style.display == 'none') ? 'block' : 'none'; //damos un atributo display:none que oculta el div}}window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/muestra_oculta('contenido');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */}
function toggleHidable if(bypassStoragedocument.getElementById('mp3-navlink') !== null ) { var parent = getParentByClass document.getElementById('hidablemp3-navlink', this).onclick = onArticleNavClick; var content = getElementsByClass document.getElementById('hidablemp3-contentnavlink').getElementsByTagName('a')[0].href = ', parentjavascript:void(0)'; var nowShown;}
if( content != null && contentwindow.length > 0 storagePresent ) { content = content[0]initVisibility(); }
if fillEditSummaries( content.style.display == 'none' ) { content.style.display = content.oldDisplayStyle; this.firstChild.nodeValue = '[Hide]'; nowShown = true; } else { content.oldDisplayStyle = content.style.display fillPreloads(); content.style.display = 'none'; this.firstChild.nodeValue = '[Show]'; nowShown = false; }
if substUsername( window.storagePresent && ); substUsernameTOC( typeof); rewriteTitle( bypassStorage ) == 'undefined' || bypassStorage != 'bypass' ; rewriteHover() ) {; var page = window.pageName.replace( /\W/g, '_'replaceSearchIcon();this is now called from MediaWiki:Monobook.js var items = getElementsByClass fixSearch('hidable'); var item = -1 hideContentSub();
for( var i body = 0; i < itemsdocument.length; i++ getElementsByTagName('body') { if( items[i0] == parent ) {; item var bodyClass = ibody.className; break; } }
if( item !bodyClass || (bodyClass.indexOf('page-') === -1 ) ) { return var page = window.pageName.replace(/\W/g, '_'); body.className += ' page-' + page; }
localStorage.setItem if('hidableshow-' + item + '_' + page, nowShowntypeof(onPageLoad);!= "undefined" ) { }onPageLoad();
}
}
 
function infoboxToggle() {