From a48dc089f877549e6b54dad92dc2bc7147626193 Mon Sep 17 00:00:00 2001 From: Hyunchul Kim Date: Sun, 12 Sep 2021 03:08:04 +0900 Subject: [PATCH] Add onresize accessibility --- test_data/participants.html | 5 +++++ test_data/src/scripts/accessibility.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test_data/participants.html b/test_data/participants.html index d145e62..85a2fa1 100644 --- a/test_data/participants.html +++ b/test_data/participants.html @@ -304,5 +304,10 @@ + diff --git a/test_data/src/scripts/accessibility.js b/test_data/src/scripts/accessibility.js index f2eab6f..69a6060 100644 --- a/test_data/src/scripts/accessibility.js +++ b/test_data/src/scripts/accessibility.js @@ -2,7 +2,7 @@ let isZoomed = false; let thresholdForButtons = 1080; -window.onresize = () => { +onresizeAccessibility = () => { if (window.innerWidth < thresholdForButtons && isZoomed) { const zoom = document.querySelector("#zoom") const sound = document.querySelector("#sound")