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 26/****************** Start Testimonial list Slider Js *******************************************/ 27jQuery(document).ready(function($){ 28 $('.tvcmstestimonial .tvtestimonial-content-box').owlCarousel({ 29 loop: true, 30 dots: true, 31 nav: false, 32 smartSpeed: tvMainSmartSpeed, 33 autoplay:true, 34 autoplayTimeout:5000, 35 autoplayHoverPause:false, 36 responsive: { 37 0: { items: 1}, 38 320:{ items: 1, slideBy: 1}, 39 400:{ items: 1, slideBy: 1}, 40 768:{ items: 1, slideBy: 1}, 41 992:{ items: 1, slideBy: 1}, 42 1200:{ items: 1, slideBy: 1}, 43 1600:{ items: 1, slideBy: 1}, 44 1800:{ items: 1, slideBy: 1} 45 }, 46 }); 47 $('.tvcmstestimonial .tvtestimonial-prev').on('click',function(){ 48 $('.tvcmstestimonial .owl-nav .owl-prev').trigger('click'); 49 }); 50 51 $('.tvcmstestimonial .tvtestimonial-next').on('click',function(){ 52 $('.tvcmstestimonial .owl-nav .owl-next').trigger('click'); 53 }); 54 $('.tvcmstestimonial .tvcms-testimonial-pagination-wrapper').insertAfter('.tvcmstestimonial .tvtestimonial-slider-inner'); 55 /***************** End Home page Slider *************************************************/ 56 function sidePanelTestimonialSlider(){ 57 $('.tvcms-left-testimonial .tvtestimonial-content-box').owlCarousel({ 58 loop: false, 59 dots: false, 60 nav: false, 61 smartSpeed: tvMainSmartSpeed, 62 responsive: { 63 0: { items: 1}, 64 320:{ items: 1, slideBy: 1}, 65 400:{ items: 1, slideBy: 1}, 66 768:{ items: 1, slideBy: 1}, 67 992:{ items: 1, slideBy: 1}, 68 1200:{ items: 1, slideBy: 1}, 69 1600:{ items: 1, slideBy: 1}, 70 1800:{ items: 1, slideBy: 1} 71 }, 72 }); 73 $('.tvcms-left-testimonial .tvtestimonial-prev').on('click',function(){ 74 $('.tvcms-left-testimonial .owl-nav .owl-prev').trigger('click'); 75 }); 76 77 $('.tvcms-left-testimonial .tvtestimonial-next').on('click',function(){ 78 $('.tvcms-left-testimonial .owl-nav .owl-next').trigger('click'); 79 }); 80 } 81 sidePanelTestimonialSlider(); 82 // leftRightTestimonialTitleToggle(); 83 $(window).resize(function(){ 84 sidePanelTestimonialSlider(); 85 // leftRightTestimonialTitleToggle(); 86 }); 87 // function leftRightTestimonialTitleToggle() 88 // { 89 // $('.tvcms-left-testimonial .tvleft-right-title-toggle').on('click',function(e){ 90 // e.preventDefault(); 91 // if(document.body.clientWidth <= 1199){ 92 // if($(this).hasClass('open')) { 93 // $(this).removeClass('open'); 94 // $(this).parent().parent().find('.tvtestimonial-slider-button-wrapper').removeClass('open').stop(false).slideUp(500, "swing"); 95 // } else { 96 // $(this).addClass('open'); 97 // $(this).parent().parent().find('.tvtestimonial-slider-button-wrapper').addClass('open').stop(false).slideDown(500, "swing"); 98 // } 99 // } 100 // e.stopPropagation(); 101 // }); 102 // } 103});
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.