PageSourceSearch

https://www.imp.ac.at/_assets/23c048c4e278024490c6ac1b855e5de4/JS/custom-owl-overrides.js?1790771538

js imp.ac.at collected 2026-10-01 10:34:01 UTC 791 bytes, 32 lines download raw bytes

1function limitDots($carousel) {
2    const dots = $carousel.find('.owl-dot');
3    if (dots.length <= 10) return;
4    dots.hide();
5    dots.slice(0, 3).show();
6    $carousel.find('.owl-dots').css({
7        display: 'flex',
8        justifyContent: 'center',
9        gap: '8px'
10    });
11}
12
13
14$(document).on('initialized.owl.carousel', function(event) {
15    const $carousel = $(event.target);
16    const realItemCount = $carousel.find('a').length;
17
18    // Apply dots limitation only when >10 real images
19    if (realItemCount > 10) {
20        limitDots($carousel);
21    }
22});
23
24$(document).on('refreshed.owl.carousel', function(event) {
25    const $carousel = $(event.target);
26
27    const realItemCount = $carousel.find('a').length;
28
29    if (realItemCount > 10) {
30        limitDots($carousel);
31    }
32});

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.