summaryrefslogtreecommitdiff
path: root/client/splash/modal.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-29 20:39:26 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-29 20:39:26 +0100
commita852b97060727428b8be55717b9dca4149f4368a (patch)
treececc93c412117021c4201b72189844fe6377f79a /client/splash/modal.js
parent20c04cbe5d5d4072bcb2bd098fc9dd88577398cb (diff)
add modal
Diffstat (limited to 'client/splash/modal.js')
-rw-r--r--client/splash/modal.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/splash/modal.js b/client/splash/modal.js
new file mode 100644
index 00000000..d5a63d75
--- /dev/null
+++ b/client/splash/modal.js
@@ -0,0 +1,10 @@
+
+export function open() {
+ const el = document.querySelector('.about')
+ el.classList.add('open')
+}
+
+export function close() {
+ const el = document.querySelector('.about')
+ el.classList.remove('open')
+}