1(function($) { 2 "use strict"; 3function homemain() { 4 var Homemain = new Swiper('.homemain', { 5 direction: 'horizontal', 6 loop: true, 7 autoplay: true, 8 slidesPerView: 1, 9 // Navigation arrows 10 navigation: { 11 nextEl: '.swiper-button-next', 12 prevEl: '.swiper-button-prev' 13 } 14 }); 15} 16homemain(); 17// featured post 18function editorchoice() { 19 var Editorchoice = new Swiper('.editorchoice', { 20 direction: 'horizontal', 21 loop: false, 22 autoplay: true, 23 slidesPerView: 1, 24 pagination: { 25 el: '.swiper-pagination', 26 }, 27 // Navigation arrows 28 navigation: { 29 nextEl: '.swiper-button-next', 30 prevEl: '.swiper-button-prev' 31 }, 32 breakpoints: { 33 640: { 34 slidesPerView: 2, 35 spaceBetween: 20, 36 }, 37 768: { 38 slidesPerView: 4, 39 spaceBetween: 30, 40 }, 41 1024: { 42 slidesPerView: 4, 43 spaceBetween: 30, 44 }, 45 } 46 }); 47} 48editorchoice(); 49// featured post 50// featured post 51function postcrousel() { 52 var postcrousel = new Swiper('.postcrousel', { 53 direction: 'horizontal', 54 loop: true, 55 autoplay: true, 56 slidesPerView: 1, 57 // Navigation arrows 58 navigation: { 59 nextEl: '.swiper-button-next', 60 prevEl: '.swiper-button-prev' 61 } 62 }); 63} 64postcrousel(); 65// featuredcat crowsel 66// featuredcat crowsel 67function featuredcat() { 68 var featuredcat = new Swiper('.featuredcat', { 69 direction: 'horizontal', 70 loop: false, 71 autoplay: true, 72 slidesPerView: 1, 73 // Navigation arrows 74 navigation: { 75 nextEl: '.swiper-button-next', 76 prevEl: '.swiper-button-prev' 77 }, 78 breakpoints: { 79 640: { 80 slidesPerView: 2, 81 spaceBetween: 20, 82 }, 83 768: { 84 slidesPerView: 4, 85 spaceBetween: 30, 86 }, 87 1024: { 88 slidesPerView: 3, 89 spaceBetween: 30, 90 }, 91 } 92 }); 93} 94featuredcat(); 95// featuredcat crowsel 96// colmnthree crousel 97function colmnthree() { 98 var colmnthree = new Swiper('.colmnthree', { 99 direction: 'horizontal', 100 loop: false, 101 autoplay: true, 102 slidesPerView: 1, 103 // Navigation arrows 104 navigation: { 105 nextEl: '.swiper-button-next', 106 prevEl: '.swiper-button-prev' 107 }, 108 breakpoints: { 109 640: { 110 slidesPerView: 2, 111 spaceBetween: 20, 112 }, 113 768: { 114 slidesPerView: 4, 115 spaceBetween: 30, 116 }, 117 1024: { 118 slidesPerView: 3, 119 spaceBetween: 30, 120 }, 121 } 122 }); 123} 124colmnthree(); 125 126function marquee() { 127 jQuery('.marquee').marquee({ 128 speed: 50, 129 direction: 'left', 130 delayBeforeStart: 0, 131 duplicated: true, 132 pauseOnHover: true, 133 startVisible: true 134 }); 135} 136marquee(); 137 138/* ================================= 139=== SCROLL TOP ==== 140=================================== */ 141jQuery(".ta_upscr").hide(); 142function taupr() { 143 jQuery(window).on('scroll', function() { 144 if ($(this).scrollTop() > 500) { 145 $('.ta_upscr').fadeIn(); 146 } else { 147 $('.ta_upscr').fadeOut(); 148 } 149 }); 150 $('a.ta_upscr').on('click', function() { 151 $('body,html').animate({ 152 scrollTop: 0 153 }, 800); 154 return false; 155 }); 156} 157taupr(); 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.