Samuel Sylvester• 330
@Sylvester009
Posted
Nice work here, to complete the whole setup for the desktop, try to make it possible for the share modal to open and close when the share button is clicked. Use can do by putting an if statement inside the function of the EventListener, something like this: desktopShareButton.addEventListener("click", () => { if (desktopShareModal.style.display === "flex") { desktopModalIsClose(); } else { desktopModalIsOpen(); } });
0