PageSourceSearch

https://www.relationclientmag.fr/wp-content/themes/kamino/assets/refonte_v2/js/script.js?ver=1790163539

js relationclientmag.fr collected 2026-10-02 03:21:26 UTC 6,844 bytes, 204 lines download raw bytes

1jQuery( document ).ready( function( $ ) {
2
3    $(document).scroll(function() {
4        let display = ($(document).scrollTop() > 200 ) ? 'block' : 'none'; 
5        $('#scrollUp').css("display", display);
6
7        // Fixed Header V3
8        let fixedHeader = false;
9
10        if ( $('#main-header').hasClass('habillage') ) {
11            ( $(document).scrollTop() > 300 ) ? fixedHeader = true : fixedHeader = false; 
12
13        }else if ( ($(document).scrollTop() > 150 ) ) {
14            fixedHeader = true;
15        } else { fixedHeader = false; }
16
17        fixedHeader ? $('#secondary-bar').addClass('fixed') : $('#secondary-bar').removeClass('fixed');
18
19        fixedHeader ?  $('.search-form_content').addClass('fixed') : $('.search-form_content').removeClass('fixed');
20
21    });
22
23     // Toggle menu mobile Kamino V3
24     let menu_burger = $('#open-menu-mobile'),
25        menu_mobile = $('#menu-mobile');
26
27         menu_burger.click(function() { menu_mobile.toggle(); });
28    
29    // Toggle search form Kamino V3
30     let search_btn = $('.search-btn, .search--btn'),
31         search_form = $('#search-form');
32
33         search_btn.click(function() { search_form.toggle(); });
34
35    // Show less main menu items
36
37    if ( !$('body').hasClass('hub-kyocera') ) { responsive_menu(); }
38    
39
40    function responsive_menu(){
41        var $ul = $("#secondary-bar div.wrapper"),
42        items = $ul.find("ul.right").children(),
43        $dropdown = $('<li class="dropdown"> <ul class="dropdown-items"> <li id="opener"> + </li> </ul> </li>'),
44        width_ul = $ul.outerWidth(),
45        width_items = 0,
46        active_menu = false;
47
48        items.each(function(index,element){
49            var _this = $( element );
50            width_items += _this.outerWidth();
51
52            if (width_items > (width_ul - 100) ){
53                active_menu = true;
54            }
55
56            if (active_menu){
57                $dropdown.insertAfter(_this);
58                $dropdown.find('ul.dropdown-items').append(_this);
59            }
60        });
61
62        var opener = $("#opener"),
63            dropdown = $(".dropdown-items"),
64            dropdown_items = dropdown.children().not("#opener");
65
66        opener.click(function() {
67            dropdown_items.toggle();
68            dropdown.hasClass("active") ? dropdown.removeClass("active") : dropdown.addClass("active");
69        }); 
70    }
71
72    const opener_mobile_menu = $(".btn-menu-mobile"),
73          mobile_menu = $(".menu-mobile.nav-menus");
74
75    opener_mobile_menu.click(function() {
76        mobile_menu.toggle();
77    }); 
78
79    const subscription_popin__button = $("#menu-top .subscription-popin__button > a"),
80          $subscription_popin = $("#Subscription-popin .subscription-popin");
81
82    subscription_popin__button.on("mouseenter", function() {
83        $subscription_popin.css('display', 'flex');
84    }); 
85    
86    $('#Subscription-popin').on("mouseleave", function() {
87        $subscription_popin.css('display', 'none');
88    }); 
89
90    $(document).on("click", function(e) {
91        if ($(e.target).is($('#Subscription-popin').find('*') ) === false) {
92            $subscription_popin.css('display', 'none');
93        }
94    });
95
96    // Remove items icons from menu right on partnerzone template : url - https://preprod.silicon.es/partnerzone/silicon-ciberseguridad
97    jQuery('#pz-item-31 > a > li, #pz-item-36 > a > li').css('background', 'transparent');
98
99    //Add border-bottom to menu on scroll
100    $(window).scroll(function(){
101        (jQuery(window).scrollTop() > 40) ? jQuery('header[role="banner"]').addClass('onscroll') : jQuery('header[role="banner"] ').removeClass('onscroll');
102    });
103
104//Create cookie for Kamino popin cybersecurity
105function setKaminoPopinEvents(cname,cvalue) {
106    document.cookie = cname + "=" + cvalue + ";path=/";
107}
108
109function getKaminoPopinEvents(cname) {
110    var name = cname + "=";
111    var decodedCookie = decodeURIComponent(document.cookie);
112    var ca = decodedCookie.split(';');
113    for(var i = 0; i < ca.length; i++) {
114        var c = ca[i];
115        while (c.charAt(0) == ' ') {
116            c = c.substring(1);
117        }
118        if (c.indexOf(name) == 0) {
119            return c.substring(name.length, c.length);
120        }
121    }
122    return "";
123}
124$('#popupcs #close_popupcs').on('click', function() {
125    setKaminoPopinEvents("Kamino_popin_CyberSecurity", "true");
126    $("#popupcs").remove();
127});
128if (!getKaminoPopinEvents("Kamino_popin_CyberSecurity")) {
129    $("#popupcs").css("display", "block")
130}
131
132$('#popupmn #close_popupmn').on('click', function() {
133    setKaminoPopinEvents("Kamino_popin_MagazineNumerique", "true");
134    $("#popupmn").remove();
135});
136if (!getKaminoPopinEvents("Kamino_popin_MagazineNumerique")) {
137    $("#popupmn").css("display", "block")
138}
139
140$('#popupInnovationIt #close_popupmn').on('click', function() {
141    setKaminoPopinEvents("Kamino_popin_InnovationIt", "true");
142    $("#popupInnovationIt").remove();
143});
144if (!getKaminoPopinEvents("Kamino_popin_InnovationIt")) {
145    $("#popupInnovationIt").css("display", "block")
146}
147
148$('#popupCloudEvent #close_popupmn').on('click', function() {
149    setKaminoPopinEvents("Kamino_popin_CloudEvent", "true");
150    $("#popupCloudEvent").remove();
151});
152if (!getKaminoPopinEvents("Kamino_popin_CloudEvent")) {
153    $("#popupCloudEvent").css("display", "block")
154}
155
156$('#popup-B-for-good #close_popupmn').on('click', function() {
157    setKaminoPopinEvents("Kamino_popin_CloudEvent", "true");
158    $("#popup-B-for-good").remove();
159});
160if (!getKaminoPopinEvents("Kamino_popin_CloudEvent")) {
161    $("#popup-B-for-good").css("display", "block")
162}
163
164$('#popup-workplace #close_popupmn').on('click', function() {
165    setKaminoPopinEvents("Kamino_popin_Workplace", "true");
166    $("#popup-workplace").remove();
167});
168if (!getKaminoPopinEvents("Kamino_popin_Workplace")) {
169    $("#popup-workplace").css("display", "block")
170}
171
172$('#popup-saas #close_popupmn').on('click', function() {
173    setKaminoPopinEvents("Kamino_popin_Saas", "true");
174    $("#popup-saas").remove();
175});
176if (!getKaminoPopinEvents("Kamino_popin_Saas")) {
177    $("#popup-saas").css("display", "block")
178}
179
180$('#popup-data #close_popupmn').on('click', function() {
181    setKaminoPopinEvents("Kamino_popin_Data", "true");
182    $("#popup-data").remove();
183});
184if (!getKaminoPopinEvents("Kamino_popin_Data")) {
185    $("#popup-data").css("display", "block")
186}
187
188$('#popup-data-es #close_popupmn').on('click', function() {
189    setKaminoPopinEvents("Kamino_popin_DataDay", "true");
190    $("#popup-data-es").remove();
191});
192if (!getKaminoPopinEvents("Kamino_popin_DataDay")) {
193    $("#popup-data-es").css("display", "block")
194}
195
196$('#default-popup #close_popupmn').on('click', function() {
197    setKaminoPopinEvents("Kamino_popin_Workplace", "true");
198    $("#default-popup").remove();
199});
200if (!getKaminoPopinEvents("Kamino_popin_Workplace")) {
201    $("#default-popup").css("display", "block")
202}
203
204});

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.