Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
main.js 939 B
/*!
 * Copyright (c) 2019 Eclipse Foundation, Inc.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * Contributors:
 *   Christopher Guindon <chris.guindon@eclipse-foundation.org>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
import 'eclipsefdn-solstice-assets';
import 'jquery';

(function ($) {
  $('.solstice-slider').each(function () {
    var $t = $(this);
    $t.owlCarousel({
      responsive: {
        0: {
          items: $t.data('slider-xs-count') || 1,
        },
        768: {
          items: $t.data('slider-sm-count') || 1,
        },
        992: {
          items: $t.data('slider-md-count') || 1,
        },
        1170: {
          items: $t.data('slider-lg-count') || 1,
        },
      },
      pagination: true,
      responsiveRefreshRate: 100,
    });
  });
})(jQuery);