From d4c11bec22bb0335023175542aaaccd9660897d6 Mon Sep 17 00:00:00 2001 From: Alexel Date: Mon, 14 Aug 2023 17:06:19 -0400 Subject: [PATCH] toggle classe nav-is-active onclick hamburger --- public/js/index.js | 2 +- templates/html/header.gohtml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index e228e99..b47d099 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1,5 +1,5 @@ /** Création et exportation de la classe Header */ -export default class Header { +class Header { constructor(element) { this.element = element; this.html = document.documentElement; diff --git a/templates/html/header.gohtml b/templates/html/header.gohtml index 995884c..c9bed6a 100644 --- a/templates/html/header.gohtml +++ b/templates/html/header.gohtml @@ -1,5 +1,12 @@ {{ define "header-html" }} +
@@ -9,7 +16,7 @@
  • Documentation
  • admin
  • - +