MediaWiki:Common.js: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
(by SublimeText.Mediawiker)
(by SublimeText.Mediawiker)
Line 46: Line 46:




/*


var d = document.getElementById("age2009");
d.className += " show";


$(document).ready(function(){
document.getElementById("showAge2009").onclick = function() {
    $("showGender2009").click(function(){
$(".agegraph").removeClass("show");
        $(".gendergraph").removeClass("show");
$("#age2009").addClass("show");
        $("gender2009").addClass("show");
};
    });
});


$(document).ready(function(){
document.getElementById("showAge2010").onclick = function() {
    $("showGender2010").click(function(){
$(".agegraph").removeClass("show");
        $(".gendergraph").removeClass("show");
$("#age2010").addClass("show");
        $("gender2010").addClass("show");
};
    });
});


$(document).ready(function(){
document.getElementById("showAge2011").onclick = function() {
    $("showGender2011").click(function(){
$(".agegraph").removeClass("show");
        $(".gendergraph").removeClass("show");
$("#age2011").addClass("show");
        $("gender2011").addClass("show");
};
    });
});


document.getElementById("showAge2012").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2012").addClass("show");
};


*/
document.getElementById("showAge2013").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2013").addClass("show");
};
 
document.getElementById("showAge2014").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2014").addClass("show");
};
 
document.getElementById("showAge2015").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2015").addClass("show");
};
 
document.getElementById("showAge2016").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2016").addClass("show");
};

Revision as of 11:49, 29 August 2016

var d = document.getElementById("gender2009");
d.className += " show";

document.getElementById("showGender2009").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2009").addClass("show");
};

document.getElementById("showGender2010").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2010").addClass("show");
};

document.getElementById("showGender2011").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2011").addClass("show");
};

document.getElementById("showGender2012").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2012").addClass("show");
};

document.getElementById("showGender2013").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2013").addClass("show");
};

document.getElementById("showGender2014").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2014").addClass("show");
};

document.getElementById("showGender2015").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2015").addClass("show");
};

document.getElementById("showGender2016").onclick = function() {
$(".gendergraph").removeClass("show");
$("#gender2016").addClass("show");
};






var d = document.getElementById("age2009");
d.className += " show";

document.getElementById("showAge2009").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2009").addClass("show");
};

document.getElementById("showAge2010").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2010").addClass("show");
};

document.getElementById("showAge2011").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2011").addClass("show");
};

document.getElementById("showAge2012").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2012").addClass("show");
};

document.getElementById("showAge2013").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2013").addClass("show");
};

document.getElementById("showAge2014").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2014").addClass("show");
};

document.getElementById("showAge2015").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2015").addClass("show");
};

document.getElementById("showAge2016").onclick = function() {
$(".agegraph").removeClass("show");
$("#age2016").addClass("show");
};