PageSourceSearch

https://aina.lt/stpd-infinite-scroller.js?ver=1790899405

js aina.lt collected 2026-10-02 11:53:38 UTC 1,881 bytes, 43 lines download raw bytes

1function stpdInitializeSidebarAds() {
2
3    const stpdSidebarAdDivs = [...document.querySelectorAll(".stpdSidebarAd")];
4
5    for (const [index, adElement] of Object.entries(stpdSidebarAdDivs)) {
6        const divId = Number(index) + 1
7        const GAMId = divId <= 3 ? divId : 3;
8
9        // If element already has ID, this means ad was already initialized. Skip it.
10        if (adElement.id) {
11            continue;
12        }
13
14        adElement.id = "aina_lt_300x600_" + divId;
15
16        if (divId < 3) {
17            if (window.innerWidth > 1000) {
18                googletag.cmd.push(function () {
19                    googletag.defineSlot('/147246189,21770499739/aina.lt_300x600_' + GAMId, [[300, 600], [300, 250], [300, 300], [160, 600]], adElement.id).addService(googletag.pubads());
20                    googletag.display(adElement.id);
21                    stpd = window.stpd || {que: []};
22                    stpd.que.push(function () {
23                        stpd = window.stpd || {que: []};stpd.que.push(function () {stpd.initialize(adElement.id);})
24                    })
25                });
26            }
27        } else {
28            inView('#' + adElement.id).once('enter', (function () {
29                if (window.innerWidth > 1000) {
30                    googletag.cmd.push(function () {
31                        googletag.defineSlot('/147246189,21770499739/aina.lt_300x600_' + GAMId, [[300, 600], [300, 250], [300, 300], [160, 600]], adElement.id).addService(googletag.pubads());
32                        googletag.display(adElement.id);
33                        stpd = window.stpd || {que: []};
34                        stpd.que.push(function () {
35                            stpd = window.stpd || {que: []};stpd.que.push(function () {stpd.initialize(adElement.id);})
36                        })
37                    });
38                }
39            }));
40
41        }
42    }
43}

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.