MediaWiki:Common.js

From GNU Radio
Revision as of 22:27, 8 December 2022 by Duggabe (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
"use strict"

/* Any JavaScript here will be loaded for all users on every page load. */

/* phase2.js */

var gr_version = "";

document.body.onload = function() {phase2()};

function phase2()
    {
    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);
    }