aboutsummaryrefslogtreecommitdiff
path: root/src/client/javascript/frontpage.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-13 21:29:15 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-13 21:29:15 +0200
commite87bf34e06f8bec3c6622102528c2d685b3cbb5b (patch)
treeeadfe43844faf52293f293ab37d9d621b6821329 /src/client/javascript/frontpage.js
parent3fb86482404e11942cd83c3500a297a3991db0e4 (diff)
Add some basic elm
Diffstat (limited to 'src/client/javascript/frontpage.js')
-rw-r--r--src/client/javascript/frontpage.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/client/javascript/frontpage.js b/src/client/javascript/frontpage.js
deleted file mode 100644
index 17cb539..0000000
--- a/src/client/javascript/frontpage.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const browserFixToolkit = require('./browserFixToolkit')
-
-const self = {}
-
-self._nodes = {
- input: document.querySelector('input[type="search"]')
-}
-
-self.isShown = false
-
-self.show = function () {
- document.body.classList.add('no-input')
- self.isShown = true
-}
-
-self.hide = function () {
- document.body.classList.remove('no-input')
- self.isShown = false
-}
-
-self._nodes.input.addEventListener(browserFixToolkit.inputEvent, self.hide)
-
-module.exports = self