1(function($){ 2 "use strict"; 3 jQuery(document).on("ready", function(){ 4 // SCROLL TO TOP 5 jQuery(window).on("scroll", function(){ 6 if (jQuery(this).scrollTop()>100){ 7 jQuery(".scrollup").addClass("active"); 8 }else{ 9 jQuery(".scrollup").removeClass("active"); 10 } 11 }); 12 jQuery(".scrollup").on("click", function(){ 13 jQuery("html, body").animate({scrollTop:0},600); 14 return false; 15 }); 16 // FLYOUT SEARCH BAR 17 jQuery(".header-flyout-searchbar i, .header-flyout-searchbar span[class*='ti-']").on("click", function(){ 18 jQuery("body").toggleClass("flyout-searchbar-active"); 19 }); 20 jQuery(".flyout-search-close").on("click", function(){ 21 jQuery("body").removeClass("flyout-searchbar-active"); 22 }); 23 // SIDEBAR SEARCH BUTTON CHANGE 24 // BLOG COMMENT BUTTON CHANGE 25 jQuery(".comments-area .comment-form > p input[type='submit']").each(function(){ 26 jQuery(this).replaceWith("<button type='submit'><span>" + jQuery(this).attr("value") + "</span></button>"); 27 }); 28 jQuery(".comments-area .comment-form > p input[type='reset']").each(function(){ 29 jQuery(this).replaceWith("<button type='reset'><span>" + jQuery(this).attr("value") + "</span></button>"); 30 }); 31 // TOOLTIP 32 jQuery("[data-toggle='tooltip']").tooltip(); 33 // HEADER RESPONSIVE NAV / MOBILE MENU 34 jQuery(".header-responsive-nav").each(function(){ 35 jQuery(this).sidr({ 36 side: 'right', 37 speed: 600, 38 displace: false, 39 renaming: false, 40 source: '.mobile-menu', 41 name: 'mobile-menu', 42 onOpen: function(){ 43 jQuery("body").addClass("mobile-menu-open"); 44 }, 45 onClose: function(){ 46 jQuery("body").removeClass("mobile-menu-open"); 47 }, 48 }); 49 jQuery(".mobile-menu-close, .overlay").on("click", function(){ 50 jQuery.sidr('close', 'mobile-menu'); 51 }); 52 }); 53 // HAMBURGER SIDR 54 jQuery(".header-hamburger-menu").each(function(){ 55 jQuery(this).sidr({ 56 side: 'right', 57 speed: 400, 58 displace: false, 59 renaming: false, 60 source: '.hamburger-menu-holder', 61 name: 'hamburger-menu', 62 onOpen: function(){ 63 jQuery("body").addClass("hamburger-menu-open"); 64 }, 65 onClose: function(){ 66 jQuery("body").removeClass("hamburger-menu-open"); 67 }, 68 }); 69 jQuery(".hamburger-menu-close-lines").on("click", function(){ 70 jQuery.sidr('close', 'hamburger-menu'); 71 }); 72 }); 73 // SIDEBAR MENU 74 jQuery("body[data-header-style='header-style-three']").each(function(){ 75 jQuery(this).find(".vc_section, .vc_row").removeAttr("style data-vc-full-width data-vc-full-width-init data-vc-stretch-content"); 76 }); 77 jQuery(".responsive-sidemenu-open").each(function(){ 78 jQuery(this).sidr({ 79 side: 'left', 80 speed: 600, 81 displace: false, 82 renaming: false, 83 source: '.sidemenu-holder', 84 name: 'sidemenu', 85 onOpen: function(){ 86 jQuery("body").addClass("sidemenu-open"); 87 }, 88 onClose: function(){ 89 jQuery("body").removeClass("sidemenu-open"); 90 }, 91 }); 92 jQuery(".responsive-sidemenu-close").on("click", function(){ 93 jQuery.sidr('close', 'sidemenu'); 94 }); 95 }); 96 jQuery("body[data-header-style='header-style-three'] .nav li").on("click", function(){ 97 jQuery(this).children("ul").slideToggle(500); 98 }); 99 // SIDEMENU SIDR 100 jQuery(".header-sidebar-menu-open, .mobile-sidebar-menu-open").each(function(){ 101 jQuery(this).sidr({ 102 side: 'left', 103 speed: 300, 104 displace: false, 105 renaming: false, 106 source: '.sidemenu-holder', 107 name: 'sidemenu', 108 onOpen: function(){ 109 jQuery("body").addClass("sidemenu-open"); 110 }, 111 onClose: function(){ 112 jQuery("body").removeClass("sidemenu-open"); 113 }, 114 }); 115 jQuery(".sidemenu-close").on("click", function(){ 116 jQuery.sidr('close', 'sidemenu'); 117 }); 118 }); 119 jQuery("body[data-header-style='header-style-four'] .nav li").on("click", function(){ 120 jQuery(this).children("ul").slideToggle(500); 121 }); 122 // FLYOUT MENU BAR 123 jQuery(".header-flyout-menu").on("click", function(){ 124 jQuery("body").addClass("flyout-menu-active"); 125 }); 126 jQuery(".flyout-menu-close").on("click", function(){ 127 jQuery("body").removeClass("flyout-menu-active"); 128 }); 129 jQuery("body[data-header-style='header-style-five'] .flyout-menu-nav li").on("click", function(){ 130 jQuery(this).children("ul").slideToggle(500); 131 }); 132 // SLIDEOUT MENU BAR 133 jQuery(".header-slideout-menu").on("click", function(){
134 jQuery("body").addClass("slideout-menu-active"); 135 }); 136 jQuery(".slideout-menu-close").on("click", function(){ 137 jQuery("body").removeClass("slideout-menu-active"); 138 }); 139 jQuery("body[data-header-style='header-style-fourteen'] .slideout-menu-nav li").on("click", function(){ 140 jQuery(this).children("ul").slideToggle(500); 141 }); 142 // FLEXI MENU BAR 143 jQuery(".header-flexi-menu").on("click", function(){ 144 jQuery("body").addClass("flexi-menu-active"); 145 }); 146 jQuery(".flexi-menu-close").on("click", function(){ 147 jQuery("body").removeClass("flexi-menu-active"); 148 }); 149 jQuery("body[data-header-style='header-style-seven'] .flexi-menu-nav li").on("click", function(){ 150 jQuery(this).children("ul").slideToggle(500); 151 }); 152 // RADIANTTHEMES MEGA MENU 153 jQuery(".sidr .menu-item-has-children").each(function(){ 154 jQuery(this).children("ul, .rt-mega-menu").css({ 155 "display": "none", 156 }); 157 jQuery(this).append("<span class='radiantthemes-open-submenu'></span>"); 158 jQuery(this).find(".radiantthemes-open-submenu").on("click", function(){ 159 jQuery(this).parent(".menu-item-has-children").toggleClass("radiantthemes-menu-open"); 160 jQuery(this).parent(".menu-item-has-children").children("ul, .rt-mega-menu").slideToggle(700); 161 }); 162 }); 163 // PAGE TRANSITION 164 jQuery("body[data-page-transition='1'] a:not(.fancybox):not(.video-link):not([data-fancybox])").each(function(){ 165 jQuery(this).on("click", function(event){ 166 let PageLink = jQuery(this).attr("href"); 167 if ( "#" == PageLink ) { 168 } else if ( PageLink.startsWith("#") ) { 169 } else { 170 event.preventDefault(); 171 jQuery("body").addClass("page-transition-active"); 172 setTimeout(function(){ 173 window.location.href = PageLink ; 174 }, 700); 175 } 176 }); 177 }); 178 // PRODUCT QUANTITY 179 jQuery(".shop_single .quantity input[type=number]").each(function(){ 180 jQuery(this).addClass("form-control"); 181 jQuery(this).parent().addClass("input-group"); 182 jQuery(this).before("<div class='input-group-addon quantity-decrease'>-</div>"); 183 jQuery(this).after("<div class='input-group-addon quantity-increase'>+</div>"); 184 jQuery(this).parent().find(".quantity-decrease").on("click", function(){ 185 if ( jQuery(this).parent().find("input[type=number]").val() == jQuery(this).parent().find("input[type=number]").attr("min") ) { 186 alert("Sorry! You're already on lowest value."); 187 } else { 188 jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() - 1 ); 189 } 190 }); 191 jQuery(this).parent().find(".quantity-increase").on("click", function(){ 192 jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() + 1 ); 193 }); 194 }); 195 // MATCHHEIGHT 196 jQuery(".matchHeight").matchHeight(); 197 // ONEPAGENAV 198 jQuery("ul.menu.single-page-mode").onePageNav({ 199 currentClass: "current-menu-item", 200 changeHash: true, 201 scrollSpeed: 1000, 202 easing: "swing", 203 }); 204 // WOW 205 var wow = new WOW({ 206 boxClass: 'wow', 207 animateClass: 'animated', 208 mobile: true, 209 live: true, 210 scrollContainer: null, 211 }); 212 wow.init(); 213 // NICESCROLL 214 if( jQuery(window).width() > 767 ){ 215 jQuery(".infinity-scroll").niceScroll({ 216 cursorcolor: jQuery("body").data("nicescroll-cursorcolor"), 217 cursorwidth: jQuery("body").data("nicescroll-cursorwidth"), 218 cursorborder: "none", 219 cursorborderradius: "0", 220 }); 221 } 222 // STICKY 223 jQuery(".radiantthemes-sticky-style-one").sticky(); 224 jQuery(window).on("scroll", function(){ 225 jQuery(".radiantthemes-sticky-style-two").each(function(){ 226 if ( jQuery(window).scrollTop() > ( jQuery(this).innerHeight() + 75 ) ) { 227 jQuery(this).addClass("delayed-sticky-mode"); 228 } else { 229 jQuery(this).removeClass("delayed-sticky-mode"); 230 } 231 if ( jQuery(window).scrollTop() > ( jQuery(this).innerHeight() + 150 ) ) { 232 jQuery(this).addClass("delayed-sticky-mode-acivate"); 233 jQuery(".wraper_header").css({ 234 "padding-bottom" : jQuery(this).innerHeight() + "px", 235 }); 236 } else { 237 jQuery(this).removeClass("delayed-sticky-mode-acivate"); 238 jQuery(".wraper_header").css({ 239 "padding-bottom" : "0", 240 }); 241 } 242 if ( jQuery(window).scrollTop() > jQuery(this).data("delay") ) { 243 jQuery(this).addClass("i-am-delayed-sticky"); 244 } else { 245 jQuery(this).removeClass("i-am-delayed-sticky"); 246 } 247 }); 248 }); 249 // RATINA 250 jQuery("img").attr("data-no-retina", ""); 251 jQuery(".radiantthemes-retina img").removeAttr("data-no-retina"); 252 // FANCYBOX 253 jQuery(".fancybox").fancybox({ 254 animationEffect: "zoom-in-out", 255 animationDuration: 500, 256 zoomOpacity: "auto", 257 }); 258 }); 259 jQuery(window).on("load", function(){ 260 // PROLOADER 261 setTimeout(function(){ 262 jQuery(".preloader").addClass("loaded"); 263 }, jQuery(".preloader").data("preloader-timeout") ); 264 // PAGE TRANSITION 265 setTimeout(function(){ 266 jQuery(".page-transition-layer").removeClass("i-am-active"); 267 }, 700); 268 // MATCHHEIGHT 269 setTimeout(function(){ 270 jQuery(".matchHeight").matchHeight(); 271 }, 2000); 272 // ISOTOPE 273 setTimeout(function(){ 274 jQuery(".isotope-blog-style").isotope({ 275 itemSelector: '.isotope-blog-style-item', 276 layoutMode: 'masonry', 277 }); 278 }, 100); 279 // STUCKING FOOTER 280 if ( jQuery(window).width() > 768 ) { 281 jQuery(document).ready( StuckingFooter ); 282 jQuery(window).resize( StuckingFooter ); 283 function StuckingFooter(){ 284 jQuery(".footer-custom-stucking-container").css({ 285 "height" : jQuery(".footer-custom-stucking-mode").innerHeight() , 286 }); 287 }; 288 } 289 290 if (jQuery.fn.owlCarousel) { 291 //LANDING BLOG CAROUSEL 292 jQuery(".blog-carousel").owlCarousel({ 293 stagePadding: 250, 294 items: 1, 295 loop: true, 296 autoplay: true, 297 autoplayTimeout: 6000, 298 lazyLoad: true, 299 margin: 20, 300 dots: false, 301 animateOut: 'fadeInRight', 302 animateIn: 'fadeInRight', 303 responsive: { 304 0: { 305 items: 1, 306 stagePadding: 0 307 }, 308 600: { 309 items: 3, 310 }, 311 1000: { 312 items: 2, 313 } 314 } 315 }); 316 } 317 318 319 // RADIANTTHEMES COUNTER 320 setTimeout(function(){ 321 jQuery(".radiantthemes-counterup").each(function(){
322 jQuery(this).text( jQuery(this).data("counterup-value") ); 323 }); 324 }, 1); 325 326 327 }); 328})(jQuery);
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.