MCPcopy Create free account
hub / github.com/codemistic/Web-Development / closeModal

Function closeModal

Modal-Window/script.js:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14};
15// Creating a function which will contain all the actions that will get executed when user want to close modal window.
16const closeModal = function() {
17 modal.classList.add('hidden');
18 overlay.classList.add('hidden');
19};
20
21// Making show modal button responsive
22btnOpenModal.addEventListener('click',openModal);

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected