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

Function openModal

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

Source from the content-addressed store, hash-verified

9
10// Creating a function which will contain all the actions that will get executed when show-modal button is clicked.
11const 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.
16const closeModal = function() {
17 modal.classList.add('hidden');

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected