From e4274d110702a2254c4d92753ee7bc77fb4f19fa Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Fri, 11 Jul 2025 11:55:55 +0200 Subject: [PATCH] added search.js --- frontend/index.html | 3 ++- frontend/scripts/search.js | 1 + main.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 frontend/scripts/search.js diff --git a/frontend/index.html b/frontend/index.html index 57d2ad9..675ab2e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -61,7 +61,6 @@ document.addEventListener('DOMContentLoaded', function() { Array.from(document.querySelectorAll('input')).forEach(element => { - console.log(element) element.focus(); }) }); @@ -93,5 +92,7 @@ animateMarquee(); }); + + diff --git a/frontend/scripts/search.js b/frontend/scripts/search.js new file mode 100644 index 0000000..8c87c5b --- /dev/null +++ b/frontend/scripts/search.js @@ -0,0 +1 @@ +console.log("included search") diff --git a/main.go b/main.go index 7c06c93..b1e6eae 100644 --- a/main.go +++ b/main.go @@ -48,6 +48,7 @@ func main() { e := echo.New() e.Static("/assets", "frontend/assets") + e.Static("/scripts", "frontend/scripts") e.GET("/", getIndex) // this is for me to later setup the ctl such that I can config the running program on the command line