From 41924391280f3ab06396dc9f88a2e4117904f853 Mon Sep 17 00:00:00 2001 From: triethyl Date: Mon, 29 Sep 2025 13:53:48 -0400 Subject: made site --- site/themes/hugo-starter/static/js/background.js | 82 ++++++++++++++++++++ site/themes/hugo-starter/static/js/switch-theme.js | 88 ++++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 site/themes/hugo-starter/static/js/background.js create mode 100644 site/themes/hugo-starter/static/js/switch-theme.js (limited to 'site/themes/hugo-starter/static/js') diff --git a/site/themes/hugo-starter/static/js/background.js b/site/themes/hugo-starter/static/js/background.js new file mode 100644 index 0000000..e9b61a2 --- /dev/null +++ b/site/themes/hugo-starter/static/js/background.js @@ -0,0 +1,82 @@ +document.addEventListener("DOMContentLoaded", () => { + const canvas = document.getElementById("background"); + if (!canvas) return; + const ctx = canvas.getContext("2d"); + + // Grab config from the embedded