summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-09 14:59:47 +0200
committerMinteck <contact@minteck.org>2022-07-09 14:59:47 +0200
commit1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e (patch)
tree714a128892b3e4f87a4561a9131e0d34627a82cb
parenteed86d556ccba5d6bfdc8795990f188d0c573fc7 (diff)
downloadbits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.tar.gz
bits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.tar.bz2
bits-client-1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e.zip
Fix some weird bug
-rw-r--r--.DS_Storebin6148 -> 8196 bytes
-rw-r--r--.idea/.name1
-rw-r--r--.idea/sshConfigs.xml2
-rw-r--r--index.html10
4 files changed, 11 insertions, 2 deletions
diff --git a/.DS_Store b/.DS_Store
index e2b4a08..74e7af2 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..0a479c1
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+chart.js \ No newline at end of file
diff --git a/.idea/sshConfigs.xml b/.idea/sshConfigs.xml
index 879e534..30ec9ad 100644
--- a/.idea/sshConfigs.xml
+++ b/.idea/sshConfigs.xml
@@ -2,7 +2,7 @@
<project version="4">
<component name="SshConfigs">
<configs>
- <sshConfig authType="OPEN_SSH" host="maretimebay.equestria.dev" id="17be5d09-5e94-4365-8ca0-5bcb63935b24" port="22465" nameFormat="DESCRIPTIVE" username="root" useOpenSSHConfig="true" />
+ <sshConfig authType="OPEN_SSH" connectionConfig="{&quot;serverAliveInterval&quot;:300}" host="maretimebay.equestria.dev" id="17be5d09-5e94-4365-8ca0-5bcb63935b24" port="22465" nameFormat="DESCRIPTIVE" username="root" useOpenSSHConfig="true" />
</configs>
</component>
</project> \ No newline at end of file
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>