Difference between revisions of "MediaWiki:Common.js"
From AquaPedia Case Study Database
(Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: jQuery(document).ready(function() { jQuery(".contrib").css("color","green"); });") |
|||
Line 2: | Line 2: | ||
− | + | var list = document.getElementsByClassName("contrib"); | |
+ | for (var i = 0; i < list.length; i++) { | ||
+ | list[i].style.color = "green"; | ||
+ | } | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { |
Revision as of 17:29, 15 November 2012
/* Any JavaScript here will be loaded for all users on every page load. */ var list = document.getElementsByClassName("contrib"); for (var i = 0; i < list.length; i++) { list[i].style.color = "green"; } jQuery(document).ready(function() { jQuery(".contrib").css("color","green"); });