From 2dffda0c6c494fbefab141b764d32e77b2c599fe Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 19 Oct 2017 01:10:44 +0200 Subject: [PATCH 1/2] WiP: Added search and contrast switcher Fixes loading visual glitch on menus (should be hidden by default on load) contrast adjustments --- _data/nav.csv | 2 + _includes/head.html | 19 ++++++ _includes/header.html | 4 +- _includes/searchbox | 16 +++++ _includes/searchbox_small | 3 + _layouts/home.html | 4 +- _sass/_search.scss | 113 ++++++++++++++++++++++++++++++++++ css/highContrast.scss | 56 +++++++++++++++++ css/main.scss | 4 +- index.html | 1 - javascripts/search.js | 93 ++++++++++++++++++++++++++++ javascripts/toggleContrast.js | 56 +++++++++++++++++ search.html | 12 ++++ 13 files changed, 376 insertions(+), 7 deletions(-) create mode 100644 _includes/searchbox create mode 100644 _includes/searchbox_small create mode 100644 _sass/_search.scss create mode 100644 css/highContrast.scss create mode 100644 javascripts/search.js create mode 100644 javascripts/toggleContrast.js create mode 100644 search.html diff --git a/_data/nav.csv b/_data/nav.csv index 7cb972c..2e710ff 100644 --- a/_data/nav.csv +++ b/_data/nav.csv @@ -11,3 +11,5 @@ News,/news/,true Interviews,/interviews/,true People,/people/,false Contact,/contact/,false +Search,/search.html,false +Toggle Contrast,javascript:toggleContrast();,false diff --git a/_includes/head.html b/_includes/head.html index a7c07c5..ff2a9a5 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -29,4 +29,23 @@ + + + + + + diff --git a/_includes/header.html b/_includes/header.html index ffc0dc1..1306b0f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -12,7 +12,7 @@