mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-27 15:40:00 +01:00
18 lines
565 B
JavaScript
18 lines
565 B
JavaScript
$(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";
|
|
});
|
|
});
|