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