Difference between revisions of "MediaWiki:Common.js"
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
$(function () { | $(function () { | ||
− | console.log(window.location. | + | console.log(window.location.href.split('title=')[1]); |
− | $.get("/request/log/visits", { page: window.location. | + | $.get("/request/log/visits", { page: window.location.href.split('title=')[1] });}); |
Revision as of 18:21, 19 May 2021
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
console.log(window.location.href.split('title=')[1]);
$.get("/request/log/visits", { page: window.location.href.split('title=')[1] });});