From 2a342d4b1a15800c022a160634f224ade53bf60b Mon Sep 17 00:00:00 2001 From: Pyro Nicampt <81565698+PyroNicampt@users.noreply.github.com> Date: Tue, 31 Dec 2024 19:36:49 -0600 Subject: [PATCH] auto hide legend on mobile --- legend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/legend.js b/legend.js index 6b4b8fb..fe2c7f2 100644 --- a/legend.js +++ b/legend.js @@ -86,6 +86,7 @@ document.addEventListener('DOMContentLoaded', async () => { }; legendButton.addEventListener('click', legendButtonEvent); legendButtonEvent(); + if(document.body.clientWidth <= 700) legendButtonEvent(); populateKey(); });