From a852b97060727428b8be55717b9dca4149f4368a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 Jan 2019 20:39:26 +0100 Subject: add modal --- client/splash/modal.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 client/splash/modal.js (limited to 'client/splash/modal.js') 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') +} -- cgit v1.2.3-70-g09d2