1(function($, window, document, undefined) { 2 'use strict'; 3 4 var gridContainer = $('.grid-items'), 5 filtersContainer = $('.portfolio-filters'), 6 wrap, filtersCallback; 7 8 gridContainer.each(function() { 9 10 $(this).cubeportfolio({ 11 filters: '#'+$(this).data('filters'), 12 loadMore: '#loadMore-container1', 13 loadMoreAction: 'click', 14 layoutMode: 'grid', 15 defaultFilter: '*', 16 animationType: $(this).data('animation'), 17 gapHorizontal: $(this).data('gap'), 18 gapVertical: $(this).data('gap'), 19 gridAdjustment: 'responsive', 20 mediaQueries: [{ 21 width: 1100, 22 cols: gridContainer.data('cols') 23 }, { 24 width: 800, 25 cols: gridContainer.data('cols') 26 }, { 27 width: 500, 28 cols: 2 29 }, { 30 width: 320, 31 cols: 1 32 }], 33 caption: false, 34 displayType: 'sequentially', 35 displayTypeSpeed: 80, 36 37 // lightbox 38 lightboxDelegate: '.cbp-image-lightbox', 39 lightboxGallery: true, 40 lightboxTitleSrc: 'data-title', 41 lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>', 42 43 // singlePage popup 44 singlePageDelegate: '.cbp-portfolio-lightbox', 45 singlePageDeeplinking: true, 46 singlePageStickyNavigation: true, 47 singlePageAnimation: 'fade', 48 singlePageCounter: '<div class="cbp-popup-singlePage-counter">{{current}} of {{total}}</div>', 49 singlePageCallback: function(url, element) { 50 // to update singlePage content use the following method: this.updateSinglePage(yourContent) 51 var t = this; 52 53 $.get(url, function (data) { 54 55 56 }).done(function (data) { 57 58 var $newItems = $(data).find('.portfolio-post-content'); 59 60 t.updateSinglePage($newItems); 61 62 if($(data).find('.vntd-image-slider').length > 0) { 63 64 var sliders = new Swiper('.vntd-image-slider', { 65 nextButton: '.swiper-button-next', 66 prevButton: '.swiper-button-prev', 67 loop: true, 68 }); 69 70 } 71 72 }); 73 74 }, 75 }); 76 77 }); 78 79})(jQuery, window, document);
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.