1(function ($) { 2 "use strict"; 3 4 /*==== Document Ready Function =====*/ 5 jQuery(document).ready(function($){ 6 7 //Grid Post Masonry 8 $('.layout-grid .all-posts-wrapper,.layout-grid-ls .all-posts-wrapper,.layout-grid-rs .all-posts-wrapper').imagesLoaded( function() { 9 $('.layout-grid .all-posts-wrapper,.layout-grid-ls .all-posts-wrapper,.layout-grid-rs .all-posts-wrapper').masonry({ 10 itemSelector: '.single-post-item', 11 percentPosition: true, 12 }); 13 }); 14 15 16 // Gallery Post Slider 17 $('.post-gallery-slider').slick({ 18 slidesToShow: 1, 19 autoplay: true, 20 autoplaySpeed: 5000, 21 speed: 1500, 22 dots: false, 23 arrows: true, 24 prevArrow: '<i class="slick-arrow slick-prev fas fa-arrow-left"></i>', 25 nextArrow: '<i class="slick-arrow slick-next fas fa-arrow-right"></i>', 26 }); 27 28 29 // Scroll Top 30 $(window).on("scroll",function(){ 31 var pagescroll = $(window).scrollTop(); 32 if(pagescroll > 100){ 33 $(".scroll-to-top").addClass("scroll-to-top-visible"); 34 35 }else{ 36 $(".scroll-to-top").removeClass("scroll-to-top-visible"); 37 } 38 }); 39 40 $(".scroll-to-top").click(function() { 41 $("html, body").animate({ scrollTop: 0 }, "slow"); 42 return false; 43 }); 44 45 46 // Popup Video 47 $(".td_video_button").magnificPopup({ 48 type: 'video' 49 }); 50 51 // Popup Image 52 $(".post-details-wrapper article figure img").parent().closest('a').addClass("td-popup-image"); 53 $('.td-popup-image').magnificPopup({ 54 type: 'image', 55 gallery: { 56 enabled: true 57 } 58 }); 59 60 // Counter Up 61 $(".td-count-number").counterUp({ 62 delay: 10, 63 time: 2000 64 }); 65 66 //Mobile Menu 67 $("#main-menu").slicknav({ 68 allowParentLinks: true, 69 prependTo: '#mobile-menu-wrap', 70 label: 'Menu', 71 }); 72 73 74 $(".mobile-menu-trigger").on("click", function(e) { 75 $(".mobile-menu-container").addClass("menu-open"); 76 e.stopPropagation(); 77 }); 78 79 $(".mobile-menu-close").on("click", function(e) { 80 $(".mobile-menu-container").removeClass("menu-open"); 81 e.stopPropagation(); 82 }); 83 84 85 86 /* WooCommerce Shop view */ 87 $('#td-shop-view-mode li').on('click',function(){ 88 $('body').removeClass('td-product-grid-view').removeClass('td-product-list-view'); 89 90 if ( $(this).hasClass('td-shop-list')) { 91 $('body').addClass('td-product-list-view'); 92 Cookies.set('td-shop-view', 'list'); 93 } 94 else{ 95 $('body').addClass('td-product-grid-view'); 96 Cookies.remove('td-shop-view'); 97 } 98 return false; 99 }); 100 101 if ($("body").hasClass("rtl")) { 102 var rtl = true; 103 }else{ 104 var rtl = false; 105 } 106 $(".related.products .products, .upsells.products .products").slick({ 107 slidesToShow: relater_product_data.slide_column, 108 autoplay: false, 109 autoplaySpeed: "5000", //interval 110 speed: 1500, // slide speed 111 dots: false, 112 arrows: true, 113 prevArrow: '<i class="slick-arrow slick-prev fa fa-angle-left"></i>', 114 nextArrow: '<i class="slick-arrow slick-next fa fa-angle-right"></i>', 115 infinite: true, 116 pauseOnHover: false, 117 centerMode: false, 118 rtl:rtl, 119 responsive: [ 120 { 121 breakpoint: 992, 122 settings: { 123 slidesToShow: 2, //768-991 124 } 125 }, 126 { 127 breakpoint: 768, 128 settings: { 129 slidesToShow: 1, // 0 -767 130 } 131 } 132 ] 133 }); 134 135 $('.td-product-thumb-image img').removeAttr('sizes'); 136 137 $(".skillbar").each(function() { 138 $(this).appear(function() { 139 $(this).find(".count-bar").animate({ 140 width:$(this).attr("data-percent") 141 },3000); 142 }); 143 }); 144 145 $(".skill-percent-count").counterUp({ 146 delay: 10, 147 time: 3000 148 }); 149 }); 150 151 /*==== Window Load Function =====*/ 152 jQuery(window).on('load', function() { 153 //Preloader 154 $('.preloader-wrapper').delay(1000).fadeOut('slow'); 155 setTimeout(function() { 156 $('.site').addClass('loaded'); 157 }, 500); 158 159 }); 160 161 // Post Print 162 $(document).on('click', '.print-button', function(e){ 163 console.log(); 164 e.preventDefault(); 165 window.print(); 166 return false;
167 }); 168 169 170 171 172}(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.