Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $('a.DMode').click(function(e) {
  2.        if(window.location.hash == "#DMode"){
  3.            /* We reset the hash */
  4.            parent.location.hash = '';
  5.            /* Then we switch back to the original mode */
  6.            $("ul.sub_list > li").animate({opacity:0}, 500, function(){
  7.                $(".sub_content").css("width", "590px");
  8.                $(".sub_content_translate").css("width", "0px").css("display", "none");
  9.                $("ul.sub_list > li").delay(500).animate({opacity:1}, 500);
  10.            });
  11.            return false;
  12.        }else{
  13.            /* Else, we display the dual mode
  14.             * We hide the list while changing everything */
  15.            $("ul.sub_list > li").animate({opacity:0}, 500, function(){
  16.                $(".sub_content").css("width", "295px");
  17.                $(".sub_content_translate").css("width", "295px").css("display", "block");
  18.                $("ul.sub_list > li").delay(500).animate({opacity:1}, 500);
  19.            });
  20.        }
  21.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement