This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const toggleList = document.getElementById('toggleList'); | |
const listDiv = document.querySelector('.list'); | |
const descriptionInput = document.querySelector('input.description'); | |
const descriptionP = document.querySelector('p.description'); | |
const descriptionButton = document.querySelector('button.description'); | |
const listUl = listDiv.querySelector('ul'); | |
const addItemInput = document.querySelector('input.addItemInput'); | |
const addItemButton = document.querySelector('button.addItemButton'); | |
listUl.addEventListener('click', (event) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!--IE=edge means IE should use the latest (edge) version of its rendering engine | |
chrome=1 means IE should use the Chrome rendering engine if installed --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |