PageSourceSearch

https://wildtalesof.com/wp-content/plugins/easy-facebook-likebox/f…/frontend/assets/js/public.js?ver=6.5.7

js wildtalesof.com collected 2026-09-26 19:26:45 UTC 4,356 bytes, 158 lines download raw bytes

1jQuery(document).ready(function($) {
2
3  jQuery('.efbl-popup-carousel-container img').removeAttr('srcset');
4
5  /*
6  *	Check if the like box has loaded. If yes then remove loader and add animation class!
7  */
8
9  if ($('.efbl_feed_wraper .efbl_custom_likebox')[0] ||
10      $('.widget_easy_facebook_page_plugin .efbl-like-box')[0]) {
11
12    if (typeof FB === 'undefined' || FB === null) {
13
14      setTimeout(function() { $('.efbl-loader').remove(); }, 3000);
15
16    }
17    else {
18
19      FB.Event.subscribe('xfbml.render', function(response) {
20
21        var animclasses = $('.efbl-like-box .fb-page').data('animclass');
22
23        $('.efbl-loader').remove();
24
25        $('.efbl-like-box iframe').addClass('animated ' + animclasses);
26
27      });
28
29    }
30  }
31
32  // Magic function that will prepare and render markup.
33  function efbl_render_poup_markup(object) {
34
35    var $story_link = object.data('storylink'),
36        $story_link_text = object.data('linktext'),
37        $caption = object.data('caption'),
38        $image_url = object.data('imagelink'),
39        $iframe_vid_url = object.data('videolink'),
40        $video_url = object.data('video'),
41        $itemnumber = object.data('itemnumber'),
42        $windowWidth = window.innerWidth,
43        $windowHeight = window.innerHeight - 200;
44
45    $('.white-popup .efbl_popup_left_container').css({
46      'width': 'auto',
47      'height': 'auto',
48    });
49
50    $('.efbl_popup_image').css('height', 'auto');
51
52    if ($image_url) {
53      $('#efblcf_holder .efbl_popup_image').attr('src', $image_url);
54      $('#efblcf_holder .efbl_popup_image').css('display', 'block');
55    }
56
57    if ($iframe_vid_url) {
58      $('#efblcf_holder .efbl_popup_if_video').attr('src', $iframe_vid_url);
59      $('#efblcf_holder .efbl_popup_if_video').css({
60        'display': 'block',
61        'width': '720px',
62        'height': '400px',
63      });
64
65    }
66
67    if ($video_url) {
68      $('#efblcf_holder .efbl_popup_video').attr('src', $video_url);
69      $('#efblcf_holder .efbl_popup_video').css('display', 'block');
70      setTimeout(function() {
71        $('#efblcf_holder .efbl_popup_video')[0].play();
72      }, 500);
73
74    }
75
76    //$('.efbl-popup-next').attr('data-itemnumber', $itemnumber+1);
77    //$('.efbl-popup-prev').attr('data-itemnumber', $itemnumber-1);
78
79    $('.efbl_feed_wraper #item_number').val($itemnumber);
80
81    if ($caption) {
82      $('#efblcf_holder .efbl_popupp_footer').
83          html(
84              '<p>' + $caption + ' <br> <a class="efbl_popup_readmore" href="' +
85              $story_link + '" target="_blank">' + $story_link_text +
86              '</a></p>');
87      $('#efblcf_holder .efbl_popupp_footer').css('display', 'block');
88    }
89
90  }
91
92  function reset_popup_holder() {
93    //Clear the container for new instance
94    $('#efblcf_holder .efbl_popup_image').attr('src', '');
95    $('#efblcf_holder .efbl_popup_image').css('display', 'none');
96
97    $('#efblcf_holder .efbl_popup_if_video').attr('src', '');
98    $('#efblcf_holder .efbl_popup_if_video').css('display', 'none');
99
100    $('#efblcf_holder .efbl_popup_video').attr('src', '');
101    $('#efblcf_holder .efbl_popup_video').css('display', 'none');
102
103    $('#efblcf_holder .efbl_popupp_footer').html('');
104    $('#efblcf_holder .efbl_popupp_footer').css('display', 'none');
105  }
106
107  $('.efbl_feed_popup').esfFreePopup({
108    type: 'ajax',
109    tLoading: 'Loading...',
110    preloader: false,
111    mainClass: 'esfp-fade',
112
113    callbacks: {
114
115      ajaxContentAdded: function() {
116        // Ajax content is loaded and appended to DOM
117
118        efbl_render_poup_markup(this.st.el);
119      },
120
121      beforeOpen: function() {
122        // console.log(this.st.el);
123
124        // efbl_render_poup_markup(this.st.el);
125
126      },
127
128      beforeClose: function() {
129
130        reset_popup_holder();
131
132      },
133    },
134
135  });
136
137  $('.efbl_share_links').click(function() {
138    $(this).next('.efbl_links_container').slideToggle('slow');
139  });
140
141  $('.efbl_info').click(function() {
142    $(this).siblings('.efbl_comments_wraper').slideToggle('slow');
143  });
144
145  jQuery(document).
146      on('click', 'div[data-class=\'efbl_redirect_home\']', function(event) {
147
148        window.open(
149            'https://easysocialfeed.com/?utm_campaign=powered-by&utm_medium=link&utm_source=plugin',
150            '_blank');
151      });
152
153  $('.esf-share').click(function(e) {
154    e.preventDefault();
155    $(this).next().slideToggle();
156  });
157
158});

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.