MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
console.log ("Version-adaptive documentation"); | console.log ("Version-adaptive documentation"); | ||
var gr_version = ""; | |||
var w_loc = window.location.href; | |||
const url = new URL(w_loc); | |||
console.log ("phase2()", w_loc); | |||
var p1 = url.searchParams.get('ver1'); | |||
console.log ( | var p2 = url.searchParams.get('ver2'); | ||
var p3 = url.searchParams.get('ver3'); | |||
console.log (p1,p2,p3); |
Revision as of 22:46, 8 December 2022
"use strict"
/* Any JavaScript here will be loaded for all users on every page load. */
console.log ("Version-adaptive documentation");
var gr_version = "";
var w_loc = window.location.href;
const url = new URL(w_loc);
console.log ("phase2()", w_loc);
var p1 = url.searchParams.get('ver1');
var p2 = url.searchParams.get('ver2');
var p3 = url.searchParams.get('ver3');
console.log (p1,p2,p3);