Adapt to the new rules.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-04-10 21:28:54 +03:00
committed by dependabot-preview[bot]
parent 256887b78e
commit ae13014565
22 changed files with 327 additions and 463 deletions

View File

@@ -18,7 +18,7 @@ function httpGet(ta, theUrl) {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
ta.show();
ta.empty();
@@ -54,7 +54,7 @@ function eventsource() {
source.addEventListener(
"message",
function(e) {
function (e) {
ta.append(e.data);
},
false
@@ -63,14 +63,14 @@ function eventsource() {
// Will be called when script has finished
source.addEventListener(
"error",
function() {
function () {
source.close();
},
false
);
}
$("#debugBtn").on("click", function() {
$("#debugBtn").on("click", function () {
$("#debugBtn").attr("disabled", true);
$("#upload").attr("disabled", true);
eventsource();