PageSourceSearch

https://french-stream.net/js/main-inlines.js?v=fss20260713a

js french-stream.net collected 2026-10-10 00:22:51 UTC 8,522 bytes, 199 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    document.body.style.opacity = '1';
3    var navItems = document.querySelectorAll('.nav-menu > li');
4    var stTabs = document.querySelectorAll('.st-tabs span');
5    var shorts = document.querySelectorAll('.short');
6    var sectTitles = document.querySelectorAll('.sect-t');
7    var logo = document.querySelector('.container2');
8    var buttonElement = document.querySelector('.button');
9
10    if (logo) {
11        logo.style.opacity = '0';
12        logo.style.transform = 'scale(0.8)';
13        setTimeout(function() {
14            logo.style.transition = 'all 0.4s cubic-bezier(0.23, 1, 0.32, 1)';
15            logo.style.opacity = '1';
16            logo.style.transform = 'scale(1)';
17        }, 10);
18    }
19
20    navItems.forEach(function(item, index) {
21        item.style.opacity = '0';
22        item.style.transform = 'translateY(-20px)';
23        setTimeout(function() {
24            item.style.transition = 'all 0.3s cubic-bezier(0.23, 1, 0.32, 1)';
25            item.style.opacity = '1';
26            item.style.transform = 'translateY(0)';
27        }, 30 + (index * 35));
28    });
29
30    if (buttonElement) {
31        buttonElement.style.opacity = '0';
32        buttonElement.style.transform = 'translateY(-20px)';
33        setTimeout(function() {
34            buttonElement.style.transition = 'all 0.3s cubic-bezier(0.23, 1, 0.32, 1)';
35            buttonElement.style.opacity = '1';
36            buttonElement.style.transform = 'translateY(0)';
37        }, 30 + (navItems.length * 35) + 50);
38    }
39
40    sectTitles.forEach(function(title, index) {
41        title.style.opacity = '0';
42        title.style.transform = 'translateX(-30px)';
43        setTimeout(function() {
44            title.style.transition = 'all 0.4s cubic-bezier(0.23, 1, 0.32, 1)';
45            title.style.opacity = '1';
46            title.style.transform = 'translateX(0)';
47        }, 150 + (index * 80));
48    });
49
50    stTabs.forEach(function(tab, index) {
51        tab.style.opacity = '0';
52        tab.style.transform = 'scale(0.8)';
53        setTimeout(function() {
54            tab.style.transition = 'all 0.3s cubic-bezier(0.23, 1, 0.32, 1)';
55            tab.style.opacity = '1';
56            tab.style.transform = 'scale(1)';
57        }, 200 + (index * 25));
58    });
59
60    shorts.forEach(function(short, index) {
61        short.style.opacity = '0';
62        short.style.transform = 'scale(0.85) translateY(20px)';
63        setTimeout(function() {
64            short.style.transition = 'all 0.4s cubic-bezier(0.23, 1, 0.32, 1)';
65            short.style.opacity = '1';
66            short.style.transform = 'scale(1) translateY(0)';
67        }, 250 + (index * 25));
68    });
69});
70
71(function() {
72    var k = 'dle_sort_choice', s = {
73        save: function(t) { try { localStorage.setItem(k, t) } catch (e) {} },
74        get: function() { try { return localStorage.getItem(k) || 'date_desc' } catch (e) { return 'date_desc' } },
75        apply: function(t) {
76            var a = document.querySelectorAll('.st-tabs span[data-ajaxc=""]:not(.sort-label)'),
77			m = { 'date_desc': 0, 'rating_desc': 1, 'comm_num_desc': 2, 'news_read_desc': 3 };
78            a.forEach(function(x) { x.classList.remove('current') });
79            if (a[m[t]]) a[m[t]].classList.add('current');
80        },
81        detect: function(e) {
82            var o = e.getAttribute('onclick');
83            if (!o || !o.includes('dle_change_sort')) return null;
84            if (o.includes("'date','desc'")) return 'date_desc';
85            if (o.includes("'rating','desc'")) return 'rating_desc';
86            if (o.includes("'comm_num','desc'")) return 'comm_num_desc';
87            if (o.includes("'news_read','desc'")) return 'news_read_desc';
88            return null;
89        }
90    };
91    document.addEventListener('click', function(e) {
92        var l = e.target.closest('.st-tabs span[data-ajaxc]:not(.sort-label) a');
93        if (l) { var t = s.detect(l); if (t) { s.save(t); s.apply(t); } }
94    });
95    function r() { s.apply(s.get()); }
96    if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', r); else r();
97})();
98
99function setActiveButton(buttonId) {
100    var allButtons = document.querySelectorAll('.filter-option');
101    for (var i = 0; i < allButtons.length; i++) {
102        allButtons[i].classList.remove('active');
103        allButtons[i].style.border = 'none';
104        allButtons[i].style.background = 'linear-gradient(145deg, #2c2c2c, #242424)';
105        allButtons[i].style.boxShadow = '0 2px 5px rgba(0, 0, 0, 0.3)';
106    }
107    var activeButton = document.getElementById(buttonId);
108    if (activeButton) {
109        activeButton.classList.add('active');
110        activeButton.style.border = '2px solid #FF8C00';
111        activeButton.style.background = 'linear-gradient(145deg, #3a3a3a, #444444)';
112        activeButton.style.boxShadow = 'inset 0 2px 5px rgba(0, 0, 0, 0.3)';
113    }
114    var filterType;
115    if (buttonId === 'showFilms') filterType = 'film';
116    else if (buttonId === 'showSeries') filterType = 'serie';
117    else filterType = 'all';
118    filterContent(filterType);
119}
120
121function filterContent(type) {
122    var allFiches = document.querySelectorAll('.short');
123    document.querySelectorAll('button').forEach(function(button) {
124        button.classList.remove('selected-button');
125    });
126    if (type === 'film') {
127        var el = document.getElementById('showFilms');
128        if (el) el.classList.add('selected-button');
129    } else if (type === 'serie') {
130        var el = document.getElementById('showSeries');
131        if (el) el.classList.add('selected-button');
132    } else {
133        var el = document.getElementById('showAll');
134        if (el) el.classList.add('selected-button');
135    }
136    allFiches.forEach(function(fiche) {
137        fiche.style.display = 'block';
138        if (type === 'film' && !fiche.classList.contains('film')) fiche.style.display = 'none';
139        else if (type === 'serie' && !fiche.classList.contains('serie')) fiche.style.display = 'none';
140    });
141    var films = document.querySelectorAll('.film-item');
142    var series = document.querySelectorAll('.serie-item');
143    if (type === 'film') { showElements(films); hideElements(series); }
144    else if (type === 'serie') { hideElements(films); showElements(series); }
145    else { showElements(films); showElements(series); }
146}
147
148function showElements(elements) {
149    for (var i = 0; i < elements.length; i++) elements[i].style.display = 'block';
150}
151
152function hideElements(elements) {
153    for (var i = 0; i < elements.length; i++) elements[i].style.display = 'none';
154}
155
156document.addEventListener('DOMContentLoaded', function() {
157    var fiches = document.querySelectorAll('.short');
158    fiches.forEach(function(fiche) {
159        var isSerie = false, isFilm = false;
160        var badges = fiche.querySelectorAll('.badge');
161        badges.forEach(function(badge) {
162            var badgeText = badge.textContent.toLowerCase();
163            if (badgeText.includes('saison') || badgeText.match(/\d+/)) isSerie = true;
164            if (badgeText.includes('film') || badgeText.includes('vostfr')) isFilm = true;
165        });
166        var links = fiche.querySelectorAll('a');
167        links.forEach(function(link) {
168            var href = link.getAttribute('href');
169            if (href) {
170                href = href.toLowerCase();
171                if (href.includes('saison') || href.includes('episode')) isSerie = true;
172                if (href.includes('film')) isFilm = true;
173            }
174        });
175        if (isSerie) fiche.classList.add('serie');
176        else if (isFilm) fiche.classList.add('film');
177    });
178    var showAllBtn = document.getElementById('showAll');
179    if (showAllBtn) {
180        showAllBtn.classList.add('selected-button');
181        setTimeout(function() { setActiveButton('showAll'); }, 100);
182    }
183    var sortType = document.getElementById('dlenewssortby');
184    if (sortType) {
185        var val = sortType.value;
186        var currentElement = document.getElementById('sort-' + (val === 'date' ? 'default' : val));
187        if (currentElement) currentElement.classList.add('current');
188    }
189});
190
191function goToCustomYear() {
192    var input = document.getElementById('customYearInput');
193    if (input && input.value >= 1980 && input.value <= 2030) {
194        window.location.href = '/xfsearch/date-de-sortie/' + input.value + '/';
195    }
196}
197
198
199 

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.