mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-12-17 22:19:37 +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";
|
|
});
|
|
});
|