PageSourceSearch

https://scoi.com/wp-content/uploads/components/global/global.js?ver=1789581806

js scoi.com collected 2026-09-24 20:30:38 UTC 962 bytes, 44 lines download raw bytes

1/*
2 *  lm
3 *  global lemons object
4 */
5
6
7$(document).find('iframe').each(function() {
8    var src = $(this).attr('src');
9    if (src && src.includes('youtube.com')) {
10        $(this).attr('src', src + (src.includes('?') ? '&' : '?') + 'mute=1');
11    }
12});
13
14$.fn.inView = function(cb, className = 'in-view') {
15
16    this.each(function() {
17
18        var _this = $(this);
19
20        $(window).on("scroll load", function() {
21
22            let scrollTop = $(window).scrollTop();
23            let windowHeight = $(window).height();
24
25            let elementOffset = _this.offset().top;
26            let elementHeight = _this.outerHeight();
27
28            if (scrollTop + windowHeight >= elementOffset && scrollTop <= elementOffset + elementHeight && !_this.hasClass(className)) {
29
30                _this.addClass(className);
31
32                if (typeof cb === 'function') cb();
33
34            }
35
36
37        });
38
39    })
40
41    return this;
42
43
44}

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.