From 227998076b5d00d9ef28c9314e2a82f21e8a4ba2 Mon Sep 17 00:00:00 2001 From: Adrien Joly Date: Sun, 20 Nov 2016 17:26:15 +0100 Subject: [PATCH] add curators toggle on main page --- common.js | 6 ++++++ index.html | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 common.js diff --git a/common.js b/common.js new file mode 100644 index 0000000..6b940f5 --- /dev/null +++ b/common.js @@ -0,0 +1,6 @@ +var curators = document.getElementById('curators'); +function toggleCurators() { + curators.style.display = curators.style.display == 'none' ? 'block' : 'none'; +} +var toggle = document.getElementById('js-curators-toggle').parentNode; +toggle.onmouseenter = toggle.onmouseleave = toggleCurators; diff --git a/index.html b/index.html index 2c0c156..8233654 100644 --- a/index.html +++ b/index.html @@ -15,9 +15,16 @@

Nomad Airlines

@@ -89,6 +96,7 @@

Boarding pass

+