Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- /*Skryva a odkryva hlavni menu pokud to tlacitko vyzada*/
- function toggleMainMenu() {
- if ($(".menu-Container").is(":visible")) {
- $("#mainNav").animate({
- opacity: 0
- }, 200, "swing", function () {
- $(".menu-Container").slideToggle(800)
- });
- }
- else {
- $(".menu-Container").slideToggle(800, function () {
- $("#mainNav").animate({
- opacity: 1
- }, 200, "swing")
- })
- }
- }
- /*Skryva a odkryva menu uvodni stranky pokud podle hlavniho menu*/
- function toggleHomeMenu() {
- if ($(".menu-Container").is(":visible")) {
- $("#contentNav").animate({
- opacity: 1
- }, 800, "swing")
- }
- else {
- $("#contentNav").animate({
- opacity: 0
- }, 400, "swing")
- }
- }
- /*set mainNav default state*/
- $("#mainNav").animate({
- opacity: 0
- }, 200, "swing");
- /*HOME MENU BTN handler*/
- $("#menuButton").click(function () {
- toggleHomeMenu();
- toggleMainMenu();
- });
- })
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement