PageSourceSearch

https://actuf1.com/assets/app-7503d4f6aa4314117f359e1afe446939.js

js actuf1.com collected 2026-10-08 20:17:42 UTC 3,266 bytes, 103 lines download raw bytes

1import './bootstrap.js';
2/*
3 * Welcome to your app's main JavaScript file!
4 *
5 * This file will be included onto the page via the importmap() Twig function,
6 * which should already be in your base.html.twig.
7 */
8// import 'bootstrap/dist/css/bootstrap.min.css';
9
10import './styles/app.css';
11
12// import 'jquery';
13import $ from 'jquery';
14
15
16document.addEventListener("turbo:load", function() {
17
18    const adr1 = 'contact';
19    const nds = 'actuf1';
20
21    $('.mail').each(function(){
22        $(this).append('<a href="mailto:'+adr1+'@'+nds+'.com">'+$(this).data('text')+'</a>');
23    });
24
25
26
27    // Récupérer les ID à cacher depuis le localStorage
28    var dataHider = JSON.parse(localStorage.getItem('dataHider')) || [];
29    // Cacher les éléments correspondants
30    $.each(dataHider, function(index, id) {
31        $('#' + id).hide();
32    });
33
34    // Événement click pour ajouter des ID au localStorage
35    $('[data-hider]').click(function() {
36        $('#btnRestore').show();
37        var hider = $(this).data('hider');
38
39        // Ajouter l'ID au tableau dans le localStorage
40        dataHider.push(hider);
41        localStorage.setItem('dataHider', JSON.stringify(dataHider));
42
43        // Cacher l'élément correspondant
44        $('#' + hider).hide();
45        const frame = document.querySelector('[data-controller="top-ten-hider"]');
46
47        if (frame) {
48            const event = new CustomEvent('update:frame');
49            frame.dispatchEvent(event);
50        }
51
52    });
53    // Afficher le bouton "Tout afficher" uniquement si idsACacher est défini et non vide
54    if (localStorage.getItem('dataHider')) {
55        $('#btnRestore').show();
56    }
57
58    // Bouton pour supprimer tous les ID du localStorage
59    $('#btnRestore').click(function() {
60        localStorage.removeItem('dataHider');
61        location.reload(); // Recharger la page pour appliquer les changements
62    });
63
64});
65
66
67//
68// $('document').ready(function () {
69//
70//     $.widget("custom.autocomplete", $.ui.autocomplete, {
71//         _renderMenu: function (ul, items) {
72//             var self = this, currentCategory = "";
73//             $.each(items, function (index, item) {
74//                 if (item.category != currentCategory) {
75//                     ul.append("<li class='ui-menu-category'>" + item.category + "</li>");
76//                     currentCategory = item.category;
77//                 }
78//                 self._renderItemData(ul, item);
79//             });
80//         }
81//     });
82//
83//     $("[id$='SearchOnStatsF1']").autocomplete({
84//         minLength: 3,
85//         position: { collision: "flip" },
86//         source: function (request, response) {
87//             $.ajax({
88//                 url: "https://www.statsf1.com/recherche/search.ashx?lg=1",
89//                 dataType: "jsonp",
90//                 data: { term: request.term },
91//                 success: function (data) { response(data); },
92//                 error: function (data, textStatus, errorThrown) {
93//                     alert(textStatus);
94//                 }
95//             });
96//         },
97//         select: function (event, ui) {
98//             var url = ui.item.url; var lg = '/fr/';
99//             window.open('https://www.statsf1.com' + lg + url, '_blank');
100//         }
101//     });
102// });
103

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.