Finished Day 3

This commit is contained in:
2021-04-09 21:27:41 +02:00
parent 67b803eef8
commit 2cef727b24
3 changed files with 210 additions and 0 deletions

11
50Days/day3/script.js Normal file
View File

@@ -0,0 +1,11 @@
const open = document.getElementById('open');
const close = document.getElementById('close');
const container = document.querySelector('.container');
open.addEventListener('click', () => {
container.classList.add('show-nav');
});
close.addEventListener('click', () => {
container.classList.remove('show-nav');
});