diff options
author | Minteck <contact@minteck.org> | 2022-07-09 14:59:47 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-09 14:59:47 +0200 |
commit | 1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e (patch) | |
tree | 714a128892b3e4f87a4561a9131e0d34627a82cb /index.html | |
parent | eed86d556ccba5d6bfdc8795990f188d0c573fc7 (diff) | |
download | bits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.tar.gz bits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.tar.bz2 bits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.zip |
Fix some weird bug
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -197,6 +197,13 @@ document.getElementById("graph-insights-text").style.color = "black";
document.getElementById("graph-insights-text").innerText = "No insights available. Please try again later.";
+ document.getElementById("graph-insights-text").style.color = "white";
+ document.getElementById("graph-insights-text").innerText = "Slope (negative = losing money; positive = gaining money): " + trend.slope;
+
+/*
+
+TODO: Fix this (it makes the browser process hang)
+
let avgSlope = Math.round(trend.slope);
if (avgSlope < -3) {
document.getElementById("graph-insights-color").style.backgroundColor = "red";
@@ -229,6 +236,7 @@ let date = new Date(new Date().getTime() + timeUntilGoal).toString().split(":")[0];
document.getElementById("graph-insights-text").innerText += " (reaching goal on " + date.substring(0, date.length - 3) + ")";
}
+*/
}
async function createTransaction() {
@@ -616,4 +624,4 @@ width:max-content;"> }
</script>
</body>
-</html>
\ No newline at end of file +</html>
|