From ca2e7ff4e00a0aeeb4ecfbb12996f43710ab0581 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 27 Jul 2021 21:41:26 -0400 Subject: [PATCH] Oopsie --- js/script2.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/script2.js b/js/script2.js index 2343d94..d202268 100644 --- a/js/script2.js +++ b/js/script2.js @@ -34,13 +34,13 @@ function readBatteryLevel() { battery = data.adapter[0].status if (battery === "in") { document.getElementById('battery').innerHTML = "battery_charging_full" - console.log("charging") + } else if (data.percentage[0].level < 21) { document.getElementById('battery').innerHTML = "battery_alert" - console.log("low") + } else { document.getElementById('battery').innerHTML = "battery_full" - console.log("full") + } }); @@ -113,7 +113,6 @@ function changeMapBounds(btm_left, top_right) { xhr.onreadystatechange = function () { if (xhr.readyState === 4) { console.log(xhr.response) - document.getElementById("volume_level").innerHTML = xhr.response } } var json = {