PageSourceSearch

https://pinkscreens.org/_integration/pinkscreen/assets/js/dist/scripts.js?v=20261002111116

js pinkscreens.org collected 2026-10-02 11:11:23 UTC 6,107 bytes, 231 lines download raw bytes

1window.onresize = init;
2window.onload = init;
3init;
4
5ofst = 194.5;
6if ($(window).width() > 1440) ofst = 194.5;
7
8////////////////
9// Mediaqueries
10////////////////
11
12function init() {
13    if (window.matchMedia("(min-width:992px)").matches) {
14        $("#header, body").addClass("is-open").removeClass('is-close');
15        $(".sticky-wrapper.is-active").stick_in_parent({
16            offset_top: 110,
17            inner_scrolling: true,
18        });
19    } else {
20        $(".sticky-wrapper").trigger("sticky_kit:detach");
21    }
22}
23
24function script_callback() {
25
26
27    $('.header-container').imagesLoaded({
28        background: true
29    }, function() {
30
31    });
32
33
34    $window = $(window);
35
36    $(window).scroll(function() {
37
38
39        if ($window.scrollTop() > 180) {
40            if (window.matchMedia("(min-width:992px)").matches) {
41                $("#header, body").removeClass("is-open").addClass('is-close').find('.main-logo');
42            }
43
44        } else {
45            if (window.matchMedia("(min-width:992px)").matches) {
46                $("#header, body").addClass("is-open").removeClass('is-close').find('.main-logo');
47            }
48        }
49
50
51        $(".header-container")
52            .mouseenter(function() {
53                if ($window.scrollTop() > 180) {
54                    if (window.matchMedia("(min-width:992px)").matches) {
55                        $("#header, body").addClass("is-open").removeClass('is-close');
56                    }
57                }
58            })
59            .mouseleave(function() {
60                if ($window.scrollTop() > 180) {
61                    if (window.matchMedia("(min-width:992px)").matches) {
62                        $("#header, body").removeClass("is-open").addClass('is-close');
63                    }
64                }
65            });
66
67
68    });
69
70    $(".toggle-menu").click(function(e) {
71        $(this).toggleClass("is-on");
72        $("#header, body").toggleClass("mobile-is-open");
73        e.preventDefault();
74    });
75
76    /*
77     * Replace all SVG images with inline SVG
78     */
79
80    $('.search-icon').click(function(e) {
81        e.preventDefault();
82        if (window.matchMedia("(max-width:991px)").matches) {
83            $('.movie-filter').slideToggle(350);
84        }
85
86    });
87
88    $(".share").on('click', function(e) {
89        $("#socialBar").toggleClass('active');
90        $(".shareBtn").toggleClass('hide');
91        $(".shareBtn").toggleClass('fa-share-alt');
92        $(".shareBtn").toggleClass('fa-times');
93
94    });
95
96    $('img.svg').each(function() {
97        var $img = $(this);
98        var imgID = $img.attr('id');
99        var imgClass = $img.attr('class');
100        var imgURL = $img.attr('src');
101
102        $.get(imgURL, function(data) {
103            // Get the SVG tag, ignore the rest
104            var $svg = $(data).find('svg');
105
106            // Add replaced image's ID to the new SVG
107            if (typeof imgID !== 'undefined') {
108                $svg = $svg.attr('id', imgID);
109            }
110            // Add replaced image's classes to the new SVG
111            if (typeof imgClass !== 'undefined') {
112                $svg = $svg.attr('class', imgClass + ' replaced-svg');
113            }
114
115            // Remove any invalid XML tags as per http://validator.w3.org
116            $svg = $svg.removeAttr('xmlns:a');
117
118            // Replace image with new SVG
119            $img.replaceWith($svg);
120
121        }, 'xml');
122
123    });
124
125
126
127    var titleSize = function() {
128
129        var r = $.Deferred();
130
131        // Chosen
132
133        $(".movie-filter select").chosen({
134            disable_search_threshold: 15,
135            width: '100%',
136        });
137
138        // Change title size
139
140        var letterCount = $(".film-title .page-title").text().length;
141        console.log(letterCount);
142
143        if (letterCount > 28 && letterCount < 56) {
144
145            $(".film-title .page-title").removeClass('h1').addClass('h2');
146
147        } else if (letterCount >= 56) {
148            $(".film-title .page-title").removeClass('h1').addClass('h3');
149        }
150
151
152        // Change subtitle size
153
154        $('.movie-teaser').each(function() {
155            var letterCount2 = $(this).find('.movie-title').text().length;
156            console.log(letterCount2);
157
158            if (letterCount2 <= 28) {
159
160                $(this).find('.movie-title').removeClass('h4').addClass('h3');
161            }
162        });
163
164        // Slider
165
166        $('.main-slider').slick({
167            slidesToShow: 1,
168            autoplay: true,
169            adaptiveHeight: true,
170            speed: 500,
171            autoplaySpeed: 5000,
172            draggable: false,
173            responsive: [{
174                breakpoint: 992,
175                settings: {
176                    slidesToShow: 1,
177                    arrows: false,
178                    draggable: true,
179                    dots: true
180                }
181            }]
182        });
183
184        return r;
185
186    };
187
188    var parralaxInit = function() {
189
190        // Parralax element
191        $('body').imagesLoaded({
192                // options...
193            },
194            function() {
195                $(".paroller, [data-paroller-factor]").paroller({
196                    factor: 0.2, // multiplier for scrolling speed and offset
197                    factorXs: 0.1, // multiplier for scrolling speed and offset
198                    type: 'foreground', // background, foreground
199                    direction: 'vertical' // vertical, horizontal
200                });
201
202                $(".paroller-2 , [data-paroller-factor]").paroller({
203                    factor: 0.05, // multiplier for scrolling speed and offset
204                    factorXs: 0.05, // multiplier for scrolling speed and offset
205                    type: 'foreground', // background, foreground
206                    direction: 'vertical' // vertical, horizontal
207                });
208
209                $('body').addClass('img-ready');
210            }
211        );
212
213
214    };
215
216    // Now call the functions one after the other using the done method
217    titleSize().done(parralaxInit());
218
219
220
221
222
223}
224
225$(document).ready(function() {
226
227    // Call Fonction
228    script_callback();
229    init();
230    $("body").addClass("is-ready");
231});

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.