1jQuery(document).ready(function(){ 2 3 jQuery('a[href*="#a"]:not([href="#"])').click(function() 4 { 5 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) 6 { 7 var target = jQuery(this.hash); 8 target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); 9 if (target.length) 10 { 11 jQuery('html, body').animate({ 12 scrollTop: target.offset().top 13 }, 800); 14 return false; 15 } 16 } 17 }); 18 19 if(document.location.hash != '') 20 { 21 var target = jQuery(document.location.hash); 22 target = target.length ? target : jQuery('[name=' + document.location.hash.slice(1) +']'); 23 24 if (target.length) 25 { 26 jQuery('html, body').animate({ 27 scrollTop: target.offset().top 28 }, 1200); 29 return false; 30 } 31 } 32 33 var scrollTopH = 140; 34 35 jQuery(window).resize(function() 36 { 37 var windowW = jQuery(window).width(); 38 scrollTopH = 140; 39 if(windowW >= 768 && windowW <= 991) 40 { 41 scrollTopH = 230; 42 } 43 }); 44 45 jQuery(window).resize(); 46 jQuery(window).scroll(function() 47 { 48 if(jQuery(window).scrollTop() > scrollTopH) 49 { 50 jQuery("body").addClass("body-scroll"); 51 } 52 else 53 { 54 jQuery("body").removeClass("body-scroll"); 55 } 56 }); 57 58 jQuery(document).ready(function(){ 59 60 jQuery('header').waypoint(function() { 61 jQuery(this).toggleClass('header-waypoint'); 62 }, {offset: '80%'}); 63 64 jQuery('section').waypoint(function() { 65 jQuery(this).toggleClass('section-waypoint'); 66 }, {offset: '50%'}); 67 68 jQuery('footer').waypoint(function() { 69 jQuery(this).toggleClass('footer-waypoint'); 70 }, {offset: '50%'}); 71 72 }); 73 74 function toggleMenu() { 75 $(shadowClass).toggleClass('active'); 76 $('body').toggleClass('body-menu-active'); 77 $(collapsibleDiv).toggleClass('show'); 78 $('.navbar-toggler').toggleClass('clicked'); 79 } 80 81 82 //============================== ICON TOGGLER ANIMATION ========================= 83 84 var shadowClass = $('.mobile-sticky-header-overlay'); 85 var collapsibleDiv = $('.navbar-collapse'); 86 var toolbarToggle = $('.icon-toggle'); 87 var toggleTimeout = null; 88 89 90 function toggleMenu() { 91 $(shadowClass).toggleClass('active'); 92 $('body').toggleClass('body-menu-active'); 93 $(collapsibleDiv).toggleClass('show'); 94 $('.navbar-toggler').toggleClass('clicked'); 95 } 96 $('.navbar a.dropdown-toggle').on('click', function(e) { 97 var elmnt = $(this).parent().parent(); 98 if (!elmnt.hasClass('navbar-nav')) { 99 var li = $(this).parent(); 100 var heightParent = parseInt(elmnt.css('height').replace('px', ''),10) / 2; 101 var widthParent = parseInt(elmnt.css('width').replace('px', ''),10) - 10; 102 103 if(!li.hasClass('show')){li.addClass('show');} 104 else{ li.removeClass('show');} 105 $(this).next().css('top', heightParent + 'px'); 106 $(this).next().css('left', widthParent + 'px'); 107 108 return false; 109 } 110 111 }); 112 113 //============================== ALL DROPDOWN ON HOVER ========================= 114 115 116 if($('.navbar').width() > 768){ 117 $('.navbar-nav .dropdown').hover(function() { 118 clearTimeout(toggleTimeout); 119 $('.navbar-nav .dropdown.show').not($(this)).removeClass('show'); 120 var dropdown = this; 121 toggleTimeout = setTimeout(function() { 122 $(dropdown).addClass('show'); 123 shadowClass.addClass('active'); 124 }, 300); 125 }, 126 function() { 127 clearTimeout(toggleTimeout); 128 var dropdown = this; 129 toggleTimeout = setTimeout(function() { 130 $(dropdown).removeClass('show'); 131 shadowClass.removeClass('active'); 132 }, 500); 133 }); 134 } 135 136});
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.