|
|
(No se muestran 23 ediciones intermedias de 2 usuarios) |
Línea 1: |
Línea 1: |
| $(".ns-3000 #firstHeading, .ns-1 #firstHeading, .ns-2 #firstHeading, .ns-3 #firstHeading, .ns-4 #firstHeading, .ns-5 #firstHeading, .ns-6 #firstHeading, .ns-7 #firstHeading, .ns-8 #firstHeading, .ns-9 #firstHeading, .ns-10 #firstHeading, .ns-11 #firstHeading, .ns-12 #firstHeading, .ns-13 #firstHeading, ns-14 #firstHeading, .ns-15 #firstHeading, .ns--1 #firstHeading, .ns--2 #firstHeading")
| |
| .before('<div class="logo-container" style="z-index:9999"><a href="/wiki/P%C3%A1gina_principal" title="Inicio"><img alt="Inicio" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Wikisp-logo-horizontal.svg/langes-200px-Wikisp-logo-horizontal.svg.png" decoding="async" width="200" height="51" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Wikisp-logo-horizontal.svg/langes-300px-Wikisp-logo-horizontal.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Wikisp-logo-horizontal.svg/langes-400px-Wikisp-logo-horizontal.svg.png 2x" data-file-width="769" data-file-height="195"></a></div>');
| |
|
| |
|
| $( "#mw-head" ).prepend('<li id="show-panel">Mostrar panel</li>');
| |
|
| |
| $("#show-panel").click(function(){
| |
| if ($('#mw-panel').is(":visible")) {
| |
| $('#mw-panel').hide('slide');
| |
| $(".mw-body").animate({margin: '-1px auto auto 0',});
| |
| $("#show-panel").text("Mostrar panel");
| |
| $("#footer").animate({margin: '0 0 0 1em',});
| |
| $("#left-navigation").animate({margin: '4.3em auto auto 18em',});
| |
|
| |
| } else {
| |
| $('#mw-panel').show('slide');
| |
| $(".mw-body").animate({margin: '-1px auto auto 11em',});
| |
| $("#show-panel").text("Ocultar panel");
| |
| $("#footer").animate({margin: '0 0 0 11em',});
| |
| $("#left-navigation").animate({margin: '4.3em auto auto 29em',});
| |
| }
| |
| });
| |
|
| |
| $(window).scroll(function(){
| |
| if ($(this).scrollTop() > 130) {
| |
| $('#nav').addClass('pinned');
| |
| } else {
| |
| $('#nav').removeClass('pinned');
| |
| }
| |
| });
| |
|
| |
| /* MOSTRAR BARRA DE BÚSQUEDA AL PULSAR EN MENÚ EN EL ICONO DE BÚSQUEDA */
| |
| $('#searchinput').hide();
| |
| $("#buscar").click(function() {
| |
| $("#searchinput").slideToggle("fast");
| |
| });
| |