mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 10:19:29 +00:00
Fix ios safari
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
<html lang='en'>
|
||||
{{> head title=title }}
|
||||
<body>
|
||||
<script>
|
||||
const touchEvent = 'ontouchstart' in window ? 'touchstart' : 'click';
|
||||
</script>
|
||||
{{> adminHeader }}
|
||||
{{> adminNav current=current name=name }}
|
||||
<main class='adminContent'>
|
||||
@@ -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'
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
<html lang='en'>
|
||||
{{> head title=title }}
|
||||
<body>
|
||||
<script>
|
||||
const touchEvent = 'ontouchstart' in window ? 'touchstart' : 'click';
|
||||
</script>
|
||||
{{> mainNav }}
|
||||
{{{ body }}}
|
||||
{{> scripts }}
|
||||
|
||||
Reference in New Issue
Block a user