Difference between revisions of "MediaWiki:Common.js"

From stix
Jump to: navigation, search
Line 2: Line 2:
 
$(function () { $.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });});
 
$(function () { $.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });});
 
//don't delete above line
 
//don't delete above line
 +
$("img").error(function(){
 +
        $(this).hide();
 +
});

Revision as of 21:46, 28 May 2021

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {	$.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });});
//don't delete above line
$("img").error(function(){
        $(this).hide();
});