Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

30 строки
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. });