1/** 2 * 2007-2023 PrestaShop 3 * 4 * NOTICE OF LICENSE 5 * 6 * This source file is subject to the Academic Free License (AFL 3.0) 7 * that is bundled with this package in the file LICENSE.txt. 8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 11 * obtain it through the world-wide-web, please send an email 12 * to [email protected] so we can send you a copy immediately. 13 * 14 * DISCLAIMER 15 * 16 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17 * versions in the future. If you wish to customize PrestaShop for your 18 * needs please refer to http://www.prestashop.com for more information. 19 * 20 * @author PrestaShop SA <[email protected]> 21 * @copyright 2007-2023 PrestaShop SA 22 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23 * International Registered Trademark & Property of PrestaShop SA 24 */ 25 26var mobileViewSize = 991; 27var blogHomePageSlider = 767; 28 29$(document).ready(function() { 30 31 // blogHomepageSliderShow(); 32 33 // function blogHomepageSliderShow() { 34 // if (blogHomePageSlider >= document.body.clientWidth) { 35 // $('.tvcmsblog-event-home .tvnews-wrapper-info-box').owlCarousel({ 36 // loop: false, 37 // dots: false, 38 // nav: false, 39 // responsive: { 40 // 0: { items: 1 }, 41 // 320: { items: 1, slideBy: 1 }, 42 // 400: { items: 1, slideBy: 1 }, 43 // 768: { items: 1, slideBy: 1 }, 44 // 992: { items: 1, slideBy: 1 }, 45 // 1200: { items: 1, slideBy: 1 }, 46 // 1600: { items: 1, slideBy: 1 }, 47 // 1800: { items: 1, slideBy: 1 } 48 // }, 49 // }); 50 // $('.tvcmsblog-event-home-slider-prev').click(function(e) { 51 // e.preventDefault(); 52 // $('.tvcmsblog-event-home .owl-nav .owl-prev').trigger('click'); 53 // }); 54 55 // $('.tvcmsblog-event-home-slider-next').click(function(e) { 56 // e.preventDefault(); 57 // $('.tvcmsblog-event-home .owl-nav .owl-next').trigger('click'); 58 // }); 59 // } 60 // } 61 62 leftRightSideSlider(); 63 64 function leftRightSideSlider() { 65 $('.tvcmsblog-left-side .tvnews-wrapper-info-box').owlCarousel({ 66 loop: false, 67 dots: false, 68 nav: false, 69 smartSpeed: tvMainSmartSpeed, 70 responsive: { 71 0: { items: 1 }, 72 320: { items: 1, slideBy: 1 }, 73 400: { items: 1, slideBy: 1 }, 74 768: { items: 2, slideBy: 1 }, 75 992: { items: 2, slideBy: 1 }, 76 1000: { items: 3, slideBy: 1 }, 77 1199: { items: 3, slideBy: 1 }, 78 1200: { items: 1, slideBy: 1 }, 79 1600: { items: 1, slideBy: 1 }, 80 1800: { items: 1, slideBy: 1 } 81 }, 82 }); 83 $('.tvblog-left-side-prev').click(function(e) { 84 e.preventDefault(); 85 $('.tvnews-wrapper-info-box .owl-nav .owl-prev').trigger('click'); 86 }); 87 88 $('.tvblog-left-side-next').click(function(e) { 89 e.preventDefault(); 90 $('.tvnews-wrapper-info-box .owl-nav .owl-next').trigger('click'); 91 }); 92 } 93 94 95 96 97 98 /*************** Start left Right Product Toggle in Mobile Size ***************************************************/ 99 // leftRightBlogTitleToggle(); 100 // $(window).resize(function(){ 101 // $('.tvcmsblog-left-side .tvleft-right-title-toggle, .tvleft-right-penal-all-block .tvblog-event-all-block').removeClass('open'); 102 // leftRightBlogTitleToggle(); 103 // }); 104 // function leftRightBlogTitleToggle() 105 // { 106 // $('.tvcmsblog-left-side .tvleft-right-title-toggle').on('click', function(e){
107 // e.preventDefault(); 108 // if(document.body.clientWidth <= mobileViewSize){ 109 // if($(this).hasClass('open')) { 110 // $(this).removeClass('open'); 111 // $(this).parent().parent().find('.tvblog-event-all-block').removeClass('open').stop(false).slideUp(500, "swing"); 112 // } else { 113 // $(this).addClass('open'); 114 // $(this).parent().parent().find('.tvblog-event-all-block').addClass('open').stop(false).slideDown(500, "swing"); 115 // } 116 // } 117 // e.stopPropagation(); 118 // }); 119 // } 120 /*************** End left Right Product Toggle in Mobile Size ***************************************************/ 121 122 123 124 $('.tvcmsblog-gallery-slider').each(function() { 125 var slider_id = $(this).attr('data-slider-id'); 126 var parent_class = '.tvcmsblog-gallery-slider.' + slider_id; 127 $(parent_class + ' .tvblog-wrapper-slider').owlCarousel({ 128 loop: false, 129 dots: false, 130 nav: false, 131 responsive: { 132 0: { items: 1 }, 133 320: { items: 1, slideBy: 1 }, 134 400: { items: 1, slideBy: 1 }, 135 768: { items: 1, slideBy: 1 }, 136 992: { items: 1, slideBy: 1 }, 137 1200: { items: 1, slideBy: 1 }, 138 1600: { items: 1, slideBy: 1 }, 139 1800: { items: 1, slideBy: 1 } 140 }, 141 }); 142 $(parent_class + ' .tvcmsblog-gallery-slider-prev').click(function(e) { 143 e.preventDefault(); 144 $(parent_class + ' .owl-nav .owl-prev').trigger('click'); 145 }); 146 147 $(parent_class + ' .tvcmsblog-gallery-slider-next').click(function(e) { 148 e.preventDefault(); 149 $(parent_class + ' .owl-nav .owl-next').trigger('click'); 150 }); 151 }); 152 153 154 155 $('.tvcmsblog-video-slider').each(function() { 156 var slider_id = $(this).attr('data-slider-id'); 157 var parent_class = '.tvcmsblog-video-slider.' + slider_id; 158 $(parent_class + ' .tvblog-wrapper-slider').owlCarousel({ 159 loop: false, 160 dots: false, 161 nav: false, 162 responsive: { 163 0: { items: 1 }, 164 320: { items: 1, slideBy: 1 }, 165 400: { items: 1, slideBy: 1 }, 166 768: { items: 1, slideBy: 1 }, 167 992: { items: 1, slideBy: 1 }, 168 1200: { items: 1, slideBy: 1 }, 169 1600: { items: 1, slideBy: 1 }, 170 1800: { items: 1, slideBy: 1 } 171 }, 172 }); 173 $(parent_class + ' .tvblog-video-slider-prev').click(function(e) { 174 e.preventDefault(); 175 $(parent_class + ' .owl-nav .owl-prev').trigger('click'); 176 }); 177 178 $(parent_class + ' .tvblog-video-slider-next').click(function(e) { 179 e.preventDefault(); 180 $(parent_class + ' .owl-nav .owl-next').trigger('click'); 181 }); 182 }); 183 184 $(window).resize(function() { 185 blogHomePage(); 186 }); 187 188 blogHomePage(); 189 190 function blogHomePage() { 191 if (mobileViewSize <= document.body.clientWidth) { 192 $('.tvnews-event-wrapper .tvblog-odd').each(function() { 193 $(this).find('.tvnews-event-content-wrapper').insertBefore($(this).find('.tvblog-img-block')); 194 }); 195 } else { 196 $('.tvnews-event-wrapper .tvblog-odd').each(function() { 197 $(this).find('.tvnews-event-content-wrapper').insertAfter($(this).find('.tvblog-img-block')); 198 }); 199 } 200 } 201});
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.