Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

30 rader
737 B

  1. import $ from 'jquery';
  2. import 'jquery.easing';
  3. import Slider from "../slider/slider";
  4. class IHKETLSlider {
  5. constructor(section) {
  6. this.section = section.addClass('initiated');
  7. this.slides = section.children();
  8. this.slider = new Slider(section.find('.eventteaserlargeslider'));
  9. this.stringLength = 0;
  10. this.slider.section.on('in-viewport slide-change', () => {
  11. const curr = this.slider.currentSlide;
  12. if (this.slides[curr].hasCounter) {
  13. this.startCounter(curr);
  14. }
  15. })
  16. }
  17. }
  18. export default IHKETLSlider;
  19. $('body').on('ihk-init dynamic-component-loaded gfi-dynamic-init', function () {
  20. $('.rotationslider:not(.initiated)').each(function() {
  21. new IHKETLSlider($(this));
  22. });
  23. });