PageSourceSearch

https://paynesharborviewinn.com/wp-content/plugins/everest-gallery/js/eg-frontend.js?ver=1.0.7

js paynesharborviewinn.com collected 2026-09-26 16:37:03 UTC 28,957 bytes, 634 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    function eg_reset_data_index(selector) {
4        var count = 0;
5        var total_items = selector.closest('.eg-wrap').find('a[data-lightbox-type]').length;
6        selector.closest('.eg-wrap').find('a[data-lightbox-type]').each(function () {
7            count++;
8
9            $(this).attr('data-index', count);
10            $(this).data('index', count);
11            $(this).attr('data-total-items', total_items);
12            $(this).data('total-items', total_items);
13        });
14    }
15    function eg_initialize_lightbox() {
16        $('.eg-wrap').each(function () {
17            var selector = $(this);
18            var lightbox_status = selector.data('lightbox-status');
19            if (lightbox_status) {
20                var lightbox_type = $(this).data('lightbox-type');
21                switch (lightbox_type) {
22                    case 'pretty_photo':
23                        var theme = selector.data('pretty_photo-theme');
24                        var social_tools = selector.data('pretty_photo-social');
25                        if (social_tools) {
26                            selector.find("a[data-lightbox-type='pretty_photo']").prettyPhoto({
27                                theme: theme
28                            });
29                        } else {
30                            selector.find("a[data-lightbox-type='pretty_photo']").prettyPhoto({
31                                theme: theme,
32                                social_tools: false
33                            });
34                        }
35                        break;
36                    case 'colorbox':
37                        var transition_type = selector.data('colorbox-transition');
38                        selector.find("a[data-lightbox-type='colorbox']").colorbox({height: '90%', transition: transition_type});
39                        break;
40                    case 'magnific_popup':
41                        selector.find("a[data-lightbox-type='magnific_popup']").magnificPopup({
42                            type: 'image',
43                            gallery: {enabled: true}
44                        });
45                        break;
46                    case 'photoswipe':
47                        if ($('.pswp').length == 0) {
48
49                        }
50                        break;
51                }
52            }
53        });
54    }
55
56    /*
57     * Builds Pagination Links
58     *
59     * @param {int} current_page
60     * @param {int} total_page
61     * @param {int} gallery_id
62     * @param {string} layout_type
63     * @return {string}
64     */
65    function build_pagination_html(current_page, total_page, gallery_id, layout_type) {
66        var pagination_html = '';
67        if (current_page > 1) {
68            pagination_html += '<li class="eg-previous-page-wrap"><a href="javascript:void(0);" class="eg-previous-page" data-total-page="' + total_page + '" data-layout-type="' + layout_type + '" data-gallery-id="' + gallery_id + '">&lt;</a></li>';
69        }
70        var upper_limit = current_page + 2;
71        var lower_limit = current_page - 2;
72        if (upper_limit > total_page) {
73            upper_limit = total_page;
74        }
75
76        if (lower_limit < 1) {
77            lower_limit = 1;
78        }
79        if (upper_limit - lower_limit < 5 && upper_limit - 4 >= 1) {
80            lower_limit = upper_limit - 4;
81        }
82        if (upper_limit < 5 && total_page >= 5) {
83            upper_limit = 5;
84        }
85
86        for (var page_count = lower_limit; page_count <= upper_limit; page_count++) {
87            var page_class = (current_page == page_count) ? 'eg-current-page eg-page-link' : 'eg-page-link';
88            pagination_html += '<li><a href="javascript:void(0);" data-total-page="' + total_page + '" data-page-number="' + page_count + '" class="' + page_class + '" data-layout-type="' + layout_type + '" data-gallery-id="' + gallery_id + '">' + page_count + '</a></li>';
89        }
90        if (current_page < total_page) {
91            pagination_html += '<li class="eg-next-page-wrap"><a href="javascript:void(0);" data-total-page="' + total_page + '" class="eg-next-page" data-layout-type="' + layout_type + '" data-gallery-id="' + gallery_id + '">&gt;</a></li>';
92        }
93        return pagination_html;
94    }
95
96
97    eg_initialize_lightbox();
98    $('body').on('click', '.eg-zoom', function () {
99        $(this).closest('.eg-each-item').find('a[data-lightbox-type]').click();
100    });
101    $('body').on('click', '.eg-page-link', function () {
102        var selector = $(this);
103        selector.closest('.eg-pagination-block').find('.eg-page-link').removeClass('eg-current-page');
104        $(this).addClass('eg-current-page');
105        var layout_type = $(this).data('layout-type');
106        var page_num = $(this).data('page-number');
107        var gallery_id = $(this).data('gallery-id');
108        var total_page = $(this).data('total-page');
109        $.ajax({
110            type: 'post',
111            url: eg_frontend_js_object.ajax_url,
112            data: {
113                action: 'eg_pagination_action',
114                _wpnonce: eg_frontend_js_object.ajax_nonce,
115                layout_type: layout_type,
116                page_num: page_num,
117                gallery_id: gallery_id
118            },
119            beforeSend: function (xhr) {
120                selector.closest('.eg-pagination-block').find('.eg-ajax-loader').show();
121            },
122            success: function (response) {
123                if (selector.closest('.eg-wrap').find('.eg-filter-wrap').length > 0) {
124                    selector.closest('.eg-wrap').find('.eg-filter-trigger[data-filter-key="all"]').click();
125                }
126                selector.closest('.eg-pagination-block').find('.eg-ajax-loader').hide();
127                if (layout_type == 'masonary') {
128                    var masonary_id = selector.closest('.eg-masonary-wrap').find('.eg-masonary-items-wrap').data('masonary-id');
129                    masonary_obj[masonary_id].isotope('destroy');
130                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response);
131                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').imagesLoaded(function () {
132                        $('.eg-masonary-items-wrap').isotope({
133                            itemSelector: '.eg-each-item',
134                            percentPosition: true,
135                            masonry: {
136                                // use element for option
137                                columnWidth: '.eg-each-item'
138                            }
139                        });
140                    });
141
142                } else {
143                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response);
144                }
145                eg_initialize_lightbox();
146                var pagination_html = build_pagination_html(page_num, total_page, gallery_id, layout_type);
147                selector.closest('.eg-wrap').find('.eg-pagination-block ul').html(pagination_html);
148            }
149        });
150    });
151
152    /**
153     * Load More Action
154     *
155     * @since 1.0.0
156     */
157    $('.eg-load-more-trigger').click(function () {
158        var selector = $(this);
159        var masonary_id = selector.closest('.eg-masonary-wrap').find('.eg-masonary-items-wrap').data('masonary-id');
160        var layout_type = $(this).data('layout-type');
161        var page_num = $(this).data('page-number');
162        var gallery_id = $(this).data('gallery-id');
163        var total_page = $(this).data('total-page');
164        var next_page = parseInt(page_num) + 1;
165        if (next_page <= total_page) {
166            $.ajax({
167                type: 'post',
168                url: eg_frontend_js_object.ajax_url,
169                data: {
170                    action: 'eg_pagination_action',
171                    _wpnonce: eg_frontend_js_object.ajax_nonce,
172                    layout_type: layout_type,
173                    page_num: next_page,
174                    gallery_id: gallery_id
175                },
176                beforeSend: function (xhr) {
177                    selector.hide();
178                    selector.closest('.eg-load-more-block').find('.eg-ajax-loader').show();
179                },
180                success: function (response) {
181                    selector.data('page-number', next_page);
182                    selector.closest('.eg-load-more-block').find('.eg-ajax-loader').hide();
183                    if (selector.closest('.eg-wrap').find('.eg-filter-wrap').length > 0) {
184                        selector.closest('.eg-wrap').find('.eg-filter-trigger[data-filter-key="all"]').click();
185                    }
186
187                    if (layout_type == 'masonary') {
188                        var $items = $(response);
189                        masonary_obj[masonary_id].append($items).isotope('appended', $items);
190                        masonary_obj[masonary_id].imagesLoaded(function () {
191                        })
192                                .done(function (instance) {
193                                    console.log('all images successfully loaded');
194                                    selector.closest('.ap_pagination').find('.ap_wait_loader').hide();
195                                    selector.show();
196                                    masonary_obj[masonary_id].isotope('reloadItems').isotope();
197                                })
198                                .fail(function () {
199                                    console.log('all images loaded, at least one is broken');
200
201
202                                    masonary_obj[masonary_id].isotope('reloadItems').isotope();
203                                })
204                                .progress(function (instance, image) {
205                                });
206
207                    } else {
208                        selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').append(response);
209                    }
210                    eg_reset_data_index(selector);
211                    eg_initialize_lightbox();
212                    if (next_page == total_page) {
213                        selector.remove();
214                    } else {
215
216                        selector.show();
217                    }
218                }
219            });
220        } else {
221            selector.remove();
222        }
223    });
224    var masonary_obj = [];
225    $('.eg-masonary-items-wrap').each(function () {
226        var $selector = $(this);
227        var masonary_id = $(this).data('masonary-id');
228        masonary_obj[masonary_id] = $selector.imagesLoaded(function () {
229            masonary_obj[masonary_id].isotope({
230                itemSelector: '.eg-each-item',
231                percentPosition: true,
232                masonry: {
233                    // use element for option
234                    columnWidth: '.eg-each-item'
235                }
236            });
237        });
238    });
239    $('.eg-filter-trigger').click(function () {
240        var selector = $(this);
241        var filter_key = selector.data('filter-key');
242        var layout_type = selector.data('layout-type');
243        selector.closest('.eg-filter-wrap').find('.eg-filter-trigger').removeClass('eg-active-filter');
244        selector.addClass('eg-active-filter');
245        if (layout_type == 'grid') {
246            if (filter_key == 'all') {
247                selector.closest('.eg-wrap').find('.eg-each-item').removeClass('eg-hidden-grid').addClass('eg-visible-grid').show();
248
249            } else {
250                selector.closest('.eg-wrap').find('.eg-each-item').addClass('eg-hidden-grid').removeClass('eg-visible-grid').hide();
251                selector.closest('.eg-wrap').find('.' + filter_key).removeClass('eg-hidden-grid').addClass('eg-visible-grid').show();
252
253            }
254        } else if (layout_type == 'masonary') {
255
256            filterValue = (filter_key == 'all') ? '*' : '.' + filter_key;
257            var masonary_id = selector.closest('.eg-masonary-wrap').find('.eg-masonary-items-wrap').data('masonary-id');
258            masonary_obj[masonary_id].isotope({filter: filterValue});
259        }
260    });
261    /**
262     * Slideshow Layout initialization
263     *
264     * @since 1.0.0
265     */
266    var slideshow_obj = [];
267    $('.eg-slideshow-items-wrap').each(function () {
268        var selector = $(this);
269        var pause_duration = selector.data('pause-duration');
270        var transition_duration = selector.data('transition-duration');
271        var mode = selector.data('mode');
272        var next_previous_controls = selector.data('next-previous-controls');
273        var play_pause_controls = selector.data('play-pause-controls');
274        var auto_start = selector.data('auto-start');
275        var adaptive_height = selector.data('adaptive-height');
276        var pager = selector.data('pager');
277        var pager_type = selector.data('pager-type');
278        var slideshow_id = selector.data('slideshow-id');
279        slideshow_obj[slideshow_id] = selector.bxSlider({
280            mode: mode,
281            controls: next_previous_controls,
282            auto: auto_start,
283            pause: pause_duration,
284            pager: pager,
285            pagerType: pager_type,
286            autoControls: play_pause_controls,
287            speed: transition_duration,
288            autoHover: true,
289            adaptiveHeight: adaptive_height,
290            autoControlsCombine: true
291        });
292        // console.log(slideshow_obj);
293
294    });
295    /**
296     * Flimstrip Layout initialization
297     *
298     * @since 1.0.0
299     */
300    var filmstrip_obj = [];
301    $('.eg-filmstrip-items-wrap').each(function () {
302        var selector = $(this);
303        var pause_duration = selector.data('pause-duration');
304        var transition_duration = selector.data('transition-duration');
305        var mode = selector.data('mode');
306        var next_previous_controls = selector.data('next-previous-controls');
307        var play_pause_controls = selector.data('play-pause-controls');
308        var auto_start = selector.data('auto-start');
309        var adaptive_height = selector.data('adaptive-height');
310        var pager = selector.data('pager');
311        var pager_type = selector.data('pager-type');
312        var filmstrip_id = selector.data('filmstrip-id');
313        filmstrip_obj[filmstrip_id] = selector.bxSlider({
314            mode: mode,
315            controls: next_previous_controls,
316            auto: auto_start,
317            pause: pause_duration,
318            pager: true,
319            autoControls: play_pause_controls,
320            speed: transition_duration,
321            autoHover: true,
322            touchEnabled:false,
323            pagerCustom: '#eg-pager-' + filmstrip_id,
324            adaptiveHeight: adaptive_height,
325            onSlideBefore: function ($slideElement, oldIndex, newIndex) {
326                selector.closest('.eg-filmstrip-outer-wrap').find('.eg-filmstrip-pager a').each(function () {
327                    if ($(this).data('slide-index') == newIndex) {
328                        $(this).addClass('eg-active-filmstrip');
329                    } else {
330                        $(this).removeClass('eg-active-filmstrip');
331                    }
332                });
333            }
334        });
335        // console.log(filmstrip_obj);
336
337    });
338    /**
339     * Filmstrip Pager Slider initialization
340     *
341     * @since 1.0.0
342     */
343
344    $('.eg-filmstrip-pager').each(function () {
345        var min_slides = $(this).data('min-slides');
346        var max_slides = $(this).data('max-slides');
347        var slide_width = $(this).data('slide-width');
348        var move_slides = $(this).data('move-slides');
349        $(this).bxSlider({
350            minSlides: min_slides,
351            maxSlides: max_slides,
352            slideWidth: slide_width,
353            slideMargin: 5,
354            moveSlides: move_slides,
355            pager: false,
356            touchEnabled:false
357
358        });
359    });
360
361
362    /**
363     * Carousel initialization
364     *
365     * @since 1.0.0
366     */
367    $('.eg-carousel-items-wrap').each(function () {
368        var selector = $(this);
369        var pause_duration = selector.data('pause-duration');
370        var controls = selector.data('controls');
371        var auto_start = selector.data('auto-start');
372        var min_slides = $(this).data('min-slides');
373        var max_slides = $(this).data('max-slides');
374        var slide_width = $(this).data('slide-width');
375        var move_slides = $(this).data('move-slides');
376        $(this).bxSlider({
377            controls: controls,
378            auto: auto_start,
379            pause: pause_duration,
380            minSlides: min_slides,
381            maxSlides: max_slides,
382            slideWidth: slide_width,
383            slideMargin: 5,
384            moveSlides: move_slides,
385            pager: true,
386            autoHover: true
387        });
388    });
389    /**
390     * Next Page Pagination
391     *
392     * @since 1.0.0
393     */
394    $('body').on('click', '.eg-next-page,.eg-previous-page', function () {
395        var selector = $(this);
396        var layout_type = $(this).data('layout-type');
397        var gallery_id = $(this).data('gallery-id');
398        var total_page = $(this).data('total-page');
399        var current_page = $(this).closest('.eg-pagination-block').find('.eg-current-page').data('page-number');
400        var next_page = parseInt(current_page) + 1;
401        var previous_page = parseInt(current_page) - 1;
402        if (selector.hasClass('eg-previous-page')) {
403            current_page = previous_page;
404        } else {
405            current_page = next_page;
406        }
407
408        $.ajax({
409            type: 'post',
410            url: eg_frontend_js_object.ajax_url,
411            data: {
412                action: 'eg_pagination_action',
413                _wpnonce: eg_frontend_js_object.ajax_nonce,
414                layout_type: layout_type,
415                page_num: current_page,
416                gallery_id: gallery_id
417            },
418            beforeSend: function (xhr) {
419                selector.closest('.eg-pagination-block').find('.eg-ajax-loader').show();
420            },
421            success: function (response) {
422                selector.closest('.eg-pagination-block').find('.eg-ajax-loader').hide();
423                if (selector.closest('.eg-wrap').find('.eg-filter-wrap').length > 0) {
424                    selector.closest('.eg-wrap').find('.eg-filter-trigger[data-filter-key="all"]').click();
425                }
426
427
428                if (layout_type == 'masonary') {
429                    var masonary_id = selector.closest('.eg-masonary-wrap').find('.eg-masonary-items-wrap').data('masonary-id');
430                    masonary_obj[masonary_id].isotope('destroy');
431                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response);
432                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').imagesLoaded(function () {
433                        $('.eg-masonary-items-wrap').isotope({
434                            itemSelector: '.eg-each-item',
435                            percentPosition: true,
436                            masonry: {
437                                // use element for option
438                                columnWidth: '.eg-each-item'
439                            }
440                        });
441                    });
442                } else {
443                    selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response);
444                }
445                eg_initialize_lightbox();
446                var pagination_html = build_pagination_html(current_page, total_page, gallery_id, layout_type);
447                selector.closest('.eg-wrap').find('.eg-pagination-block ul').html(pagination_html);
448            }
449        });
450    });
451
452    /**
453     * Everest Lightbox Initialization
454     *
455     * @since 1.0.0
456     */
457    $('body').on('click', 'a[data-lightbox-type="everest_lightbox"]', function (e) {
458        var lightbox_status = $(this).closest('.eg-wrap').data('lightbox-status');
459        if (lightbox_status) {
460            e.preventDefault();
461            var item_type = $(this).data('item-type');
462            var image_title = $(this).find('img').attr('alt');
463            var image_caption = $(this).attr('title');
464            var item_index = $(this).data('index');
465            var total_items = $(this).data('total-items');
466            var gallery_id = $(this).closest('.eg-wrap').data('gallery-id');
467            var lightbox_theme = $(this).closest('.eg-wrap').data('lightbox-theme');
468            var lightbox_themes = ['black', 'white', 'blue', 'grey'];
469            for (var i = 0; i < lightbox_themes.length; i++) {
470                $('.eg-everest-lightbox-overlay').removeClass('eg-' + lightbox_themes[i] + '-lightbox');
471            }
472            $('.eg-everest-lightbox-overlay').addClass('eg-' + lightbox_theme + '-lightbox');
473            $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('current-index', item_index);
474            $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('gallery-id', gallery_id);
475            $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('total-items', total_items);
476            $('.eg-everest-lightbox-caption').html(image_title);
477            $('.eg-everest-lightbox-description').html(image_caption);
478            switch (item_type) {
479                case 'image':
480                case 'instagram':
481                case 'post':
482                    var image_url = $(this).attr('href');
483                    $('.eg-everest-lightbox-source-holder').html('<img src="' + image_url + '"/>');
484
485                    $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
486
487                    var $image_holder = $('.eg-everest-lightbox-source-holder');
488                    $image_holder.imagesLoaded(function () {
489                        var image_height = $('.eg-everest-lightbox-source-holder img').height();
490                        var image_width = $('.eg-everest-lightbox-source-holder img').width();
491                        var window_height = $(window).height();
492                        var window_width = $(window).width();
493                        var max_height = window_height * 0.8;
494                        if (image_height > max_height) {
495                            var ratio = image_width / image_height;
496                            var image_width = max_height * ratio;
497                            $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').animate({
498                                width: image_width
499                            }, 500);
500                            $('.eg-everest-lightbox-source-holder img').animate({
501                                width: image_width,
502                                opacity: 1
503                            }, 500);
504                        } else {
505
506                            var lightbox_width = $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').css('width');
507                            var half_width = 0.5 * window_width;
508                            if (parseInt(lightbox_width) != parseInt(half_width)) {
509                                $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').animate({
510                                    width: '50%'
511                                }, 500);
512                            }
513
514                        }
515                    });
516
517
518                    break;
519                case 'video':
520                    var video_type = $(this).data('video-type');
521                    var video_url = $(this).data('video-url');
522                    var self_video_url = $(this).data('self-video-url');
523                    switch (video_type) {
524                        case 'youtube':
525                            if (video_url == '') {
526                                alert(eg_frontend_js_object.strings.video_missing);
527                            } else {
528                                video_url_array = video_url.split('?v=');
529                                video_id = video_url_array.pop();
530                                video_html = '<iframe width="100%" height="360" src="https://www.youtube.com/embed/' + video_id + '" frameborder="0" allowfullscreen></iframe>';
531                                $('.eg-everest-lightbox-source-holder').html(video_html);
532                                $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
533                            }
534                            break;
535                        case 'vimeo':
536                            if (video_url == '') {
537                                alert(eg_frontend_js_object.strings.video_missing);
538                            } else {
539                                video_url_array = video_url.split('/');
540                                video_id = video_url_array.pop();
541                                video_html = '<iframe src="https://player.vimeo.com/video/' + video_id + '" width="100%" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
542                                $('.eg-everest-lightbox-source-holder').html(video_html);
543                                $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
544                            }
545                            break;
546                        case 'self-hosted':
547                            if (self_video_url == '') {
548                                alert(eg_frontend_js_object.strings.video_missing);
549                            } else {
550                                video_html = '<video width="100%" height="360" controls><source src="' + self_video_url + '"></video>';
551                                $('.eg-everest-lightbox-source-holder').html(video_html);
552                                $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
553                            }
554                            break;
555                    }
556                    break;
557                case 'audio':
558                    var audio_type = $(this).data('audio-type');
559                    var audio_url = $(this).data('audio-url');
560                    var self_audio_url = $(this).data('self-audio-url');
561                    switch (audio_type) {
562                        case 'soundcloud':
563                            if (audio_url == '') {
564                                alert(eg_frontend_js_object.strings.audio_missing);
565                            } else {
566                                audio_html = ' <iframe width="100%" scrolling="no" frameborder="no" src="' + audio_url + '"></iframe>';
567                                $('.eg-everest-lightbox-source-holder').html(audio_html);
568                                $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
569                            }
570                            break;
571                        case 'self-hosted':
572                            if (self_audio_url == '') {
573                                alert(eg_frontend_js_object.strings.audio_missing);
574                            } else {
575                                audio_html = '<audio width="100%" height="360" controls><source src="' + self_audio_url + '"></audio>';
576                                $('.eg-everest-lightbox-source-holder').html(audio_html);
577                                $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active');
578                            }
579                            break;
580                    }
581                    break;
582            }
583        }
584    });
585
586    /**
587     * Everst Lightbox initialization
588     *
589     * @since 1.0.0
590     */
591    $('.eg-everest-lightbox-overlay .eg-close-pop-up').click(function () {
592        $('.eg-everest-lightbox-overlay').removeClass('eg-overlay-active');
593        setTimeout(function () {
594            $('.eg-everest-lightbox-source-holder').html('');
595        }, 500)
596        //  $('.eg-everest-lightbox-overlay').hide();
597    });
598
599    /**
600     * Everest Lightbox Previous Trigger
601     *
602     * @since 1.0.0
603     */
604    $('.eg-everest-lightbox-previous').click(function () {
605        var current_index = $(this).data('current-index');
606        var total_items = $(this).data('total-items');
607        var previous_index = parseInt(current_index) - 1;
608        var click_index = (previous_index < 1) ? total_items : previous_index;
609        var gallery_id = $(this).data('gallery-id');
610        $('.eg-wrap[data-gallery-id="' + gallery_id + '"] a[data-index="' + click_index + '"]').click();
611    });
612
613    /**
614     * Everest Lightbox Next Trigger
615     *
616     * @since 1.0.0
617     */
618    $('.eg-everest-lightbox-next').click(function () {
619
620        var current_index = $(this).data('current-index');
621        var total_items = $(this).data('total-items');
622        var next_index = parseInt(current_index) + 1;
623        var click_index = (next_index > total_items) ? 1 : next_index;
624        var gallery_id = $(this).data('gallery-id');
625        $('.eg-wrap[data-gallery-id="' + gallery_id + '"] a[data-index="' + click_index + '"]').click();
626    });
627
628    $('.eg-everest-lightbox-inner-overlay').click(function () {
629        $('.eg-everest-lightbox-overlay .eg-close-pop-up').click();
630    });
631
632
633
634});

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.