PageSourceSearch

https://www.lidl.sk/w/leaflets-slider-setup.js

js lidl.sk collected 2026-10-02 06:06:59 UTC 1,478 bytes, 33 lines download raw bytes

1(function() {
2    var cssTag = document.getElementById('leaflet-slider-css');
3    var jsTag = document.getElementById('leaflet-slider-js');
4    var containers = document.getElementsByClassName('AFlyerSlider_wrapper');
5    var apps = document.getElementsByClassName('leaflet-slider-app');
6    var storeFinderContainer;
7
8    if (!apps.length) {
9        for (var container of containers) {
10            container.querySelector('[data-leaflets-slider-widget-id]').setAttribute('class', 'leaflet-slider-app');
11            storeFinderContainer = document.createElement('div');
12            storeFinderContainer.setAttribute('class', 'leaflet-slider-store-finder-wrapper');
13            storeFinderContainer.dataset.leafletsSliderWidgetId = container.querySelector('[data-leaflets-slider-widget-id]').dataset.leafletsSliderWidgetId;
14            container.before(storeFinderContainer);
15        }
16    }
17
18    if (!cssTag) {
19        cssTag = document.createElement('link');
20        cssTag.setAttribute( 'rel', 'stylesheet' );
21        cssTag.setAttribute( 'id', 'leaflet-slider-css' );
22        cssTag.setAttribute( 'href', '/w/leaflets-slider.css' );
23        document.body.appendChild( cssTag );
24    }
25
26    if (!jsTag) {
27        jsTag = document.createElement('script');
28        jsTag.setAttribute( 'type', 'module' );
29        jsTag.setAttribute( 'id', 'leaflet-slider-js' );
30        jsTag.setAttribute( 'src', '/w/leaflets-slider.js' );
31        document.body.appendChild( jsTag );
32    }
33})();

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.