From 1213bfdf70d7c3dff1f23c7844f526662ff8063c Mon Sep 17 00:00:00 2001
From: TheJoeCoder <joe@radialbog9.uk>
Date: Mon, 5 Aug 2024 13:21:08 +0100
Subject: [PATCH] Add debug toggle in html

---
 static/js/background_anim.js | 2 +-
 templates/index.html         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/static/js/background_anim.js b/static/js/background_anim.js
index ea2ba44..6057c0f 100644
--- a/static/js/background_anim.js
+++ b/static/js/background_anim.js
@@ -17,7 +17,7 @@ const LINE_COLOUR = "#777";
 const VELOCITY_SLOWDOWN_MULTIPLIER = 0.998;
 const VELOCITY_PUSH_MULTIPLIER = 1.2;
 
-const SHOW_VELOCITIES = false;
+let SHOW_VELOCITIES = false;
 
 // ----
 
diff --git a/templates/index.html b/templates/index.html
index 13e4f0b..29e9b02 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -71,6 +71,7 @@
         </div>
         <div class="footer text-center">
             <p class="text-secondary">Psst... This website is <a href="https://git.rb9.xyz/TheJoeCoder/personal-website" class="footer-link" target="_blank">open source</a>!</p>
+            <p class="text-secondary"><a onclick="SHOW_VELOCITIES = !SHOW_VELOCITIES;" href="#" class="footer-link">Toggle dot debug mode</a></p>
         </div>
         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
         <script src="js/background_anim.js"></script>
-- 
GitLab