From 122f2b7f44ab9e4b3ed15c7a486fff451d482a2a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 27 Jul 2018 00:35:55 +0200 Subject: [PATCH] made the impressum open based on the link --- index.html | 2 +- scripts/main.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index a36193a..b885c31 100644 --- a/index.html +++ b/index.html @@ -111,7 +111,7 @@ diff --git a/scripts/main.js b/scripts/main.js index 491030d..a223654 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,4 +1,12 @@ $(function() { + let openImp = function() { + $('#impressum-modal').modal('show'); + } + $('#impressum-button').on('click', openImp); + if (window.location.hash.includes('#impressum')) { + openImp(); + } + $('.navbar-collapse a').on('click', function() { $('.navbar-collapse').collapse('hide'); });