PageSourceSearch

https://www.montgeron.fr/wp-content/themes/montgeron/assets/js/theme.js?ver=1555515538

js montgeron.fr collected 2026-10-02 12:07:28 UTC 3,102 bytes, 84 lines download raw bytes

1// Supprimer les styles par défaut de mailster (déjà gérer avec le scss)
2$('style#mailster-form-default').remove();
3
4// Type your custom js here
5    /*
6    * Gestion de l'élement Auto Summary
7    */
8    function fixAutoSummary() {
9
10        var $autoSummary = $('#auto-summary'),
11            $article = $('.article, .page-list'),
12            breakpoint = $autoSummary.data('breakpoint');
13
14            if (typeof breakpoint == 'undefined') {
15                breakpoint = 1200;
16            }
17
18        $autoSummary.each(function(index, el) {
19            var $el = $(el);
20
21            if ( $el.parents('.modal').length ) {
22
23                $el
24                    .removeData("bs.affix")
25                    .removeClass("affix affix-top affix-bottom")
26                    .removeAttr("style");
27                    
28            } else {
29
30                // Si il y a un article sur la page
31                if ($article.length) {
32
33                    var articleHeaderHeight = $('.article .article-header, .page-header').outerHeight(),
34                        articleContentHeight = $('.article .article-content, .page-content').outerHeight(),
35                        articleHeight = (articleHeaderHeight + articleContentHeight),
36                        articleTop = $article.offset().top,
37                        articleBottom = articleTop + articleHeight,
38                        documentLength = $('#layout-container').height(),
39
40                        aTop = 160,
41                        aBottom = $('#layout-footer').outerHeight() + 60;
42
43                    // Si l'article fait plus de 360 pixels de hauteur
44                    if ( articleHeight > 360 ) {
45
46                        $el
47                            .affix({
48                                offset: {
49                                    top: aTop,
50                                    bottom: aBottom,
51                                }
52                            }).on('affix.bs.affix', function () { // before affix
53                                $(this).css({
54                                    /*'top': headerHeight,*/    // for fixed height
55                                    'width': $(this).outerWidth()  // variable widths
56                                });
57                            });
58
59
60                            $el.on('click', 'a', function(event) {
61                                event.preventDefault();
62                                var href = $(this).attr('href');
63                                $('html,body').stop().animate(
64                                    {
65                                        scrollTop: $(href).offset().top - 200
66                                    },'slow')
67                            });
68
69                    } else {
70                        $el.addClass('affix-top');
71                    }
72
73                }
74            }
75        });
76    }
77
78    $(window).on('load', function(event) {
79        $(window).on('resize', throttle(function(e){
80            if ( $('#auto-summary').length > 0 ) {
81                fixAutoSummary();
82            }
83        }, 100)).resize();
84    });

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.