MediaWiki:Common.js: Porovnání verzí

Z Wiki The-West CZ
Jump to navigation
Bez shrnutí editace
Bez shrnutí editace
 
Řádek 6: Řádek 6:
         $(this).append('<img src="https://westzz.innogamescdn.com/images/items/' + $(this).attr('data-url') + '?1">');
         $(this).append('<img src="https://westzz.innogamescdn.com/images/items/' + $(this).attr('data-url') + '?1">');
     });
     });
     $.getScript("https://wiki.the-west.net/wiki/Popup.js?action=raw");
     $.getScript("https://wiki.the-west.cz/wiki/Popup.js?action=raw");
}
}



Aktuální verze z 4. 1. 2020, 21:11

/* Zde uvedený JavaScript bude použit pro všechny uživatele při načtení každé stránky. */
/* Any JavaScript here will be loaded for all users on every page load. */
$('.tbbox-logo').wrap('<a href="/wiki/Main_Page"></a>');
if ($('.item_container').length!==0) {
    $('.item_container').each(function() {
        $(this).append('<img src="https://westzz.innogamescdn.com/images/items/' + $(this).attr('data-url') + '?1">');
    });
    $.getScript("https://wiki.the-west.cz/wiki/Popup.js?action=raw");
}






$(".noveMenu").hover(
  function () {
    $(this).addClass("pulse");
  },
  function () {
    $(this).removeClass("pulse");
  }
);
$(".socBaner ").hover(
  function () {
    $(this).addClass("pulse");
  },
  function () {
    $(this).removeClass("pulse");
  }
);

$(document).ready(function(){
  $('#socBaner a').attr('target', '_blank');
});


$("a[accesskey='e']").attr("accesskey", "none");
$("li#ca-viewsource").remove();
/*$("body").attr("oncopy", "return false");
$("body").attr("oncut", "return false");
$("body").attr("onpaste", "return false");
$("body").attr("oncontextmenu", "return false");*/

function log(txt) {
    document.getElementById("log").appendChild(document.createTextNode(txt + "\n"));
}





$(".PopupItem").hover(
  function () {
    $("> span").css("visibility", "visible" );
  },
  function () {
    $("> span").css("visibility", "hidden" );
  }
);