Files
interblue.pl/modules/bonslick/views/js/bonslick_front.js
2024-10-25 14:16:28 +02:00

61 lines
1.9 KiB
JavaScript

/**
* 2015-2017 Bonpresta
*
* Bonpresta Awesome Image Slider
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Bonpresta
* @copyright 2015-2017 Bonpresta
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
$(document).ready(function(){
if(BON_SLICK_CAROUSEL_DOTS == 1) {
var BON_SLICK_CAROUSEL_DOTS_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_DOTS_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_NAV == 1) {
var BON_SLICK_CAROUSEL_NAV_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_NAV_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_AUTOPLAY == 1) {
var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_LOOP == 1) {
var BON_SLICK_CAROUSEL_LOOP_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_LOOP_SCRIPT = false;
}
if(BON_SLICK_CAROUSEL_DRAG == 1) {
var BON_SLICK_CAROUSEL_DRAG_SCRIPT = true;
} else {
var BON_SLICK_CAROUSEL_DRAG_SCRIPT = false;
}
$('.bonslick-slider').slick({
infinite: BON_SLICK_CAROUSEL_LOOP_SCRIPT,
autoplaySpeed: BON_SLICK_CAROUSEL_TIME,
autoplaySpeed: BON_SLICK_CAROUSEL_TIME,
draggable: BON_SLICK_CAROUSEL_DRAG_SCRIPT,
dots: BON_SLICK_CAROUSEL_DOTS_SCRIPT,
arrows: BON_SLICK_CAROUSEL_NAV_SCRIPT,
autoplay: BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT,
slidesToShow: 1,
slidesToScroll: 1,
}
);
});