From 62cfe7b64324a1a4328d6f6cf5968a19d7a58b4e Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 22 Apr 2022 03:07:54 +0000 Subject: [PATCH] Fix ios safari --- views/classUsers.hbs | 5 +++-- views/classes.hbs | 2 +- views/layouts/admin.hbs | 5 ++++- views/layouts/main.hbs | 3 +++ views/partials/dashboardTest.hbs | 5 +++-- views/partials/test.hbs | 5 +++-- views/partials/testResult.hbs | 7 ++++--- views/testTemplate.hbs | 6 ++++-- views/testTemplates.hbs | 5 +++-- 9 files changed, 28 insertions(+), 15 deletions(-) diff --git a/views/classUsers.hbs b/views/classUsers.hbs index a425547..d8237c0 100644 --- a/views/classUsers.hbs +++ b/views/classUsers.hbs @@ -17,8 +17,9 @@ {{> adminHeader }} {{> adminNav current=current name=name }}
@@ -12,7 +15,7 @@ const toggle = document.querySelector('.adminNav-toggle'); const nav = document.querySelector('.adminNav'); - toggle.addEventListener('click', () => { + toggle.addEventListener(touchEvent, () => { nav.style.display = (nav.style.display === 'flex') ? 'none' diff --git a/views/layouts/main.hbs b/views/layouts/main.hbs index 4161428..b367616 100644 --- a/views/layouts/main.hbs +++ b/views/layouts/main.hbs @@ -2,6 +2,9 @@ {{> head title=title }} + {{> mainNav }} {{{ body }}} {{> scripts }} diff --git a/views/partials/dashboardTest.hbs b/views/partials/dashboardTest.hbs index c0671e7..b425d10 100644 --- a/views/partials/dashboardTest.hbs +++ b/views/partials/dashboardTest.hbs @@ -4,8 +4,9 @@ diff --git a/views/partials/test.hbs b/views/partials/test.hbs index 633a6ef..5e39701 100644 --- a/views/partials/test.hbs +++ b/views/partials/test.hbs @@ -6,8 +6,9 @@ diff --git a/views/partials/testResult.hbs b/views/partials/testResult.hbs index 917043c..4dd8913 100644 --- a/views/partials/testResult.hbs +++ b/views/partials/testResult.hbs @@ -48,11 +48,12 @@ {{#if edit}}