1$(document).ready(function(){ 2 3 //for menu responsive 4 $('button.menu-btn').click(function(){ 5 var menu = $('div.nav-menu'); 6 //$('body').toggleClass('openmenu'); 7 menu.toggleClass('openmenu'); 8 9 }); 10 11 //$('.sub-menu').hide(); 12 13 $('.nav-menu ul li').click( 14 function(e){ 15 16 $this = $(this); 17 var datamenu = $(this).attr('data-menu'); 18 var menu = $('#'+datamenu); 19 var span = $(this).children('span.sub'); 20 if ($this.data("clicked")==undefined || $this.data("clicked")==false) 21 menu.stop().slideDown(500,function(){ 22 span.addClass('open'); 23 }); 24 //return false; 25 26 } 27 ); 28 29 /* $(".sub-menu",this).bind({ 30 mouseenter:function() { 31 console.log("mouseenter"); 32 //$(this).stop().slideDown(); 33 }, 34 mouseleave: function() { 35 console.log("mouseleave"); 36 $(this).stop().slideUp(500,function(){ 37 $('.nav-menu ul li span.sub').removeClass('open'); 38 39 }); 40 41 } 42 }); 43 44 $('.preventDefault').click(function(e) { 45 e.preventDefault(); 46 }); 47 */ 48 49 // Brown Freelance 50 // -------------------------------------------------- 51 // User sign in dropdown. 52 $('#signup-dropdown').data('open', false); 53 $('#signup-dropdown').click(function(e){ 54 e.stopPropagation(); 55 }); 56 $('html').click(function() { 57 if ($('#signup-dropdown').data('open')==true) { 58 $('#signup-dropdown').data('open', false); 59 $('#signup-dropdown').slideUp('fast'); 60 $('#signup-signin a').removeClass('color'); 61 } 62 }); 63 $('#signup-signin .sign-in').click(function(e) { 64 e.preventDefault(); 65 e.stopPropagation(); 66 if ($('#signup-dropdown').data('open')==false) { 67 $('#signup-dropdown').data('open', true); 68 $('#signup-dropdown').slideDown('fast'); 69 } 70 else { 71 $('#signup-dropdown').data('open', false); 72 $('#signup-dropdown').slideUp('fast'); 73 } 74 }); 75 76 // Close signin popup. 77 $('#btnSignInClose').click(function(e) { 78 e.preventDefault(); 79 $('#signin-overlay').fadeOut('slow'); 80 }); 81 82}) 83
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.