Difference between revisions of "MediaWiki:Common.js"

From The PS/2 Project
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: var a_noexist =$("a.new").attr("href"); console.log(a_noexist);")
 
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 a_noexist =$("a.new").attr("href");
+
var a_noexist =$("a.new");
console.log(a_noexist);
+
var a_href = a_noexist.attr("href");
 +
if (a_href.indexOf("action=edit") >= 0){
 +
a_noexist.css("color","#A34221");
 +
}

Revision as of 18:24, 9 December 2017

/* Any JavaScript here will be loaded for all users on every page load. */
var a_noexist =$("a.new");
var a_href = a_noexist.attr("href");
if (a_href.indexOf("action=edit") >= 0){
a_noexist.css("color","#A34221");
}