PageSourceSearch

https://www.igesa.fr/typo3conf/ext/pjx_calcul_tarification/Resources/Public/js/lightbox-tranche-v2.js?v=11309

js igesa.fr collected 2026-09-24 11:53:59 UTC 4,459 bytes, 129 lines download raw bytes

1var $k = jQuery.noConflict();
2
3$k(document).ready(function () {
4
5
6    $k('.btn-reservit').bind("click", function () {
7        $k('#hoterlAlertes').css("display", "block");
8    });
9
10    $k('.btn-conditions').bind("click", function () {
11        html = $k('#content-condition-' + $k(this).attr("data-id-content")).html();
12        $k('.modal-body-conditions').html(html);
13    });
14
15
16    $k('#close-calcul-tarifs').bind("click", function () {
17        $k('#contenu_refresh_budget').html('');
18        $k('.tarif-step-two').addClass('hidden-l hidden-s');
19        $k('.tarif-step-one').removeClass('hidden-l hidden-s');
20        $k('#tx_elycalcultarification_pi1').css("display", "none");
21    });
22
23    $k('#inputHandicapHeader').bind("click", function () {
24        $k('#inputHandicap').removeClass("hidden-l hidden-s")
25    });
26
27    $k('#lable--nn_handicap').bind("click", function () {
28        $k('#div--nn_handicap').removeClass("hidden-l hidden-s")
29    });
30
31    $k('.controle-mvc').bind("click", function () {
32        const max = parseInt($k('#nb_adultes_mvc').val()) + parseInt($k('#nb_enfant_mvc').val());
33        if (parseInt($k('#nb_handicap_mcv').val()) > max)
34            $k('#nb_handicap_mcv').val(max);
35        $k("#nb_handicap_mcv").attr('max', max);
36    });
37
38    $k('.input-calcul-tarifs').bind("click", function () {
39        const max = parseInt($k('#nbr_adultes').val()) + parseInt($k('#nbr_enfant_charges').val());
40        if (parseInt($k('#nbr_handicap').val()) > max)
41            $k('#nbr_handicap').val(max);
42        $k("#nbr_handicap").attr('max', max);
43    });
44
45    $k('.calcul--tranche').bind("click", function () {
46        $k('#tx_elycalcultarification_pi1').css("display", "block");
47        $k('#pjxendettement_pi1').css("display", "none");
48        $k('#pjxsimulateurdes_pides').css("display", "none");
49    });
50
51    $k('.tx_elycalcultarification_pi1_close').bind("click", function () {
52        $k('#contenu_refresh_budget').html('');
53        $k('.tarif-step-two').addClass('hidden-l hidden-s');
54        $k('.tarif-step-one').removeClass('hidden-l hidden-s');
55        $k('#tx_elycalcultarification_pi1').css("display", "none");
56    });
57
58    $k('.modal-test').bind("click", function () {
59        $k('#modal-container').css("display", "block");
60    });
61
62    $k('.modal-test_close').bind("click", function () {
63        $k('#modal-container').css("display", "none");
64    });
65
66    $k('.taux--endettement').bind("click", function () {
67        $k('#pjxendettement_pi1').css("display", "block");
68        $k('#tx_elycalcultarification_pi1').css("display", "none");
69        $k('#pjxsimulateurdes_pides').css("display", "none");
70    });
71
72    $k('.pjxendettement_pi1_close').bind("click", function () {
73        $k('#pjxendettement_pi1').css("display", "none");
74    });
75
76    $k('.simulateur-des').bind("click", function () {
77        $k('#pjxsimulateurdes_pides').css("display", "block");
78        $k('#tx_elycalcultarification_pi1').css("display", "none");
79        $k('#pjxendettement_pi1').css("display", "none");
80    });
81
82    $k('.pjxsimulateurdes_pides_close').bind("click", function () {
83        $k('#pjxsimulateurdes_pides').css("display", "none");
84    });
85
86
87    $k('#reservation-junior-jo').bind("click", function () {
88        $k('#reservation_colos_jo').css("display", "block");
89    });
90    $k('.reservation_colos_jo_close').bind("click", function () {
91        $k('#reservation_colos_jo').css("display", "none");
92    });
93
94});
95
96
97// Get the modal
98var modalTarification = document.getElementById("tx_elycalcultarification_pi1");
99var modalEndettement = document.getElementById("pjxendettement_pi1");
100var modalDes = document.getElementById("pjxsimulateurdes_pides");
101var modalJO = document.getElementById("reservation_colos_jo");
102
103window.onclick = function (event) {
104    if (event.target == modalTarification) {
105        modalTarification.style.display = "none";
106    }
107
108    if (event.target == modalEndettement) {
109        modalEndettement.style.display = "none";
110    }
111
112    if (event.target == modalDes) {
113        modalDes.style.display = "none";
114    }
115
116    if (event.target == modalJO) {
117        modalJO.style.display = "none";
118    }
119
120};
121
122
123const observer = new IntersectionObserver((entries) => {
124    entries.forEach(entry => {
125        entry.target.classList.toggle('item--hidden', entry.intersectionRatio < 1);
126    });
127}, { threshold: 1 });
128
129document.querySelectorAll('.univers-item, .carousel__item, .block-bonplan-item').forEach(el => observer.observe(el));

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.