PageSourceSearch

https://laogairesearch.org/wp-content/plugins/stachethemes_event_calendar/front/js/adds/guests.js?ver=7.1.2

js laogairesearch.org collected 2026-10-02 07:20:25 UTC 2,366 bytes, 70 lines download raw bytes

1(function ($) {
2
3    "use strict";
4
5
6    $(document).on('onEventToggleOpen', function (e, data) {
7
8        if ( data.event.guests.length <= 0 ) {
9            return;
10        }
11
12        var $instance = data.$instance;
13
14        var $event = $instance.$events.find('.stec-layout-event.active');
15        var $inner = $event.find('.stec-layout-event-inner-guests');
16        var event = data.event;
17
18        if ( $inner.length <= 0 || !$inner.find('.stec-layout-event-inner-guests-guest-template')[0] ) {
19            return;
20        }
21
22        var template = $inner.find('.stec-layout-event-inner-guests-guest-template')[0].outerHTML;
23        $inner.find('.stec-layout-event-inner-guests-guest-template').remove();
24
25        if ( event.guests.length > 0 ) {
26
27            $(event.guests).each(function (i) {
28
29                var th = this;
30
31                $(template).html(function (index, html) {
32
33                    var lis = [];
34
35                    $(th.links).each(function (pos) {
36                        lis[pos] = '<li class="stec-layout-event-inner-guests-guest-left-avatar-icon-position-' + pos + '"><a href="' + this.link + '"><i class="' + this.ico + '"></i></a></li>';
37                    });
38
39                    var avatar;
40
41                    if ( !th.photo_full ) {
42                        avatar = '<div class="stec-layout-event-inner-guests-guest-left-avatar-default"></div>';
43                    } else {
44                        avatar = '<img src="' + th.photo_full + '" alt="stec_replace_name" >';
45                    }
46
47                    return html
48                            .replace(/stec_replace_ico_position/g, i)
49                            .replace(/stec_replace_avatar/g, avatar)
50                            .replace(/stec_replace_social/g, lis.join(''))
51                            .replace(/stec_replace_name/g, th.name)
52                            .replace(/stec_replace_about/g, th.about);
53
54                })
55                        .removeClass('stec-layout-event-inner-guests-guest-template')
56                        .appendTo($inner);
57
58            });
59
60        }
61
62        // Remove tab preloaders
63        $inner.find('.stec-layout-event-inner-preload-wrap').children().first().unwrap();
64        $inner.find('.stec-layout-event-inner-preload-wrap').remove();
65        $inner.find('.stec-preloader').remove();
66
67    });
68
69
70})(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.