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 + '"><</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 + '">></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 pagerCustom: '#eg-pager-' + filmstrip_id, 323 adaptiveHeight: adaptive_height, 324 onSlideBefore: function ($slideElement, oldIndex, newIndex) { 325 selector.closest('.eg-filmstrip-outer-wrap').find('.eg-filmstrip-pager a').each(function () { 326 if ($(this).data('slide-index') == newIndex) { 327 $(this).addClass('eg-active-filmstrip'); 328 } else { 329 $(this).removeClass('eg-active-filmstrip'); 330 } 331 }); 332 } 333 }); 334 // console.log(filmstrip_obj); 335 336 }); 337 /** 338 * Filmstrip Pager Slider initialization 339 * 340 * @since 1.0.0 341 */ 342 343 $('.eg-filmstrip-pager').each(function () { 344 var min_slides = $(this).data('min-slides'); 345 var max_slides = $(this).data('max-slides'); 346 var slide_width = $(this).data('slide-width'); 347 var move_slides = $(this).data('move-slides'); 348 $(this).bxSlider({ 349 minSlides: min_slides, 350 maxSlides: max_slides, 351 slideWidth: slide_width, 352 slideMargin: 5, 353 moveSlides: move_slides, 354 pager: false, 355 356 }); 357 }); 358 359 360 /** 361 * Carousel initialization 362 * 363 * @since 1.0.0 364 */ 365 $('.eg-carousel-items-wrap').each(function () { 366 var selector = $(this); 367 var pause_duration = selector.data('pause-duration'); 368 var controls = selector.data('controls'); 369 var auto_start = selector.data('auto-start'); 370 var min_slides = $(this).data('min-slides'); 371 var max_slides = $(this).data('max-slides'); 372 var slide_width = $(this).data('slide-width'); 373 var move_slides = $(this).data('move-slides'); 374 $(this).bxSlider({ 375 controls: controls, 376 auto: auto_start, 377 pause: pause_duration, 378 minSlides: min_slides, 379 maxSlides: max_slides, 380 slideWidth: slide_width, 381 slideMargin: 5, 382 moveSlides: move_slides, 383 pager: true, 384 autoHover: true 385 }); 386 }); 387 /** 388 * Next Page Pagination 389 * 390 * @since 1.0.0 391 */
392 $('body').on('click', '.eg-next-page,.eg-previous-page', function () { 393 var selector = $(this); 394 var layout_type = $(this).data('layout-type'); 395 var gallery_id = $(this).data('gallery-id'); 396 var total_page = $(this).data('total-page'); 397 var current_page = $(this).closest('.eg-pagination-block').find('.eg-current-page').data('page-number'); 398 var next_page = parseInt(current_page) + 1; 399 var previous_page = parseInt(current_page) - 1; 400 if (selector.hasClass('eg-previous-page')) { 401 current_page = previous_page; 402 } else { 403 current_page = next_page; 404 } 405 406 $.ajax({ 407 type: 'post', 408 url: eg_frontend_js_object.ajax_url, 409 data: { 410 action: 'eg_pagination_action', 411 _wpnonce: eg_frontend_js_object.ajax_nonce, 412 layout_type: layout_type, 413 page_num: current_page, 414 gallery_id: gallery_id 415 }, 416 beforeSend: function (xhr) { 417 selector.closest('.eg-pagination-block').find('.eg-ajax-loader').show(); 418 }, 419 success: function (response) { 420 selector.closest('.eg-pagination-block').find('.eg-ajax-loader').hide(); 421 if (selector.closest('.eg-wrap').find('.eg-filter-wrap').length > 0) { 422 selector.closest('.eg-wrap').find('.eg-filter-trigger[data-filter-key="all"]').click(); 423 } 424 425 426 if (layout_type == 'masonary') { 427 var masonary_id = selector.closest('.eg-masonary-wrap').find('.eg-masonary-items-wrap').data('masonary-id'); 428 masonary_obj[masonary_id].isotope('destroy'); 429 selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response); 430 selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').imagesLoaded(function () { 431 $('.eg-masonary-items-wrap').isotope({ 432 itemSelector: '.eg-each-item', 433 percentPosition: true, 434 masonry: { 435 // use element for option 436 columnWidth: '.eg-each-item' 437 } 438 }); 439 }); 440 } else { 441 selector.closest('.eg-wrap').find('.eg-' + layout_type + '-items-wrap').html(response); 442 } 443 eg_initialize_lightbox(); 444 var pagination_html = build_pagination_html(current_page, total_page, gallery_id, layout_type); 445 selector.closest('.eg-wrap').find('.eg-pagination-block ul').html(pagination_html); 446 } 447 }); 448 }); 449 450 /** 451 * Everest Lightbox Initialization 452 * 453 * @since 1.0.0 454 */ 455 $('body').on('click', 'a[data-lightbox-type="everest_lightbox"]', function (e) { 456 var lightbox_status = $(this).closest('.eg-wrap').data('lightbox-status'); 457 if (lightbox_status) { 458 e.preventDefault(); 459 var item_type = $(this).data('item-type'); 460 var image_title = $(this).find('img').attr('alt'); 461 var image_caption = $(this).attr('title'); 462 var item_index = $(this).data('index'); 463 var total_items = $(this).data('total-items'); 464 var gallery_id = $(this).closest('.eg-wrap').data('gallery-id'); 465 var lightbox_theme = $(this).closest('.eg-wrap').data('lightbox-theme'); 466 var lightbox_themes = ['black', 'white', 'blue', 'grey']; 467 for (var i = 0; i < lightbox_themes.length; i++) { 468 $('.eg-everest-lightbox-overlay').removeClass('eg-' + lightbox_themes[i] + '-lightbox'); 469 } 470 $('.eg-everest-lightbox-overlay').addClass('eg-' + lightbox_theme + '-lightbox'); 471 $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('current-index', item_index); 472 $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('gallery-id', gallery_id); 473 $('.eg-everest-lightbox-previous,.eg-everest-lightbox-next').data('total-items', total_items); 474 $('.eg-everest-lightbox-caption').html(image_title); 475 $('.eg-everest-lightbox-description').html(image_caption); 476 switch (item_type) { 477 case 'image': 478 case 'instagram': 479 case 'post': 480 var image_url = $(this).attr('href'); 481 $('.eg-everest-lightbox-source-holder').html('<img src="' + image_url + '"/>'); 482 483 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 484 485 var $image_holder = $('.eg-everest-lightbox-source-holder'); 486 $image_holder.imagesLoaded(function () { 487 var image_height = $('.eg-everest-lightbox-source-holder img').height(); 488 var image_width = $('.eg-everest-lightbox-source-holder img').width(); 489 var window_height = $(window).height(); 490 var window_width = $(window).width(); 491 var max_height = window_height * 0.8; 492 if (image_height > max_height) { 493 var ratio = image_width / image_height; 494 var image_width = max_height * ratio; 495 $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').animate({ 496 width: image_width 497 }, 500); 498 $('.eg-everest-lightbox-source-holder img').animate({ 499 width: image_width, 500 opacity: 1 501 }, 500); 502 } else { 503 504 var lightbox_width = $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').css('width'); 505 var half_width = 0.5 * window_width; 506 if (parseInt(lightbox_width) != parseInt(half_width)) { 507 $('.eg-everest-lightbox-overlay .eg-everest-lightbox-wrap').animate({ 508 width: '50%' 509 }, 500); 510 } 511 512 } 513 }); 514 515 516 break; 517 case 'video': 518 var video_type = $(this).data('video-type'); 519 var video_url = $(this).data('video-url');
520 var self_video_url = $(this).data('self-video-url'); 521 switch (video_type) { 522 case 'youtube': 523 if (video_url == '') { 524 alert(eg_frontend_js_object.strings.video_missing); 525 } else { 526 video_url_array = video_url.split('?v='); 527 video_id = video_url_array.pop(); 528 video_html = '<iframe width="100%" height="360" src="https://www.youtube.com/embed/' + video_id + '" frameborder="0" allowfullscreen></iframe>'; 529 $('.eg-everest-lightbox-source-holder').html(video_html); 530 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 531 } 532 break; 533 case 'vimeo': 534 if (video_url == '') { 535 alert(eg_frontend_js_object.strings.video_missing); 536 } else { 537 video_url_array = video_url.split('/'); 538 video_id = video_url_array.pop(); 539 video_html = '<iframe src="https://player.vimeo.com/video/' + video_id + '" width="100%" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'; 540 $('.eg-everest-lightbox-source-holder').html(video_html); 541 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 542 } 543 break; 544 case 'self-hosted': 545 if (self_video_url == '') { 546 alert(eg_frontend_js_object.strings.video_missing); 547 } else { 548 video_html = '<video width="100%" height="360" controls><source src="' + self_video_url + '"></video>'; 549 $('.eg-everest-lightbox-source-holder').html(video_html); 550 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 551 } 552 break; 553 } 554 break; 555 case 'audio': 556 var audio_type = $(this).data('audio-type'); 557 var audio_url = $(this).data('audio-url'); 558 var self_audio_url = $(this).data('self-audio-url'); 559 switch (audio_type) { 560 case 'soundcloud': 561 if (audio_url == '') { 562 alert(eg_frontend_js_object.strings.audio_missing); 563 } else { 564 audio_html = ' <iframe width="100%" scrolling="no" frameborder="no" src="' + audio_url + '"></iframe>'; 565 $('.eg-everest-lightbox-source-holder').html(audio_html); 566 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 567 } 568 break; 569 case 'self-hosted': 570 if (self_audio_url == '') { 571 alert(eg_frontend_js_object.strings.audio_missing); 572 } else { 573 audio_html = '<audio width="100%" height="360" controls><source src="' + self_audio_url + '"></audio>'; 574 $('.eg-everest-lightbox-source-holder').html(audio_html); 575 $('.eg-everest-lightbox-overlay').addClass('eg-overlay-active'); 576 } 577 break; 578 } 579 break; 580 } 581 } 582 }); 583 584 /** 585 * Everst Lightbox initialization 586 * 587 * @since 1.0.0 588 */ 589 $('.eg-everest-lightbox-overlay .eg-close-pop-up').click(function () { 590 $('.eg-everest-lightbox-overlay').removeClass('eg-overlay-active'); 591 setTimeout(function () { 592 $('.eg-everest-lightbox-source-holder').html(''); 593 }, 500) 594 // $('.eg-everest-lightbox-overlay').hide(); 595 }); 596 597 /** 598 * Everest Lightbox Previous Trigger 599 * 600 * @since 1.0.0 601 */ 602 $('.eg-everest-lightbox-previous').click(function () { 603 var current_index = $(this).data('current-index'); 604 var total_items = $(this).data('total-items'); 605 var previous_index = parseInt(current_index) - 1; 606 var click_index = (previous_index < 1) ? total_items : previous_index; 607 var gallery_id = $(this).data('gallery-id'); 608 $('.eg-wrap[data-gallery-id="' + gallery_id + '"] a[data-index="' + click_index + '"]').click(); 609 }); 610 611 /** 612 * Everest Lightbox Next Trigger 613 * 614 * @since 1.0.0 615 */ 616 $('.eg-everest-lightbox-next').click(function () { 617 618 var current_index = $(this).data('current-index'); 619 var total_items = $(this).data('total-items'); 620 var next_index = parseInt(current_index) + 1; 621 var click_index = (next_index > total_items) ? 1 : next_index; 622 var gallery_id = $(this).data('gallery-id'); 623 $('.eg-wrap[data-gallery-id="' + gallery_id + '"] a[data-index="' + click_index + '"]').click(); 624 }); 625 626 $('.eg-everest-lightbox-inner-overlay').click(function () { 627 $('.eg-everest-lightbox-overlay .eg-close-pop-up').click(); 628 }); 629 630 631 632});
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.