rename html folder to public

This commit is contained in:
Marijn Jansen
2017-01-13 14:44:45 +01:00
parent faf5442528
commit 1cffad77d6
35 changed files with 1 additions and 11 deletions

38
website/public/js/menu.js Normal file
View File

@@ -0,0 +1,38 @@
$(document).ready(function() {
$(".extra-menu-items").hide();
// Show more friends
$("#more-friends-click").click(function() {
// Show only friends
$("#groups-menu-section").slideUp();
$("#friends-menu-section a").show();
// Change buttons
$("#more-friends-click").hide();
$("#menu-back").show();
});
// Show more groups
$("#more-groups-click").click(function() {
// Show only groups
$("#friends-menu-section").slideUp();
$("#groups-menu-section a").show();
// Change buttons
$("#more-groups-click").hide();
$("#menu-back").show();
});
// Go back
$("#menu-back").click(function() {
// Show overview of friends and groups
$("#friends-menu-section").slideDown();
$("#groups-menu-section").slideDown();
$(".extra-menu-items").hide();
// Change buttons
$("#menu-back").hide();
$("#more-groups-click").show();
$("#more-friends-click").show();
});
});