MediaWiki:Common.js: Difference between revisions
From Tsadra Foundation Advanced Contemplative Scholarships
(by SublimeText.Mediawiker) |
(by SublimeText.Mediawiker) |
||
| Line 236: | Line 236: | ||
$("#gender2016, #age2016, #nation2016, #center2016, #disb2016").addClass("show"); | $("#gender2016, #age2016, #nation2016, #center2016, #disb2016").addClass("show"); | ||
}; | }; | ||
$(document).ready(function(){ | |||
$('.pop-hover').hover(function(){ | |||
$(this).addClass('trans-3').toggleClass("depth-1 depth-5"); | |||
}); | |||
}); | |||
Revision as of 17:55, 27 June 2018
$(document).ready(function () {
$(".jqplot-point-label:contains('0')").hide();
});
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");
};
var d = document.getElementById("nation2009");
d.className += " show";
document.getElementById("showNation2009").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2009").addClass("show");
};
document.getElementById("showNation2010").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2010").addClass("show");
};
document.getElementById("showNation2011").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2011").addClass("show");
};
document.getElementById("showNation2012").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2012").addClass("show");
};
document.getElementById("showNation2013").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2013").addClass("show");
};
document.getElementById("showNation2014").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2014").addClass("show");
};
document.getElementById("showNation2015").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2015").addClass("show");
};
document.getElementById("showNation2016").onclick = function() {
$(".nationgraph").removeClass("show");
$("#nation2016").addClass("show");
};
var d = document.getElementById("center2009");
d.className += " show";
document.getElementById("showCenter2009").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2009").addClass("show");
};
document.getElementById("showCenter2010").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2010").addClass("show");
};
document.getElementById("showCenter2011").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2011").addClass("show");
};
document.getElementById("showCenter2012").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2012").addClass("show");
};
document.getElementById("showCenter2013").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2013").addClass("show");
};
document.getElementById("showCenter2014").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2014").addClass("show");
};
document.getElementById("showCenter2015").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2015").addClass("show");
};
document.getElementById("showCenter2016").onclick = function() {
$(".centergraph").removeClass("show");
$("#center2016").addClass("show");
};
document.getElementById("showAll2009").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2009, #age2009, #nation2009, #center2009, #disb2009").addClass("show");
};
document.getElementById("showAll2010").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2010, #age2010, #nation2010, #center2010, #disb2010").addClass("show");
};
document.getElementById("showAll2011").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2011, #age2011, #nation2011, #center2011, #disb2011").addClass("show");
};
document.getElementById("showAll2012").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2012, #age2012, #nation2012, #center2012, #disb2012").addClass("show");
};
document.getElementById("showAll2013").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2013, #age2013, #nation2013, #center2013, #disb2013").addClass("show");
};
document.getElementById("showAll2014").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2014, #age2014, #nation2014, #center2014, #disb2014").addClass("show");
};
document.getElementById("showAll2015").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2015, #age2015, #nation2015, #center2015, #disb2015").addClass("show");
};
document.getElementById("showAll2016").onclick = function() {
$(".gendergraph, .agegraph, .nationgraph, .centergraph").removeClass("show");
$("#gender2016, #age2016, #nation2016, #center2016, #disb2016").addClass("show");
};
$(document).ready(function(){
$('.pop-hover').hover(function(){
$(this).addClass('trans-3').toggleClass("depth-1 depth-5");
});
});