implemented spaces, fixed login and signup, thought creation and space creation.
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
const stdModal = document.querySelector("#stdModal");
|
||||
let modalContent = document.querySelector(".modalContent");
|
||||
|
||||
function openModal(html) {
|
||||
stdModal.innerHTML = html;
|
||||
stdModal.style.display = "flex";
|
||||
modalContent = document.querySelector(".modalContent");
|
||||
|
||||
window.addEventListener("click", () => {
|
||||
closeModal();
|
||||
});
|
||||
|
||||
modalContent.addEventListener("click", (e) => {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
stdModal.innerHTML = "";
|
||||
stdModal.style.display = "none";
|
||||
}
|
||||
Reference in New Issue
Block a user