PageSourceSearch

https://www.wpserveur.net/wp-content/themes/wpserveur/js/toggle-controls.js?ver=1.0.3

js wpserveur.net collected 2026-10-02 05:03:12 UTC 3,308 bytes, 104 lines download raw bytes

1jQuery(document).ready(function () {
2    /*jQuery("#submit-offre").click(function(){
3        jQuery(".form-container2").slideToggle();
4    });*/
5});
6
7jQuery('.modal-toggle').on('click', function (e) {
8    e.preventDefault();
9    document.body.scrollTop = 0; // For Safari
10    document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
11    jQuery('.modal').toggleClass('is-visible');
12});
13
14jQuery(document).ready(function() {
15
16    // --- Ouvrir/fermer le mini-panier ---
17    jQuery(document).on('click', '.lien-panier', function(e) {
18        e.preventDefault();
19        jQuery('.modal-panier').toggleClass('is-visible-panier');
20    });
21
22    // --- Fermer via overlay ou bouton close ---
23    jQuery(document).on('click', '.modal-close-panier, .modal-overlay-panier', function() {
24        jQuery('.modal-panier').removeClass('is-visible-panier');
25    });
26
27    jQuery(".bloc-blogueur-close").on( 'click', function () {
28        var id = jQuery(this).data('id');
29        jQuery(".bloc-" + id + "-open").slideToggle("slow");
30    });
31});
32
33jQuery(document).ready(function () {
34
35    jQuery(".cross").hide();
36    jQuery("#menu-principal-burger").hide();
37    jQuery(".hamburger").click(function () {
38        jQuery("#menu-principal-burger").slideToggle("slow", function () {
39            jQuery(".hamburger").hide();
40            jQuery(".cross").show();
41        });
42    });
43
44    jQuery(".cross").click(function () {
45        jQuery("#menu-principal-burger").slideToggle("slow", function () {
46            jQuery(".cross").hide();
47            jQuery(".hamburger").show();
48        });
49    });
50
51});
52
53jQuery(document).ready(function () {
54    jQuery('input[type="file"]').change(function (e) {
55        var file = e.target.files[0].name;
56        jQuery('.fakefile').html('<p>' + file + '</p>');
57    });
58
59    jQuery('#cRetour').click(function () {
60        jQuery('html,body').animate({scrollTop: 0}, 'linear');
61        return false;
62    });
63
64    var linkImg = jQuery('.wedocs-single-content a img').parent();
65
66    linkImg.each(function(){
67
68        var parts = jQuery(this).attr('href').split('.');
69        last_part = parts[parts.length - 1];
70        last_part = last_part.toLowerCase();
71
72        var formatsImg = ["tif", "tiff","gif","jpeg",  "jpg",  "jif",  "jfif", "jp2",  "jpx",  "j2k",  "j2c", "fpx", "pcd", "png", "pdf"];
73
74        // On vérifie bien si le lien à comme attribut href une image en checkant l'extension
75        if(formatsImg.indexOf(last_part) !== -1){
76
77            jQuery(this).addClass('lightbox');
78
79        }
80
81    });
82
83    jQuery('a.lightbox').colorbox({maxHeight: '80%', maxWidth: '80%'});
84
85    jQuery('.button-search-mobile').click(function () {
86        jQuery("#searchform").submit();
87    });
88
89    jQuery('.page-template-template-support .button-ticket').on('click', function () {
90        jQuery('html, body').animate({
91            scrollTop: (jQuery("#newsupport").offset().top - 150)
92        }, 2000);
93    });
94
95    /*jQuery("body").click(function () {
96        jQuery(".modal-panier").fadeOut().removeClass("iv-visible-panier");
97    });*/
98
99    jQuery('.single-docs a[href^=\\#]').click(function() {
100        var cible = jQuery(this).attr('href');
101        var hauteur = ( jQuery(cible).offset().top - 200 );
102        jQuery('html, body').animate({scrollTop: hauteur}, 1000);
103    });
104});

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.