/* * @Website: apollotheme.com - prestashop template provider * @author Apollotheme * @copyright Apollotheme * @description: ApPageBuilder is module help you can build content for your shop */ /* * Custom code goes here. * A template should always ship with an empty custom.js */ function initSlider(selector, options) { if ($.fn.slick) { $(selector).slick(options) } else { ;(function (factory) { 'use strict' if (typeof define === 'function' && define.amd) { define(['jquery'], factory) } else if (typeof exports !== 'undefined') { module.exports = factory(require('jquery')) } else { factory(jQuery) } })(function ($) { 'use strict' var Slick = window.Slick || {} Slick = (function () { var instanceUid = 0 function Slick(element, settings) { var _ = this, dataSettings _.defaults = { accessibility: true, adaptiveHeight: false, appendArrows: $(element), appendDots: $(element), arrows: true, asNavFor: null, prevArrow: '', nextArrow: '', autoplay: false, autoplaySpeed: 3000, centerMode: false, centerPadding: '50px', cssEase: 'ease', customPaging: function (slider, i) { return $('