1/** 2 * Copyright since 2007 PrestaShop SA and Contributors 3 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 4 * 5 * NOTICE OF LICENSE 6 * 7 * This source file is subject to the Academic Free License version 3.0 8 * that is bundled with this package in the file LICENSE.md. 9 * It is also available through the world-wide-web at this URL: 10 * https://opensource.org/licenses/AFL-3.0 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to [email protected] so we can send you a copy immediately. 14 * 15 * @author PrestaShop SA and Contributors <[email protected]> 16 * @copyright Since 2007 PrestaShop SA and Contributors 17 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 18 */ 19 20$(document).ready(function () { 21 $('.slick-carousel-bonpromotopbanner').slick({ 22 infinite: true, 23 autoplaySpeed: BON_PROMO_TOPBANNER_TIME, 24 draggable: false, 25 dots: false, 26 arrows: false, 27 autoplay: true, 28 slidesToShow: 1, 29 slidesToScroll: 1, 30 vertical: true 31 }); 32 33 $('[data-bonpromotopcountdown]').each(function () { 34 var date = Date.parse($(this).data('bonpromotopcountdown')); 35 $(this).topcountdown({ 36 timestamp: date 37 }); 38 }); 39 40 BonpromotopbannerClose(); 41}); 42 43function BonpromotopbannerClose() { 44 let BonLocalSlider = JSON.parse(localStorage.getItem('BonLocalSlider')); 45 if ($('#bonpromotopbanner').hasClass('active')) { 46 $('#bonpromotopbanner').removeClass('active').scrollTop(0); 47 } 48 49 if (BonLocalSlider === 'close') { 50 $('#bonpromotopbanner').addClass('active'); 51 } 52 53 $('#bonpromotopbanner-close').on('click', function () { 54 localStorage.setItem('BonLocalSlider', JSON.stringify('close')); 55 $('#bonpromotopbanner').addClass('active'); 56 }); 57}
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.