PageSourceSearch

https://goomoolabo.com/blog/wp-content/plugins/formzu-wp/js/trim_f…?ver=1757756353&theme=6.1.21

js goomoolabo.com collected 2026-10-02 14:48:38 UTC 1,956 bytes, 81 lines download raw bytes

1(function($){
2    var $fixed_widgets = $('.formzu-fixed-widget');
3    var $widget;
4    var widget_bottom = {
5        "left": 20,
6        "right": 20
7    };
8    var max_width = {
9        "left": 0,
10        "right": 0
11    };
12    var left_or_right;
13    var widget_height = 0;
14    var widget_width = 0;
15
16    function isRightOrLeft($elem){
17
18        var right = $elem.css('right');
19        var left = $elem.css('left');
20
21        if (right == '0px' && left == '0px') {
22            return false;
23        }
24        if (right == '0px') {
25            return 'right';
26        }
27        if (left == '0px'){
28            return 'left';
29        }
30        return false;
31    }
32
33    for (var i = 0, l = $fixed_widgets.length; i < l; i++) {
34        if (!$fixed_widgets[i]) {
35            continue;
36        }
37
38        $widget = $($fixed_widgets[i]);
39        left_or_right = isRightOrLeft($widget)
40
41        if (!left_or_right) {
42            continue;
43        }
44
45        $widget.css('bottom', widget_bottom[left_or_right]);
46
47        widget_height = $widget.outerHeight(true);
48
49        widget_bottom[left_or_right] += widget_height;
50
51        var user_agent = window.navigator.userAgent.toLowerCase();
52
53        if (user_agent.indexOf('msie') != -1) {//ie6 - ie10
54            widget_width = $widget.width();
55        } else if (user_agent.indexOf('trident/7') != -1) {//ie11
56            widget_width = $widget.width();
57        } else {
58            widget_width = $widget.outerWidth(true);
59        }
60
61        if (max_width[left_or_right] < widget_width) {
62            max_width[left_or_right] = widget_width;
63        }
64    }
65
66    for (var i = 0, l = $fixed_widgets.length; i < l; i++) {
67        if (!$fixed_widgets[i]) {
68            continue;
69        }
70
71        $widget = $($fixed_widgets[i]);
72        left_or_right = isRightOrLeft($widget)
73
74        if (!left_or_right) {
75            continue;
76        }
77
78        $widget.css('width', max_width[left_or_right] + 10);
79    }
80})(jQuery);
81

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.