PageSourceSearch

https://macleanfh.ca/wp-content/plugins/blog-designer/js/designer.js

js macleanfh.ca collected 2026-10-04 10:09:03 UTC 4,055 bytes, 96 lines download raw bytes

1jQuery(document).ready(function ($) {    
2    $(document).on('click', '.social-component .bd-social-share', function (e) {
3        e.preventDefault();
4        if($(this).data('share') == 'facebook') {
5            var $href = $(this).data('href');
6            var $url = $(this).data('url');
7            
8            var $link = $href + '?u=' + $url;
9            window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
10        }
11        
12        if($(this).data('share') == 'linkedin') {
13            var $href = $(this).data('href');
14            var $url = $(this).data('url');
15            
16            var $link = $href + '?url=' + $url;
17            window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
18        }
19        
20        if($(this).data('share') == 'twitter') {
21            var $href = $(this).data('href');
22            var $text = $(this).data('text');
23            var $url = $(this).data('url');
24            
25            var $link = $href + '?text=' + $text + '&url=' + $url;
26            window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
27        }
28        
29        if($(this).data('share') == 'pinterest') {
30            var $href = $(this).data('href');
31            var $url = $(this).data('url');
32            var $media = $(this).data('media');
33            var $description = $(this).data('description');
34            
35            var $link = $href + '?url=' + $url + '&media=' + $media + '&description=' + $description;
36            window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes');
37        }
38        
39    });
40    bd_get_boxy_clean_height();
41});
42jQuery(window).resize(function () { 
43    bd_get_boxy_clean_height();
44});
45
46function bd_get_boxy_clean_height() {
47    var divs = jQuery(".boxy-clean li.blog_wrap").not('.first_post');
48    if (jQuery(window).width() > 980) {
49        var column = 4;
50        if (divs.hasClass('three_column')) {
51            column = 3;
52        } else if (divs.hasClass('two_column')) {
53            column = 2;
54        } else if (divs.hasClass('one_column')) {
55            column = 1;
56        }
57    } else if (jQuery(window).width() <= 980 && jQuery(window).width() > 720) {
58        var column = 4;
59        if (divs.hasClass('three_column_ipad')) {
60            column = 3;
61        } else if (divs.hasClass('two_column_ipad')) {
62            column = 2;
63        } else if (divs.hasClass('one_column_ipad')) {
64            column = 1;
65        }
66    } else if (jQuery(window).width() <= 720 && jQuery(window).width() > 480) {
67        var column = 4;
68        if (divs.hasClass('three_column_tablet')) {
69            column = 3;
70        } else if (divs.hasClass('two_column_tablet')) {
71            column = 2;
72        } else if (divs.hasClass('one_column_tablet')) {
73            column = 1;
74        }
75    } else if (jQuery(window).width() <= 480) {
76        var column = 4;
77        if (divs.hasClass('one_column_mobile')) {
78            column = 3;
79        } else if (divs.hasClass('two_column_mobile')) {
80            column = 2;
81        } else if (divs.hasClass('three_column_mobile')) {
82            column = 1;
83        }
84    }
85    jQuery(".boxy-clean li.blog_wrap").removeAttr('style');
86
87    for (var i = 0; i < divs.length; i += column) {
88        var heights = jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).map(function () {
89            return jQuery(this).height();
90        }).get();
91        var maxHeight = Math.max.apply(null, heights);
92        if (screen.width > 640) {
93            jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).css('height', maxHeight + 150);
94        }
95    }
96}

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.