diff --git a/static/js/background_anim.js b/static/js/background_anim.js index ea2ba447be6796f0659ba6d3781141cf5e19dd23..6057c0fe1f64e907a6f7716ed3e00cf77543981a 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 13e4f0b5a9fbdf58d218f87cf3bce0fd88872f06..29e9b023594db981f8eb4e5f94f13933c85b73c3 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>