Added js which focuses on active menu element.

This commit is contained in:
Tomasz Zaworski 2021-05-14 23:47:08 +02:00
parent 067e1bd242
commit 1028a1b733
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$(".sidebar-menu li.active")[0].scrollIntoView();
});
</script>

View File

@ -20,7 +20,8 @@
<span class="glyphicon glyphicon-search"></span> <span class="glyphicon glyphicon-search"></span>
</button> </button>
</span> </span>
</div> </div>
</form>
</div> </div>
{{ if eq .Lang "en"}} {{ if eq .Lang "en"}}