add everything necessary to be able to calculate skills interactive.

added new route to main to handle skill field update
added new handler to work with htmx requests for skill calculation
made skill fields readonly
adapted templates for reloading of skills only
This commit is contained in:
Patryk Hegenberg 2023-12-12 20:56:55 +01:00
parent 7ed139ff97
commit 206b5bb506
6 changed files with 644 additions and 473 deletions

View file

@ -36,6 +36,7 @@ func main() {
routes.HandleFunc("/about", handlers.AboutHandler(content))
routes.HandleFunc("/contact", handlers.ContactHandler(content))
routes.HandleFunc("/monsterTable", handlers.MonsterTableHandler(content, &Monsters))
routes.HandleFunc("/calculate-skills", handlers.SkillCalculationHandler(content))
// Print the message indicating that 'static' has been included.
log.Printf("Eingebunden is %v\n", static)