Skip to content

Commit

Permalink
Modify code for issue #66
Browse files Browse the repository at this point in the history
  • Loading branch information
wez3 committed May 6, 2017
1 parent f70b74f commit ad65393
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@
});
</script>
<script>
var a=document.querySelectorAll("a[href^='/']");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
$( document ).on(
"click",
"a",
function( event ){
event.preventDefault();
if (event.target.id != "menu_toggle_button" ) {
location.href = $( event.target ).attr( "href" );
}
}
}
);
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<nav class="" role="navigation">
<div id="datetimeDiv">
<div class="nav toggle navbar-collapse" id="defaultNavbar1">
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
<a id="menu_toggle"><i id="menu_toggle_button" class="fa fa-bars"></i></a>
</div>
<div class="show_date" style="cursor: pointer; float: right; margin-left: -70px; margin-right: 20px; min-height: 51px;" id="time-part"></div>
<div class="hide_date" style="cursor: pointer; padding-left: 2px;" id="date-part"></div>
Expand Down

0 comments on commit ad65393

Please sign in to comment.