Line 115: | Line 115: | ||
<script> | <script> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | |||
$('.mobile-toggle').on('click', function(evt) { | $('.mobile-toggle').on('click', function(evt) { | ||
evt.preventDefault(); | evt.preventDefault(); | ||
− | |||
if ($('.navbar').hasClass('open-nav')) { | if ($('.navbar').hasClass('open-nav')) { | ||
$('.navbar').removeClass('open-nav'); | $('.navbar').removeClass('open-nav'); | ||
Line 140: | Line 138: | ||
if ($(this).prop('href') == window.location.href) { | if ($(this).prop('href') == window.location.href) { | ||
$(this).addClass('current'); | $(this).addClass('current'); | ||
− | |||
− | |||
} | } | ||
}); | }); |
Revision as of 13:36, 13 October 2016