daily pastebin goal
17%
SHARE
TWEET

Kode JavaScript Menu Responsive

MikoVirgoez Oct 16th, 2015 129 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.      <script type='text/javascript'>
  2.  
  3.     //<![CDATA[
  4.  
  5.     $(document).ready(function(){
  6.  
  7.         $("#nav-mobile").html($("#nav-main").html());
  8.  
  9.         $("#nav-trigger span").click(function(){
  10.  
  11.             if ($("nav#nav-mobile ul").hasClass("expanded")) {
  12.  
  13.                 $("nav#nav-mobile ul.expanded").removeClass("expanded").slideUp(250);
  14.  
  15.                 $(this).removeClass("open");
  16.  
  17.             } else {
  18.  
  19.                 $("nav#nav-mobile ul").addClass("expanded").slideDown(250);
  20.  
  21.                 $(this).addClass("open");
  22.  
  23.             }
  24.  
  25.         });
  26.  
  27.     });
  28.  
  29.     //]]>
  30.  
  31.     </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top