MediaWiki:Common.js: Difference between revisions

From PokéHeroes Wiki
Jump to navigation Jump to search
Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: var hash = str.match(/^.*\/([^\/]+)\/?\?.*$/)[1]; var helper = document.getElementById("externalhelp..."
 
No edit summary
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. */
var hash = str.match(/^.*\/([^\/]+)\/?\?.*$/)[1];
var hash = document.URL.match(/^.*\/([^\/]+)\/?\?.*$/)[1];
var helper = document.getElementById("externalhelper");
var helper = document.getElementById("externalhelper");
if(!hash) {
if(!hash) {

Revision as of 02:31, 1 August 2014

/* Any JavaScript here will be loaded for all users on every page load. */
var hash = document.URL.match(/^.*\/([^\/]+)\/?\?.*$/)[1];
var helper = document.getElementById("externalhelper");
if(!hash) {
} else {
helper.innerHTML = 'Soo, looks like...';
}