PageSourceSearch

https://saint-genes-de-lombaud.fr/wp-content/plugins/blog-designer/public/js/designer.js?ver=1.0

js saint-genes-de-lombaud.fr collected 2026-10-02 23:55:49 UTC 10,269 bytes, 226 lines download raw bytes

1jQuery(document).ready(function($) {
2    if (jQuery('.masonry').length > 0) {
3        setTimeout(function() {
4            jQuery('.masonry').imagesLoaded(function() {
5                jQuery('.masonry').masonry({
6                    columnWidth: 0,
7                    itemSelector: '.blog_masonry_item',
8                    isResizable: true
9                });
10            });
11        }, 500);
12    }
13    $(document).on('click', '.social-component .bd-social-share', function(e) {
14        e.preventDefault();
15        if ($(this).data('share') == 'facebook') {
16            var $href = $(this).data('href');
17            var $url = $(this).data('url');
18
19            var $link = $href + '?u=' + $url;
20            window.open($link, 'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
21        }
22
23        if ($(this).data('share') == 'linkedin') {
24            var $href = $(this).data('href');
25            var $url = $(this).data('url');
26
27            var $link = $href + '?url=' + $url;
28            window.open($link, 'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
29        }
30
31        if ($(this).data('share') == 'twitter') {
32            var $href = $(this).data('href');
33            var $text = $(this).data('text');
34            var $url = $(this).data('url');
35
36            var $link = $href + '?text=' + $text + '&url=' + $url;
37            window.open($link, 'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
38        }
39
40        if ($(this).data('share') == 'pinterest') {
41            var $href = $(this).data('href');
42            var $url = $(this).data('url');
43            var $media = $(this).data('media');
44            var $description = $(this).data('description');
45
46            var $link = $href + '?url=' + $url + '&media=' + $media + '&description=' + $description;
47            window.open($link, 'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
48        }
49
50    });
51    //For load more functionality
52    jQuery(".bdp-load-more-btn").click(function() {
53        var $data = jQuery(this).closest('.bdp_wrapper').find('form#bdp-load-more-hidden').serialize();
54        bdp_load_more_ajax($data);
55    });
56    bd_get_boxy_clean_height();
57    wpspw_pro_post_ticker_init();
58});
59jQuery(window).resize(function() {
60    bd_get_boxy_clean_height();
61});
62
63function bdp_load_more_ajax($data) {
64    var layout_id_class = ".bdp_wrapper";
65    var paged = parseInt(jQuery(layout_id_class + ' #bdp-load-more-hidden #paged').val());
66    var this_year = jQuery(layout_id_class + ' #bdp-load-more-hidden #this_year').val();
67    var $timeline_year = jQuery(layout_id_class + ' #bdp-load-more-hidden #timeline_previous_year').val();
68    paged = paged + 1;
69    var max_num_pages = parseInt(jQuery(layout_id_class + ' #bdp-load-more-hidden #max_num_pages').val());
70    jQuery(layout_id_class + ' .bdp-load-more-btn').addClass('loading');
71    jQuery(layout_id_class + ' .bdp-load-more-btn').fadeOut();
72
73    if (paged <= max_num_pages) {
74        jQuery(layout_id_class + ' .loading-image').fadeIn();
75        jQuery.ajax({
76            url: ajaxurl,
77            type: 'POST',
78            data: 'action=get_loadmore_blog&' + $data,
79            cache: false,
80            success: function(response) {
81                var jsmasonry = jQuery(layout_id_class + " .bdp-load-more-pre").find("div");
82
83                // loop through each item to check when it animates
84
85                if (jsmasonry.hasClass('timeline_bg_wrap')) {
86                    jQuery(layout_id_class + ' div.timeline_back').append(response);
87                    var only_year = jQuery(layout_id_class + ' div.timeline_back').find('.timeline_year .only_year');
88                    jQuery(only_year).each(function() {
89                        $timeline_year = jQuery(this).text();
90                    });
91                    jQuery(layout_id_class + ' #bdp-load-more-hidden #timeline_previous_year').val(jQuery.trim($timeline_year));
92                } else if (jsmasonry.hasClass('glossary_cover')) {
93                    jQuery(layout_id_class + ' div.glossary_cover .bdp_glossary').append(response);
94                    jQuery('.masonry').imagesLoaded(function() {
95                        jQuery('.masonry').masonry('reloadItems');
96                        jQuery('.masonry').masonry('layout');
97                    })
98                } else if (jsmasonry.hasClass('boxy-clean')) {
99                    jQuery(layout_id_class + ' .blog_template.boxy-clean > ul').append(response);
100                    bd_get_boxy_clean_height();
101                } else if (jsmasonry.hasClass('media-grid')) {
102                    jQuery(layout_id_class + ' .media-grid-wrapper').append(response);
103                } else if (jsmasonry.hasClass('blog-grid-box')) {
104                    jQuery(layout_id_class + ' .blog_template.blog-grid-box').append(response);
105                } else {
106                    jQuery(layout_id_class + ' div.bdp-load-more-pre').append(response);
107                }
108
109                jQuery(layout_id_class + ' .bdp-load-more-btn').removeClass('loading');
110                jQuery(layout_id_class + ' .loading-image').fadeOut();
111                jQuery(layout_id_class + ' .bdp-load-more-btn').fadeIn();
112                jQuery(layout_id_class + ' #bdp-load-more-hidden #paged').val(paged);
113                jQuery(layout_id_class + ' .edd-no-js').hide();
114                if (paged == max_num_pages)
115                    jQuery(layout_id_class + ' .bdp-load-more-btn').fadeOut();
116            }
117        });
118    }
119    return false;
120}
121
122function bd_get_boxy_clean_height() {
123    var divs = jQuery(".boxy-clean li.blog_wrap").not('.first_post');
124    if (jQuery(window).width() > 980) {
125        var column = 4;
126        if (divs.hasClass('three_column')) {
127            column = 3;
128        } else if (divs.hasClass('two_column')) {
129            column = 2;
130        } else if (divs.hasClass('one_column')) {
131            column = 1;
132        }
133    } else if (jQuery(window).width() <= 980 && jQuery(window).width() > 720) {
134        var column = 4;
135        if (divs.hasClass('three_column_ipad')) {
136            column = 3;
137        } else if (divs.hasClass('two_column_ipad')) {
138            column = 2;
139        } else if (divs.hasClass('one_column_ipad')) {
140            column = 1;
141        }
142    } else if (jQuery(window).width() <= 720 && jQuery(window).width() > 480) {
143        var column = 4;
144        if (divs.hasClass('three_column_tablet')) {
145            column = 3;
146        } else if (divs.hasClass('two_column_tablet')) {
147            column = 2;
148        } else if (divs.hasClass('one_column_tablet')) {
149            column = 1;
150        }
151    } else if (jQuery(window).width() <= 480) {
152        var column = 4;
153        if (divs.hasClass('one_column_mobile')) {
154            column = 3;
155        } else if (divs.hasClass('two_column_mobile')) {
156            column = 2;
157        } else if (divs.hasClass('three_column_mobile')) {
158            column = 1;
159        }
160    }
161    jQuery(".boxy-clean li.blog_wrap").removeAttr('style');
162
163    for (var i = 0; i < divs.length; i += column) {
164        var heights = jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).map(function() {
165            return jQuery(this).height();
166        }).get();
167        var maxHeight = Math.max.apply(null, heights);
168        if (screen.width > 640) {
169            jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).css('height', maxHeight + 30);
170        }
171    }
172}
173
174function wpspw_pro_post_ticker_init() {
175
176    jQuery(".blog-ticker-wrapper").each(function() {
177        var bdsc = {
178            "is_rtl": "0",
179            "no_post_msg": "Sorry, No more post to display."
180        };
181        var s = jQuery(this).attr("id"),
182            t = JSON.parse(jQuery(this).attr("data-conf"));
183        void 0 !== s && "" != s && "undefined" != t && ("italic" == t.font_style && jQuery(this).addClass("blog-ticker-italic"), "bold" == t.font_style && jQuery(this).addClass("bd-bold"), "bold-italic" == t.font_style && jQuery(this).addClass("bd-bold blog-ticker-italic"), jQuery("#" + s).breakingNews({ direction: 1 == bdsc.is_rtl ? "rtl" : "ltr", effect: t.ticker_effect, delayTimer: parseInt(t.speed), scrollSpeed: parseInt(t.scroll_speed), borderWidth: "false" == t.border ? "0px" : "2px", radius: "2px", play: "false" != t.autoplay, stopOnHover: !0 }))
184    })
185}
186
187jQuery(document).ready(function() {
188    var icon_element = jQuery('.slides.design2 .mauthor .author');
189    var date_element = jQuery('.slides.design2 .post-date .mdate');
190    icon_element.each(function() {
191        if (jQuery(this).find('i')) {
192            jQuery(this).find('i').remove();
193            jQuery(this).prepend('By');
194        }
195    });
196    date_element.each(function() {
197        if (jQuery(this).find('i')) {
198            jQuery(this).find('i').remove();
199            jQuery(this).prepend('/');
200        }
201    })
202});
203jQuery(document).ready(function() {
204    var element = jQuery('.blog_template.blog-carousel');
205    if (element) {
206        element.parent().addClass('blog-carousel');
207    }
208    var element_grid_box = jQuery('.blog_template.blog-grid-box');
209    var parent_element = jQuery('.bdp_wrapper');
210    if (element_grid_box.length > 0) {
211        parent_element.addClass('blog-grid-box');
212    }
213    jQuery('.blog_template.blog-carousel .slides li').each(function() {
214        if (jQuery(this).find('.bdp-post-image a').length == 0) {
215            jQuery(this).find('.blog_header').css('margin-top', '0px');
216        }
217    });
218    
219    if( jQuery(window).width() < 481 ) {
220        jQuery('.blog_template.boxy-clean .blog_wrap.bdp_blog_template').each(function() {
221            if (jQuery(this).find('.post-media img').length == 0) {
222                jQuery(this).find('.author').hide();
223            }
224        });
225    }
226});

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.