Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- talents = $(".talenti");
- filter = $(".filtra");
- $("#filter-close a").click(function (e) {
- e.preventDefault();
- $(".nasco .wrapNasco").hide();
- $("#sliding-navigation").hide();
- $("#wrapNav").slideUp("slow");
- talents.removeClass('opened');
- filter.removeClass('opened');
- $("a", this).removeClass(".selected");
- });
- $("#chiudi").click(function (e) {
- e.preventDefault();
- $(".nasco .wrapNasco").hide();
- $("#sliding-navigation").hide();
- $("#wrapNav").slideUp("slow");
- talents.removeClass('opened');
- filter.removeClass('opened');
- $("a", this).removeClass(".selected");
- });
- filter.click(function(e){
- e.preventDefault();
- if (filter.hasClass('opened')){
- filter.removeClass('opened');
- // toggle the wrapping, just with a zero top coordinate...
- $("#wrapNav").slideToggle("fast", "linear", function(){
- $("#sliding-navigation").hide();
- });
- }
- filter.addClass('opened');
- if (talents.hasClass("opened"))
- {
- $(".nasco .wrapNasco").hide();
- $("#wrapNav").slideToggle("fast");
- talents.removeClass('opened');
- }
- // toggle the wrapping with a height of the nav as top coordinate...
- $("#wrapNav").slideToggle("500", "linear", function(){
- $("#sliding-navigation").slideToggle("slow");
- });
- });
- talents.click(function(e) {
- e.preventDefault();
- if (talents.hasClass('opened')) {
- talents.removeClass('opened');
- // toggle the wrapping, just with a zero top coordinate...
- $("#wrapNav").slideToggle("fast", "linear", function(){
- $(".nasco .wrapNasco").hide();
- });
- }
- talents.addClass('opened');
- if (filter.hasClass("opened"))
- {
- $("#sliding-navigation").hide();
- $("#wrapNav").slideToggle("fast");
- filter.removeClass('opened');
- }
- // toggle the wrapping with a height of the nav as top coordinate...
- $("#wrapNav").slideToggle("500", "linear", function(){
- $(".nasco .wrapNasco").slideToggle("slow");
- });
- });
Add Comment
Please, Sign In to add comment