Guest User

Untitled

a guest
Jun 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    talents = $(".talenti");
  2.     filter = $(".filtra");
  3.  
  4.     $("#filter-close a").click(function (e) {
  5.         e.preventDefault();
  6.         $(".nasco .wrapNasco").hide();
  7.         $("#sliding-navigation").hide();
  8.                 $("#wrapNav").slideUp("slow");
  9.                 talents.removeClass('opened');
  10.         filter.removeClass('opened');
  11.         $("a", this).removeClass(".selected");
  12.     });
  13.  
  14.     $("#chiudi").click(function (e) {
  15.         e.preventDefault();
  16.         $(".nasco .wrapNasco").hide();
  17.         $("#sliding-navigation").hide();
  18.                 $("#wrapNav").slideUp("slow");
  19.                 talents.removeClass('opened');
  20.         filter.removeClass('opened');
  21.         $("a", this).removeClass(".selected");
  22.     });
  23.  
  24.     filter.click(function(e){
  25.         e.preventDefault();
  26.         if (filter.hasClass('opened')){
  27.             filter.removeClass('opened');
  28.             // toggle the wrapping, just with a zero top coordinate...
  29.             $("#wrapNav").slideToggle("fast", "linear", function(){
  30.                 $("#sliding-navigation").hide();
  31.             });
  32.  
  33.         }
  34.             filter.addClass('opened');
  35.             if (talents.hasClass("opened"))
  36.             {
  37.                 $(".nasco .wrapNasco").hide();
  38.                 $("#wrapNav").slideToggle("fast");
  39.                 talents.removeClass('opened');
  40.             }
  41.             // toggle the wrapping with a height of the nav as top coordinate...
  42.             $("#wrapNav").slideToggle("500", "linear", function(){
  43.                 $("#sliding-navigation").slideToggle("slow");
  44.             });
  45.      });
  46.  
  47.     talents.click(function(e) {
  48.         e.preventDefault();
  49.         if (talents.hasClass('opened')) {
  50.             talents.removeClass('opened');
  51.             // toggle the wrapping, just with a zero top coordinate...
  52.             $("#wrapNav").slideToggle("fast", "linear", function(){
  53.                $(".nasco .wrapNasco").hide();
  54.             });
  55.         }
  56.        
  57.             talents.addClass('opened');        
  58.             if (filter.hasClass("opened"))
  59.             {
  60.                 $("#sliding-navigation").hide();
  61.                 $("#wrapNav").slideToggle("fast");
  62.                 filter.removeClass('opened');
  63.             }
  64.             // toggle the wrapping with a height of the nav as top coordinate...
  65.             $("#wrapNav").slideToggle("500", "linear", function(){
  66.                 $(".nasco .wrapNasco").slideToggle("slow");
  67.             });
  68.     });
Add Comment
Please, Sign In to add comment