()
| 9 | |
| 10 | // Creating a function which will contain all the actions that will get executed when show-modal button is clicked. |
| 11 | const openModal = function(){ |
| 12 | modal.classList.remove('hidden'); |
| 13 | overlay.classList.remove('hidden'); |
| 14 | }; |
| 15 | // Creating a function which will contain all the actions that will get executed when user want to close modal window. |
| 16 | const closeModal = function() { |
| 17 | modal.classList.add('hidden'); |