You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
868 B

$(function() {
$(".fetch-json").each(function(idx, el) {
$.getJSON(el.dataset.url, function(data) {
el.innerText = JSON.stringify(data);
});
});
$("#show-svg").click(function() {
$("#badges-svg").show();
$("#badges-json").hide();
$("#badges-shields").hide();
})
$("#show-json").click(function() {
$("#badges-svg").hide();
$("#badges-json").show();
$("#badges-shields").hide();
})
$("#show-shields").click(function() {
$("#badges-svg").hide();
$("#badges-json").hide();
$("#badges-shields").show();
})
$("#show-with-late").click(function() {
$(".no-late").hide();
$(".with-late").show();
})
$("#show-no-late").click(function() {
$(".with-late").hide();
$(".no-late").show();
})
});