Difference between revisions of "MediaWiki:Common.js"

From AquaPedia Case Study Database
Jump to: navigation, search
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 list = document.getElementsByClassName("contrib");
 
var list = document.getElementsByClassName("contrib");
 
for (var i = 0; i < list.length; i++) {
 
for (var i = 0; i < list.length; i++) {
 
     list[i].style.color = "green";
 
     list[i].style.color = "green";
 
}
 
}
 
+
*/
 
jQuery(document).ready(function() {
 
jQuery(document).ready(function() {
  

Revision as of 17:30, 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");

});