PageSourceSearch

https://www.django-cms.org/static/js/quote_slider.408446c71921.js

js django-cms.org collected 2026-09-24 18:21:24 UTC 994 bytes, 45 lines download raw bytes

1/**
2 * Quote Slider
3 *
4 * Initializes Swiper on .quote-slider containers.
5 * Always active (desktop and mobile) when there are 2+ quote items.
6 */
7
8(function () {
9	'use strict';
10
11	function initQuoteSliders() {
12		if (typeof Swiper === 'undefined') {
13			console.error('Swiper library not loaded!');
14			return;
15		}
16
17		document.querySelectorAll('.quote-slider').forEach(function (container) {
18			var swiperEl = container.querySelector('.quote-swiper');
19			if (!swiperEl) return;
20
21			var prevBtn = container.querySelector('.quote-slider-prev');
22			var nextBtn = container.querySelector('.quote-slider-next');
23
24			new Swiper(swiperEl, {
25				slidesPerView: 1,
26				spaceBetween: 20,
27				loop: true,
28				navigation: {
29					nextEl: nextBtn,
30					prevEl: prevBtn
31				},
32				keyboard: {
33					enabled: true,
34					onlyInViewport: true
35				}
36			});
37		});
38	}
39
40	if (document.readyState === 'loading') {
41		document.addEventListener('DOMContentLoaded', initQuoteSliders);
42	} else {
43		initQuoteSliders();
44	}
45})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.