shopping-list/bin/nav.js

22 lines
646 B
JavaScript
Raw Normal View History

2018-10-24 15:00:27 +02:00
$(document).ready(function(){
$("#navigation nav font").click(function(){
window.location.href = "/"+$(this).data("url");
});
$('#burgerMenue').click(function(){
$(this).toggleClass('open');
if(!($("#navigation").data("open"))){
$("#navigation").css("left", "0");
$("#navigation").data("open", true);
}
else if($("#navigation").data("open")){
$("#navigation").css("left", "100%");
$("#navigation").data("open", false);}
});
$("#logout").click(function(){
window.location.href = "/php/logout.php";
});
2018-10-27 18:32:43 +02:00
$("#settings").click(function(){
window.location.href = "/settings";
});
2018-10-24 15:00:27 +02:00
});