From 4fd6a2dd81952e5ccf309fdef5870e4e231f3c3d Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Sat, 4 Jun 2022 21:18:07 +0200 Subject: [PATCH] update - Removed toggle dark mode button - Implement browser auto-detection of dark-mode based on browser setting - Moved cookies JS to it's own file - Organised file structure --- docs/_includes/cookie_consent.html | 35 +++++-------------- docs/_includes/head.html | 19 +++++++++++ docs/_includes/header_custom.html | 19 ++--------- docs/_includes/js/custom.js | 12 +------ docs/_layouts/default.html | 3 ++ docs/assets/js/custom/cookies/cookies.js | 22 ++++++++++++ docs/assets/js/custom/scheme/colorscheme.js | 37 +++++++++++++++++++++ 7 files changed, 93 insertions(+), 54 deletions(-) create mode 100644 docs/assets/js/custom/cookies/cookies.js create mode 100644 docs/assets/js/custom/scheme/colorscheme.js diff --git a/docs/_includes/cookie_consent.html b/docs/_includes/cookie_consent.html index c4c85ff..d4d4a2c 100644 --- a/docs/_includes/cookie_consent.html +++ b/docs/_includes/cookie_consent.html @@ -29,33 +29,15 @@ } } - + \ No newline at end of file diff --git a/docs/_includes/head.html b/docs/_includes/head.html index a50a131..efc7861 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -12,7 +12,26 @@ + {% if false %} + {% endif %} + + + + + {% if site.ga_tracking != nil %} diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index f80a11f..8e0f2be 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,18 +1,5 @@ -