This commit is contained in:
2021-04-13 23:57:48 +02:00
parent 789c73f9df
commit 64e4f2717c
3 changed files with 91 additions and 0 deletions

8
50Days/day4/script.js Normal file
View File

@@ -0,0 +1,8 @@
const button = document.getElementById('toggle');
const search = document.getElementById('search');
const input = document.getElementById('input');
toggle.addEventListener('click', () => {
search.classList.toggle('active');
input.focus();
});