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 // FLOATING SEARCH BAR 17 jQuery(".floating-searchbar i").on("click", function(){ 18 jQuery("body").toggleClass("floating-searchbar-active"); 19 }); 20 // FLYOUT SEARCH BAR 21 jQuery(".flyout-searchbar-toggle i").on("click", function(){ 22 jQuery("body").toggleClass("flyout-searchbar-active"); 23 }); 24 jQuery(".flyout-search-close").on("click", function(){ 25 jQuery("body").removeClass("flyout-searchbar-active"); 26 }); 27 // HEADER STYLE SEVEN TOP BAR MENU 28 jQuery(".top-bar-toggle").on("click", function(){ 29 jQuery("body").toggleClass("top-bar-menu-open"); 30 }); 31 // HEADER STYLE NINE FUL WIDTH MENU 32 jQuery(".nav-icon").on("click", function(){ 33 jQuery("body").toggleClass("full-open"); 34 }); 35 jQuery(".wraper_fullwidth_menu .full-inner nav ul li.menu-item-has-children").each(function(){ 36 jQuery(this).children("a").on("click", function(DisableClick){ 37 DisableClick.preventDefault(); 38 jQuery(this).parent().children("ul").slideToggle(500); 39 }); 40 }); 41 // SIDEBAR SEARCH BUTTON CHANGE 42 jQuery(".search-form, .woocommerce-product-search").each(function(){ 43 jQuery(this).find("input[type=submit]").replaceWith("<button type='submit'><i class='fa fa-search'></i></button>"); 44 }); 45 // BLOG COMMENT BUTTON CHANGE 46 jQuery(".comments-area .comment-form > p input[type='submit']").each(function(){ 47 jQuery(this).replaceWith("<button type='submit'><span>Post Comment</span></button>"); 48 }); 49 jQuery(".comments-area .comment-form > p input[type='reset']").each(function(){ 50 jQuery(this).replaceWith("<button type='reset'><span>Reset Comment</span></button>"); 51 }); 52 // TOOLTIP 53 jQuery("[data-toggle='tooltip']").tooltip(); 54 // MOBILE MENU 55 jQuery(".responsive-nav").each(function(){ 56 jQuery(this).sidr({ 57 side: 'right', 58 speed: 600, 59 displace: false, 60 renaming: false, 61 source: '.mobile-menu', 62 name: 'mobile-menu', 63 onOpen: function(){ 64 jQuery("body").addClass("mobile-menu-open"); 65 }, 66 onClose: function(){ 67 jQuery("body").removeClass("mobile-menu-open"); 68 }, 69 }); 70 jQuery(".mobile-menu-close").on("click", function(){ 71 jQuery.sidr('close', 'mobile-menu'); 72 }); 73 }); 74 // HAMBURGER SIDR 75 jQuery(".header-hamburger").each(function(){ 76 jQuery(this).sidr({ 77 side: 'right', 78 speed: 600, 79 displace: false, 80 renaming: false, 81 source: '.hamburger-menu-holder', 82 name: 'hamburger-menu', 83 onOpen: function(){ 84 jQuery("body").addClass("hamburger-menu-open"); 85 }, 86 onClose: function(){ 87 jQuery("body").removeClass("hamburger-menu-open"); 88 }, 89 }); 90 jQuery(".hamburger-menu-close").on("click", function(){ 91 jQuery.sidr('close', 'hamburger-menu'); 92 }); 93 }); 94 // RADIANTTHEMES MEGA MENU 95 jQuery(".sidr .menu-item-has-children").each(function(){ 96 jQuery(this).children("ul, .rt-mega-menu").css({ 97 "display": "none", 98 }); 99 jQuery(this).append("<span class='radiantthemes-open-submenu'></span>"); 100 jQuery(this).find(".radiantthemes-open-submenu").on("click", function(){ 101 jQuery(this).parent(".menu-item-has-children").toggleClass("radiantthemes-menu-open"); 102 jQuery(this).parent(".menu-item-has-children").children("ul, .rt-mega-menu").slideToggle(700); 103 }); 104 }); 105 // PRODUCT QUANTITY 106 jQuery(".shop_single .quantity input[type=number]").each(function(){ 107 jQuery(this).addClass("form-control"); 108 jQuery(this).parent().addClass("input-group"); 109 jQuery(this).before("<div class='input-group-addon quantity-decrease'>-</div>"); 110 jQuery(this).after("<div class='input-group-addon quantity-increase'>+</div>"); 111 jQuery(this).parent().find(".quantity-decrease").on("click", function(){ 112 if ( jQuery(this).parent().find("input[type=number]").val() == jQuery(this).parent().find("input[type=number]").attr("min") ) { 113 alert("Sorry! You're already on lowest value."); 114 } else { 115 jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() - 1 ); 116 } 117 }); 118 jQuery(this).parent().find(".quantity-increase").on("click", function(){ 119 jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() + 1 ); 120 }); 121 }); 122 // MATCHHEIGHT 123 jQuery(".matchHeight").matchHeight(); 124 // WOW 125 var wow = new WOW({ 126 boxClass: 'wow', 127 animateClass: 'animated', 128 mobile: true, 129 live: true, 130 scrollContainer: null, 131 }); 132 wow.init(); 133 // NICESCROLL 134 if( jQuery(window).width() > 767 ){ 135 jQuery(".infinity-scroll").niceScroll({ 136 cursorcolor: jQuery("body").data("nicescroll-cursorcolor"), 137 cursorwidth: jQuery("body").data("nicescroll-cursorwidth"), 138 cursorborder: "none",
139 cursorborderradius: "0", 140 }); 141 } 142 // STICKY 143 jQuery(".i-am-sticky").sticky(); 144 // RATINA 145 jQuery("img").attr("data-no-retina", ""); 146 jQuery(".radiantthemes-retina img").removeAttr("data-no-retina"); 147 }); 148 jQuery(window).on("load", function(){ 149 // PROLOADER 150 setTimeout(function(){ 151 jQuery(".preloader").addClass("loaded"); 152 }, jQuery(".preloader").data("preloader-timeout") ); 153 setTimeout(function(){ 154 // MATCHHEIGHT 155 jQuery(".matchHeight").matchHeight(); 156 }, 2000); 157 }); 158})(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.