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'); });