Sha256: 4878ce9b8df88d4ae857826b6a54e34ebfc95ad592e41a8e97d4ea130a3c8339
Contents?: true
Size: 861 Bytes
Versions: 2
Compression:
Stored size: 861 Bytes
Contents
var create_swiper = function (options) { console.log('<create_swiper>'); var swiper_options = { loop: true }; if (options['mark_pagination']) { swiper_options['pagination'] = '.swiper-pagination'; swiper_options['paginationClickable'] = true; } if (options['mark_buttons']) { swiper_options['nextButton'] = '.swiper-button-next'; swiper_options['prevButton'] = '.swiper-button-prev'; } if (options['mark_scrollbar']) { swiper_options['scrollbar'] = '.swiper-scrollbar'; } if (options['mark_lazy']) { swiper_options['lazyLoading'] = true; swiper_options['preloadImages'] = false; } if (options['params'] != undefined) { $.extend(swiper_options, options['params']); } return new Swiper('.swiper-container', swiper_options) };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_swiper-0.1.0.1 | app/assets/javascripts/c80_swiper/create_swiper.js |
c80_swiper-0.1.0 | app/assets/javascripts/c80_swiper/create_swiper.js |