reorder variables to top
This commit is contained in:
parent
e778873cf3
commit
4fa7938a35
@ -1,3 +1,7 @@
|
|||||||
|
const openMenuBtn = document.getElementById('open-menu-btn');
|
||||||
|
const closeMenuBtn = document.getElementById('close-menu-btn');
|
||||||
|
const mobileMenu = document.getElementById('mobile-menu');
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const notificationBanner = document.getElementById('notification-banner');
|
const notificationBanner = document.getElementById('notification-banner');
|
||||||
const dismissButton = document.getElementById('dismiss-btn');
|
const dismissButton = document.getElementById('dismiss-btn');
|
||||||
@ -12,10 +16,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const openMenuBtn = document.getElementById('open-menu-btn');
|
|
||||||
const closeMenuBtn = document.getElementById('close-menu-btn');
|
|
||||||
const mobileMenu = document.getElementById('mobile-menu');
|
|
||||||
|
|
||||||
openMenuBtn.addEventListener('click', () => {
|
openMenuBtn.addEventListener('click', () => {
|
||||||
mobileMenu.style.display = 'block';
|
mobileMenu.style.display = 'block';
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user