Commit 99fb68b2 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed last jquery calls

parent 57a56b69
......@@ -114,14 +114,14 @@
document.querySelector("#head > button").addEventListener('click', function() {
if(!updating) {
$("#head > button").removeClass("btn-danger");
$("#head > button").addClass("btn-success");
document.querySelector("#head > button").classList.remove("btn-danger");
document.querySelector("#head > button").classList.add("btn-success");
buttonText = "Aktualisierung stoppen";
interval = setInterval(updateQueries, 1000);
}
var updateAt = lastUpdate + 60000;
var updateIn = Math.round((updateAt - Date.now()) / 1000);
$("#head > button").html(buttonText + " (" + updateIn + ")");
document.querySelector("#head > button").innerHTML = buttonText + " (" + updateIn + ")";
updating = !updating;
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment