made the impressum open based on the link
This commit is contained in:
parent
25e9676784
commit
122f2b7f44
2 changed files with 9 additions and 1 deletions
|
@ -111,7 +111,7 @@
|
||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<span class="text-muted"><a href="https://github.com/Ellpeck/Web">© 2018 Ellpeck</a> - <a href="" data-toggle="modal" data-target="#impressum-modal">Impressum</a></span>
|
<span class="text-muted"><a href="https://github.com/Ellpeck/Web">© 2018 Ellpeck</a> - <a id="impressum-button" href="#impressum">Impressum</a></span>
|
||||||
<img src="res/blobheart.png" id="blobheart">
|
<img src="res/blobheart.png" id="blobheart">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
$(function() {
|
$(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 a').on('click', function() {
|
||||||
$('.navbar-collapse').collapse('hide');
|
$('.navbar-collapse').collapse('hide');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue