PageSourceSearch

https://www.husvagnochcamping.se/app/themes/story-house-egmont-theme/script.js?time=1790445101

js husvagnochcamping.se collected 2026-09-26 18:51:24 UTC 1,609 bytes, 44 lines download raw bytes

1(function(jQuery) {
2    'use strict';
3
4    function onEntryInView() {
5        jQuery('.entry-after-trigger').each(function() {
6            var $this = jQuery(this);
7            var position = $this.offset().top;
8            var viewportTop = jQuery(window).scrollTop();
9            var viewportBottom = viewportTop + jQuery(window).height();
10
11            if (position < viewportBottom && position + $this.height() > viewportTop) {
12                $this.addClass('in-view');
13                var gptAdsArraySpliced = gptAdsArray.slice(0, gptAdsArray.length - 2);
14
15                window.googletag = window.googletag || {cmd: []};
16                googletag.cmd.push(function() {
17                    googletag.destroySlots(gptAdsArraySpliced);
18                });
19            } else {
20                $this.removeClass('in-view');
21            }
22        });
23    }
24
25    function onImpressionViewable(event) {
26        var slot = event.slot;
27        gptAdsImpressionViewable++;
28        console.log("gptAdsImpressionViewable", gptAdsImpressionViewable);
29    }
30
31    jQuery(window).on("scroll", onEntryInView);
32
33    window.googletag = window.googletag || {cmd: []};
34    googletag.cmd.push(function() {
35        googletag.pubads().addEventListener('impressionViewable', onImpressionViewable);
36        googletag.pubads().enableLazyLoad({
37            fetchMarginPercent: 100,  // Fetch slots within 1 viewports.
38            renderMarginPercent: 20,  // Render slots within 1 viewports.
39            mobileScaling: 2.0  // Double the above values on mobile.
40        });
41        googletag.enableServices();
42    });
43
44})(jQuery);

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.