js lint from kuijsten
Ted Unangst tedu@tedunangst.com
Wed, 22 Feb 2023 14:56:26 -0500
1 files changed,
9 insertions(+),
9 deletions(-)
jump to
M
views/honkpage.js
→
views/honkpage.js
@@ -139,7 +139,6 @@ holder.prepend(h)
} else { holder.append(h) } - } relinklinks() return lenhonks@@ -212,7 +211,7 @@
curpagestate.name = name curpagestate.arg = arg // get the holder for the target page - var stash = name + ":" + arg + stash = name + ":" + arg holder = honksforpage[stash] if (holder) { honksonpage.prepend(holder)@@ -226,7 +225,7 @@ honksonpage.prepend(document.createElement("div"))
var args = hydrargs() get("/hydra?" + encode(args), function(xhr) { if (xhr.status == 200) { - var lenhonks = fillinhonks(xhr, false) + fillinhonks(xhr, false) } else { refreshupdate(" status: " + xhr.status) }@@ -352,6 +351,7 @@ elem = document.getElementById("honkformhost")
elem.insertAdjacentElement('afterend', form) } var ridinput = document.getElementById("ridinput") + var honknoise = document.getElementById("honknoise") if (rid) { ridinput.value = rid if (hname) {@@ -365,7 +365,7 @@ honknoise.value = ""
} var updateinput = document.getElementById("updatexidinput") updateinput.value = "" - document.getElementById("honknoise").focus() + honknoise.focus() return false } function cancelhonking() {@@ -387,9 +387,9 @@ }
function updatedonker() { var el = document.getElementById("donker") el.children[1].textContent = el.children[0].value.slice(-20) - var el = document.getElementById("donkdescriptor") + el = document.getElementById("donkdescriptor") el.style.display = "" - var el = document.getElementById("saveddonkxid") + el = document.getElementById("saveddonkxid") el.value = "" } var checkinprec = 100.0@@ -411,7 +411,7 @@ gpsoptions.enableHighAccuracy = true
gpsoptions.timeout = 2000 }, function(err) { showelement("placedescriptor") - el = document.getElementById("placenameinput") + var el = document.getElementById("placenameinput") el.value = err.message }, gpsoptions) }@@ -422,8 +422,8 @@ const box = document.getElementById("honknoise");
box.value += data; } function loademus() { - div = document.getElementById("emupicker") - request = new XMLHttpRequest() + var div = document.getElementById("emupicker") + var request = new XMLHttpRequest() request.open('GET', '/emus') request.onload = function() { div.innerHTML = request.responseText