1jQuery(document).ready(function(){ 2 3 4 jQuery(".header-right nav>ul > li").each(function (index, element) { 5 var currentlimobile = jQuery(this).find("ul.sub-menu").length; 6 if (jQuery(currentlimobile).length == 1) { 7 jQuery( 8 '<div class="toggle-submenu"><svg xmlns="http://www.w3.org/2000/svg" width="9.887" height="6" viewBox="0 0 9.887 6"> <path id="Icon_awesome-chevron-down" data-name="Icon awesome-chevron-down" d="M4.957,14.524l-4.4-4.4a.543.543,0,0,1,0-.768l.513-.513a.543.543,0,0,1,.768,0l3.5,3.487,3.5-3.487a.543.543,0,0,1,.768,0l.513.513a.543.543,0,0,1,0,.768l-4.4,4.4A.543.543,0,0,1,4.957,14.524Z" transform="translate(-0.398 -8.683)" fill="#1d3d7b"/></svg></div>' 9 ).insertBefore(jQuery(this).find("ul.sub-menu")); 10 } 11 }); 12 jQuery('.mobile-menu>button').on('click', function(){ 13 jQuery('.mobile-header').toggleClass('mobile-menu-show'); 14 jQuery('html').toggleClass('hide-overflow'); 15 jQuery(this).toggleClass('close-icon'); 16 17 }); 18 19 // Mobile Submenu 20 jQuery(".toggle-submenu").on('click', function() { 21 jQuery(this).parent("li").siblings().find(".toggle-submenu").removeClass("active"); 22 jQuery(this).toggleClass("active"); 23 jQuery(this).parents('li').siblings().find(" > .sub-menu").slideUp(); 24 jQuery(this).parents('li').find(" > .sub-menu").slideToggle(); 25 // jQuery(this).parents('li').find(" .sub-menu-wrap").slideToggle(); 26 }); 27 jQuery('.hero-slides').slick({ 28 slidesToShow: 1, 29 slidesToScroll: 1, 30 arrows: false, 31 fade: true, 32 autoplay: true, 33 autoplaySpeed: 3000, 34 }); 35 jQuery(".selectpicker").select2(); 36 jQuery("#field_e54yn").select2(); 37 // Demographic Page JS 38 39 40// jQuery('[data-toggle="tooltip"]').tooltip({ 41// toggle: 'click', 42// container: 'body' 43// }); 44jQuery('[data-toggle="tooltip"]').tooltip({ 45 trigger: 'hover', 46 container: 'body' 47}) 48//jQuery('[data-toggle="tooltip"]').tooltip('toggle'); 49//.click(function (e) { 50// jQuery('[data-toggle="tooltip"]').not(this).tooltip('hide'); 51// }); 52// jQuery('[data-toggle="tooltip"]').hover(function(){ 53// jQuery('.tooltip').css('top', parseInt(jQuery('.tooltip').css('top')) + 20 + 'px'); 54// }) 55// jQuery('[data-toggle="tooltip"]').on('shown.bs.tooltip', function(){ 56// jQuery('.tooltip').addClass('in').siblings().removeClass('in'); 57// }) 58 59 var headerheight = jQuery('.header-wrap').innerHeight(); 60 var winWid = jQuery(this).outerWidth(); 61 62 jQuery(".years-wrap ul li a[href^='#']").on('click', function (e) { 63 // var headerheight = headerwrap.height(); 64 e.preventDefault(); 65 // store hash 66 var hash = this.hash; 67 jQuery(".years-wrap ul li").removeClass("active"); 68 jQuery(this).parent("li").addClass("active"); 69 // animate 70 jQuery('html, body').animate({ 71 scrollTop: jQuery(hash).offset().top - headerheight - 50, 72 }, 1000, function () { });
73 }); 74 75 76 77 jQuery(window).on('scroll', function (event) { 78 event.preventDefault(); 79 /* Act on the event */ 80 var winTop = jQuery(this).scrollTop(); 81 var winWid = jQuery(this).outerWidth(); 82 jQuery('.content-scroll').each(function (index, el) { 83 var servTop = jQuery(this).offset().top - headerheight - 54; 84 var servBot = jQuery(this).outerHeight() + servTop; 85 // console.log(this); 86 if (winTop >= servTop && winTop <= servBot && winWid > 991) { 87 var servId = jQuery(this).attr('id'); 88 // console.log(servId); 89 jQuery('.years-wrap ul li a[href="#' + servId + '"]').parents('li').addClass('active'); 90 jQuery('.years-wrap ul li a[href="#' + servId + '"]').parents('li').siblings('li').removeClass('active'); 91 } 92 }); 93 }); 94 95 96 97});
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.