summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/index.html b/index.html
index df57955..7bb75a4 100644
--- a/index.html
+++ b/index.html
@@ -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>