From 2df3885866e577c7cdf4177ad216d09832f8498b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 17 Feb 2021 16:46:04 +0100 Subject: update the equipment list --- docs/assets/js/site.js | 2 +- docs/index.html | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/assets/js/site.js b/docs/assets/js/site.js index f93b47d..44863e2 100644 --- a/docs/assets/js/site.js +++ b/docs/assets/js/site.js @@ -28,6 +28,7 @@ const site = (function () { }, 0); toArray(document.querySelectorAll(".menu a")).forEach((a) => { a.addEventListener("click", (e) => { + console.log(e.target); const href = e.target.getAttribute("href") || ""; if (href.indexOf("#") === -1) { sounds.play("click"); @@ -35,7 +36,6 @@ const site = (function () { } e.preventDefault(); sounds.play("click"); - console.log(e.target); if (e.target.nodeName.toLowerCase() !== "a") { navigateHash(e.target.parentNode.href); } else { diff --git a/docs/index.html b/docs/index.html index 9afa47c..d7599b1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -18,7 +18,8 @@