Initial Commit - Plugin v1.0.0

This commit is contained in:
2018-05-22 23:40:58 +02:00
parent 0ef7665850
commit 09b279d447
119 changed files with 12872 additions and 0 deletions

16
assets/scripts/slider.js Normal file
View File

@@ -0,0 +1,16 @@
jQuery(function($) {
const plainDotSVG = '<svg class="icon icon-dot-plain d-block" aria-hidden="true" role="img"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-dot-plain"></use></svg>';
const emptyDotSVG = '<svg class="icon icon-dot-empty d-block" aria-hidden="true" role="img"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-dot-empty"></use></svg>';
$(document).ready(function() {
$('#ratings-slider').on('slide.bs.carousel', function (e) {
const fromElmt = $('.carousel-indicators li:eq('+e.from+')');
const toElmt = $('.carousel-indicators li:eq('+e.to+')');
fromElmt.find('svg').remove();
fromElmt.append(emptyDotSVG);
toElmt.find('svg').remove()
toElmt.append(plainDotSVG);
});
});
});