1jQuery(document).ready(function ($) { 2 "use strict"; 3 /**------------------------------------------------- 4 *Fixed Header 5 *----------------------------------------------------**/ 6 $(window).on('scroll', function () { 7 8 /**Fixed header**/ 9 if ($(window).scrollTop() > 250) { 10 $('.navbar-sticky').addClass('sticky fade_down_effect'); 11 } else { 12 $('.navbar-sticky').removeClass('sticky fade_down_effect'); 13 } 14 }); 15 16 17 /* ----------------------------------------------------------- */ 18 /* Mobile Menu 19 /* ----------------------------------------------------------- */ 20 $('.dropdown > a').on('click', function (e) { 21 e.preventDefault(); 22 if ($(window).width() > 991) { 23 location.href = this.href; 24 } 25 var dropdown = $(this).parent('.dropdown'); 26 dropdown.find('>.dropdown-menu').slideToggle('show'); 27 $(this).toggleClass('opened'); 28 return false; 29 }); 30 31 32 /* ----------------------------------------------------------- */ 33 /* tooltip 34 /* ----------------------------------------------------------- */ 35 $(document).ready(function () { 36 $('[data-toggle="tooltip"]').tooltip(); 37 }); 38 /* ----------------------------------------------------------- */ 39 /* Site search 40 /* ----------------------------------------------------------- */ 41 42 43 $('.nav-search').on('click', function () { 44 $('.search-block').fadeIn(350); 45 $('.nav-search').addClass('hide'); 46 }); 47 48 $('.search-close').on('click', function () { 49 $('.search-block').fadeOut(350); 50 $('.nav-search').removeClass('hide'); 51 }); 52 53 $(document).on('mouseup', function (e) { 54 var container = $(".nav-search-area"); 55 56 if (!container.is(e.target) && container.has(e.target).length === 0) { 57 $('.search-block').fadeOut(350); 58 $('.nav-search').removeClass('hide'); 59 } 60 61 }); 62 /* ----------------------------------------------------------- */ 63 /* Video popup 64 /* ----------------------------------------------------------- */ 65 66 if ($('.ts-play-btn').length > 0) { 67 $('.ts-play-btn').magnificPopup({ 68 type: 'iframe', 69 mainClass: 'mfp-with-zoom', 70 zoom: { 71 enabled: true, // By default it's false, so don't forget to enable it 72 73 duration: 300, // duration of the effect, in milliseconds 74 easing: 'ease-in-out', // CSS transition easing function 75 76 opener: function (openerElement) { 77 return openerElement.is('img') ? openerElement : openerElement.find('img'); 78 } 79 } 80 }); 81 } 82 83 if ($('.play-btn').length > 0) { 84 $('.play-btn').magnificPopup({ 85 type: 'iframe', 86 mainClass: 'mfp-with-zoom', 87 zoom: { 88 enabled: true, // By default it's false, so don't forget to enable it 89 90 duration: 300, // duration of the effect, in milliseconds 91 easing: 'ease-in-out', // CSS transition easing function 92 93 opener: function (openerElement) { 94 return openerElement.is('img') ? openerElement : openerElement.find('img'); 95 } 96 } 97 }); 98 } 99 /* ----------------------------------------------------------- */ 100 /* Back to top 101 /* ----------------------------------------------------------- */ 102 103 $(window).on('scroll', function () { 104 if ($(window).scrollTop() > $(window).height()) { 105 $(".BackTo").fadeIn('slow'); 106 } else { 107 $(".BackTo").fadeOut('slow'); 108 } 109 110 }); 111 $("body, html").on("click", ".BackTo", function (e) { 112 e.preventDefault(); 113 $('html, body').animate({ 114 scrollTop: 0 115 }, 800); 116 }); 117 118 119 /*---------------==================== 120 side menu 121 ================-------------------*/ 122 123 $(".fixed-sidebar-nav ul li.menu-item-has-children > a").on("click", function () { 124 125 126 var element = $(this).parent("li"); 127 if (element.hasClass("open")) { 128 element.removeClass("open"); 129 element.find("li").removeClass("open"); 130 element.find("ul").slideUp(500, "linear"); 131 } else { 132 element.addClass("open"); 133 element.children("ul").slideDown(); 134 element.siblings("li").children("ul").slideUp(); 135 element.siblings("li").removeClass("open"); 136 element.siblings("li").find("li").removeClass("open"); 137 element.siblings("li").find("ul").slideUp(); 138 } 139 140 141 });
142 143 144 $(".xs-sidenav").overlayScrollbars({ 145 className: "os-theme-light", 146 }); 147 148 149 150 $(".open-sidemenu").on("click", function () { 151 $(".open-sidemenu").toggleClass("open-menu"); 152 $(".xs-sidenav, .xs-content").toggleClass("xs-active"); 153 }); 154 155 /* 156 * Microsoft edge css support 157 * blend mode supoort 158 */ 159 if ($('.elementor-background-overlay').length > 0) { 160 let supportsMixBlendMode = window.getComputedStyle(document.body).mixBlendMode, 161 supportsBackgroundBlendMode = window.getComputedStyle(document.body).backgroundBlendMode; 162 163 if (supportsMixBlendMode === undefined || supportsBackgroundBlendMode === undefined) { 164 $('.elementor-background-overlay').addClass('blend-mode-unset').append('<div class="blend-mode-overlay"></div>'); 165 } 166 } 167 // Dynamic webfont loads 168 if (fontList) { 169 //eslint-disable-next-line 170 const observeFontList = fontList.map((fontName) => { 171 //eslint-disable-next-line 172 const observer = new FontFaceObserver(fontName); 173 return observer.load(); 174 }); 175 176 Promise.all(observeFontList).then(function () { 177 document.documentElement.className += ' fonts-loaded'; 178 }); 179 } else { 180 const body_font = new FontFaceObserver('Rubik'); 181 const heading_font_one = new FontFaceObserver('Merriweather'); 182 const heading_font_two = new FontFaceObserver('Poppins'); 183 const heading_font_three = new FontFaceObserver('Poppins'); 184 Promise.all([ 185 body_font.load(), 186 heading_font_one.load(), 187 heading_font_two.load(), 188 heading_font_three.load(), 189 ]).then(function () { 190 document.documentElement.className += ' fonts-loaded'; 191 }); 192 } 193 //Background image lazy load 194 const loadScripts_PreloadTimer = setTimeout(triggerScriptLoader_Preload, 8e3), 195 userInteractionEvents_Preload = [ 196 "mouseover", 197 "keydown", 198 "touchstart", 199 "touchmove", 200 "wheel", 201 ]; 202 function triggerScriptLoader_Preload() { 203 document.querySelector("html").classList.add("is-active-page"), 204 clearTimeout(loadScripts_PreloadTimer); 205 } 206 userInteractionEvents_Preload.forEach(function (e) { 207 window.addEventListener(e, triggerScriptLoader_Preload, { 208 passive: !0, 209 }); 210 }); 211 212}); 213 214jQuery(window).on('load', function () { 215 setTimeout(() => { 216 jQuery('.blo-preloder').slideUp(1000); 217 }, 1000); 218})
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.