PageSourceSearch

https://medieninsider.com/wp-content/plugins/newsmax-core/assets/script.js?ver=3.1

js medieninsider.com collected 2026-09-24 10:04:59 UTC 2,488 bytes, 69 lines download raw bytes

1(function($) {
2    "use strict";
3    var newsmax_ruby_shortcodes = {
4        accordion: function() {
5            $('.shortcode-accordion').find('.accordion-item-title').click(function(e) {
6                e.preventDefault();
7                $(this).next().slideToggle(200);
8                $(".accordion-item-content").not($(this).next()).slideUp(200);
9            });
10        },
11
12        fullimg: function() {
13
14            var single_wrapper = $('.single-post-outer');
15            var sidebar = single_wrapper.find('.sidebar-wrap');
16            if (sidebar.length > 0) {
17                return false;
18            }
19
20            var full_image = single_wrapper.find('.shortcode-fullimg');
21            if (full_image.length > 0) {
22
23                var data = newsmax_ruby_shortcodes.fullimg_calc(single_wrapper);
24                full_image.each(function() {
25
26                    var full_image_el = $(this);
27
28                    if (!full_image_el.hasClass('fullimg-loaded')) {
29                        var full_image_el_img = full_image_el.find('img');
30
31                        full_image_el.find('.alignnone').removeClass('alignnone');
32
33                        full_image_el_img.css('width', data['img_width'], 'px !important;');
34                        full_image_el_img.css('margin-left', data['img_margin'], 'px !important;');
35
36                        setTimeout(function() {
37                            full_image_el.addClass('is-img-show fullimg-loaded');
38                        }, 100);
39
40                        $(window).resize(function() {
41                            data = newsmax_ruby_shortcodes.fullimg_calc(single_wrapper);
42                            full_image_el_img.css('width', data['img_width'], 'px !important;');
43                            full_image_el_img.css('margin-left', data['img_margin'], 'px !important;');
44                        });
45                    }
46                })
47            }
48        },
49
50        fullimg_calc: function(wrapper) {
51            var data = [];
52            var wrapper_width = wrapper.outerWidth();
53            var entry_width = wrapper.find('.single-post-body').outerWidth();
54
55            data['img_width'] = wrapper_width;
56            data['img_margin'] = -Math.abs((wrapper_width - entry_width) / 2);
57
58            return data;
59        }
60    };
61
62    $(document).ready(function() {
63        newsmax_ruby_shortcodes.accordion();
64    });
65
66    $(window).load(function() {
67        newsmax_ruby_shortcodes.fullimg();
68    })
69})(jQuery);

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.