summaryrefslogtreecommitdiff
path: root/frontend/popup.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-01-09 22:11:10 +0800
committeraltaf-creator <dev@altafcreator.com>2026-01-09 22:11:10 +0800
commit85afbb89dd1ab32583b77a530f14c338fff0b29d (patch)
tree21c75713c6ef9b0cc8d8591d5686e8a97fb949c6 /frontend/popup.js
parent36a1e21e3d85fd1faa70a60b1515826a551d2e28 (diff)
ajkhfsdjhkfdsa
Diffstat (limited to 'frontend/popup.js')
-rw-r--r--frontend/popup.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/popup.js b/frontend/popup.js
new file mode 100644
index 0000000..b7adf0a
--- /dev/null
+++ b/frontend/popup.js
@@ -0,0 +1,12 @@
+const popupCloseBtn = document.getElementById("close-popup");
+const popupMaster = document.getElementById("popup-master")
+
+popupCloseBtn.addEventListener("mousedown", () => closePopup());
+
+function closePopup() {
+ popupMaster.style.display = "none";
+}
+
+function openPopup() {
+ popupMaster.style.display = "flex";
+}