1$(document).ready(function() { 2 $('.main-posts-mb .mp-section').slick({ 3 slidesToShow: 1, 4 slidesToScroll: 1, 5 infinite: true, 6 autoplay: true, 7 autoplaySpeed: 5000 8 }); 9 $('.news-row-mb .mp-section .post').width($(window).width()-50); 10 setTimeout(function(){ 11 $('.news-row-mb .mp-section').slick({ 12 slidesToShow: 1, 13 centerMode: true, 14 variableWidth: true, 15 infinite: true 16 }); 17 }); 18 $('.slick-home').slick({ 19 dots: false, 20 autoplay: true, 21 autoplaySpeed: 5000, 22 speed: 400, 23 slidesToShow: 1, 24 slidesToScroll: 1, 25 appendArrows: ".slick-home-controls", 26 prevArrow: '<div class="home-slick-prev"><i class="fa fa-long-arrow-left"></i></div>', 27 nextArrow: '<div class="home-slick-next"><i class="fa fa-long-arrow-right"></i></div>', 28 responsive: [{ 29 breakpoint: 1024, 30 settings: { 31 slidesToShow: 1, // 3 32 slidesToScroll: 1, // 3 33 infinite: true, 34 dots: false // true 35 } 36 }, { 37 breakpoint: 600, 38 settings: { 39 slidesToShow: 2, 40 slidesToScroll: 2 41 } 42 }, { 43 breakpoint: 480, 44 settings: { 45 slidesToShow: 1, 46 slidesToScroll: 1 47 } 48 } 49 // You can unslick at a given breakpoint now by adding: 50 // settings: "unslick" 51 // instead of a settings object 52 ] 53 }); 54 $('.slick-home').on('beforeChange', function(event, slick, currentSlide, nextSlide){ 55 $('#main-row-current-news-index').text(nextSlide+1); 56 }); 57 58 $('.slick-match').slick({ 59 dots: true, 60 arrows: false, 61 dotsClass: 'matches-slick-dots', 62 focusOnSelect: true, 63 autoplay: true, 64 autoplaySpeed: 7000, 65 speed: 400, 66 slidesToShow: 1, 67 slidesToScroll: 1, 68 appendDots: ".slick-match-dots" 69 }); 70 71 $('.slick-team').slick({ 72 dots: false, 73 infinite: false, 74 speed: 600, 75 slidesToShow: 4, 76 slidesToScroll: 4,
77 appendArrows: ".slick-team-controls", 78 prevArrow: '<div class="slick-team-prev"><i class="fa fa-long-arrow-left"></i></div>', 79 nextArrow: '<div class="slick-team-next"><i class="fa fa-long-arrow-right"></i></div>', 80 responsive: [{ 81 breakpoint: 1024, 82 settings: { 83 slidesToShow: 3, 84 slidesToScroll: 3, 85 infinite: true, 86 dots: true 87 } 88 }, { 89 breakpoint: 600, 90 settings: { 91 slidesToShow: 2, 92 slidesToScroll: 2 93 } 94 }, { 95 breakpoint: 480, 96 settings: { 97 slidesToShow: 1, 98 slidesToScroll: 1 99 } 100 } 101 // You can unslick at a given breakpoint now by adding: 102 // settings: "unslick" 103 // instead of a settings object 104 ] 105 }); 106 107 $('.trending-line .tl-slider').slick({ 108 autoplay: true, 109 autoplaySpeed: 3000, 110 dots: false, 111 infinite: true, 112 speed: 500, 113 fade: true, 114 cssEase: 'linear' 115 }); 116 117 118 // Search 119 $('a[href="#search-block"]').click(function(ev){ 120 ev.preventDefault(); 121 $('.hd-search-block').fadeToggle(); 122 }); 123 $('a[href="#search-block-mobile"]').click(function(ev){ 124 ev.preventDefault(); 125 $('.hd-search-block-mobile').fadeToggle(); 126 }); 127 128 129 130 // Side Nav 131 var trigger = $('.hamburger'), 132 overlay = $('.side-nav-overlay'), 133 isClosed = false; 134 135 trigger.click(function () { 136 hamburger_cross(); 137 }); 138 139 overlay.click(function () { 140 overlay.hide(); 141 trigger.removeClass('is-open'); 142 trigger.addClass('is-closed'); 143 isClosed = false; 144 $('body').removeClass('toggled'); 145 }); 146 147 function hamburger_cross() { 148 if (isClosed == true) { 149 overlay.hide(); 150 trigger.removeClass('is-open'); 151 trigger.addClass('is-closed'); 152 isClosed = false; 153 } else { 154 overlay.show(); 155 trigger.removeClass('is-closed'); 156 trigger.addClass('is-open'); 157 isClosed = true; 158 } 159 } 160 161 $('[data-toggle="offcanvas"]').click(function () { 162 $('body').toggleClass('toggled'); 163 }); 164 165 166 $('body:not(.via-new-et) .post-body img').each(function(){ 167 var src = $(this).attr('src'); 168 var alt = $(this).attr('alt'); 169 var style = $(this).attr('style'); 170 var _class = $(this).attr('class'); 171 if (!$(this).hasClass('do-not-add-caption')) { 172 $(this).after($('<figure style___="float:left;">\ 173 <img src="'+src+'" class="'+_class+'" style="'+style+'">\ 174 <figcaption style="display: block; font-style: italic; font-size: 14px; padding-left: 5px;">'+alt+'</figcaption>\ 175 </figure>')); 176 $(this).remove(); 177 } 178 }); 179 180 // make every table responsive 181 $('table').wrap('<div class="table-responsive"></div>'); 182}); 183 184 185function intscrll(i, l){ 186 $(window).load(function(){ 187 var link = ''; 188 if (l) 189 link = 'onclick="location.href=\''+l+'\''; 190 var ps = $('.post-body').find('p').size(); 191 if (ps > 2) 192 var ps_pos = Math.floor(ps / 2); 193 $('.post-body').find('p').eq(ps_pos).before($("<div class='intscrll-title'>Advertistment</div><div class='intscrll-wrapper'><div class='intscrll-bg-wrapper'><img "+link+" class='intscrll-bg' src='"+i+"'></img></div></div>")); 194 }); 195} 196 197 198function fixInterstitialPosition() 199{ 200 try 201 { 202 var d = $('body div:last'); 203 var c = $(d).children().get(0); 204 if (c.nodeName == 'IFRAME' && typeof $(c).attr('src') == 'undefined') 205 { 206 d.css({position:'fixed', left:'0', top:'0'}); 207 $(c).contents().find(".celtra-close-button").css({'right':'15px', top:'15px'}).width(35).height(35); 208 } 209 } 210 catch(e) 211 {} 212} 213if (isMobile()) 214 var refreshInterstitialPosition = setInterval(fixInterstitialPosition, 100);
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.