-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
25 lines (21 loc) · 897 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const showBtn = document.querySelector('.navBtn');
const topNav = document.querySelector('.top-nav');
const aboutMoved = document.querySelector('.about');
const row = document.querySelector('.row');
const inputs = document.getElementsByTagName('input');
const submitButton = document.getElementById('Submitter');
showBtn.addEventListener('click', function() {
if (topNav.classList.contains('showNav')) {
topNav.classList.remove('showNav');
showBtn.innerHTML = '<i class = "fas fa-bars"></i>';
aboutMoved.classList.remove('navShown');
row.classList.remove('navShown')
} else {
topNav.classList.add('showNav');
showBtn.innerHTML = '<i class="fas fa-times"></i>';
aboutMoved.classList.add('navShown');
row.classList.add('navShown')
}
});
/* Lightbox */
var lightbox = new SimpleLightbox('.gallery a', { /* options */ });