2020-05-27 12:35:12 +00:00
|
|
|
function initStats()
|
2020-05-12 18:57:29 +00:00
|
|
|
{
|
|
|
|
var buttons = document.getElementsByClassName("onchange");
|
|
|
|
for(index = 0; index < buttons.length; index++)
|
|
|
|
{
|
|
|
|
var button = buttons[index];
|
2020-05-27 12:35:12 +00:00
|
|
|
addSChangeHandler(button);
|
2020-05-12 18:57:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-27 12:35:12 +00:00
|
|
|
function addSChangeHandler(elem)
|
2020-05-12 18:57:29 +00:00
|
|
|
{
|
|
|
|
elem.addEventListener("change", function() {
|
|
|
|
location.href=event.target.value;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
2020-05-27 12:35:12 +00:00
|
|
|
initStats();
|
2020-05-12 18:57:29 +00:00
|
|
|
}, true);
|