- All
- Logo
- Visual
- Package
setTimeout(function () { jQuery(".thumbnail_6134").each(function(){ // console.log(jQuery(this).width() + "x" + jQuery(this).height()) var h = jQuery(this).height(); var w = jQuery(this).width(); jQuery(this).height(h); jQuery(this).width(w); jQuery(this).resize(); }); }, 2500);
jQuery(document).ready(function (jQuery) { jQuery('.filtr-item').addClass('animateonload'); jQuery('#filter_gallery_6134').show(); jQuery('.loading-wrapper').hide(); jQuery(".loader_img").hide(); jQuery(".lg_load_more").show(); jQuery(".filtr-container").css("opacity", 1); //Filterizd Default options options = { animationDuration: 0.5, callbacks: { onFilteringStart: function() { }, onFilteringEnd: function() { }, onShufflingStart: function() { }, onShufflingEnd: function() { }, onSortingStart: function() { }, onSortingEnd: function() { } }, controlsSelector: '.filtr-controls-6134', filter: 'all', filterOutCss: { top:'0px', left:'0px', opacity: 0.001, transform: '' }, filterInCss: { top:'0px', left:'0px', opacity: 1, transform: '' }, layout: 'sameWidth', selector: '.filtr-item', setupControls: false } var filterizd = jQuery('.filter_gallery_6134').filterizr(options); //filterizd.filterizr('sort', 'domIndex', 'desc'); jQuery('.filter_gallery_6134').imagesLoaded( function() { // images have already loaded, instantiate Filterizr jQuery('.filter_gallery_6134').filterizr(options); });
//bootstrap-lightbox-js // delegate calls to data-toggle="lightbox" jQuery(document).delegate('*[data-toggle="lightbox"]:not([data-gallery="navigateTo"])', 'click', function(event) { event.preventDefault(); return jQuery(this).ekkoLightbox({ onShown: function() { /* if (window.console) { return console.log('Checking our the events huh?'); } */ }, onNavigate: function(direction, itemIndex) { if (window.console) { return console.log('Navigating '+direction+'. Current item: '+itemIndex); } } }); });
jQuery('.filtr-control-6134 [data-filter]').click(function() { //jQuery('.swiper-6134').swipebox('swipebox-destroy'); var targetFilter = jQuery(this).data('filter'); var lighbox_class_name = "pfg-lightbox-" + targetFilter; jQuery('.pfg-lightbox-' + targetFilter ).attr('data-lightbox', lighbox_class_name); // add data filter for parent filters });
//Programatically call jQuery('#open-image').click(function (e) { e.preventDefault(); jQuery(this).ekkoLightbox(); }); jQuery('#open-youtube').click(function (e) { e.preventDefault(); jQuery(this).ekkoLightbox(); });
// navigateTo jQuery(document).delegate('*[data-gallery="navigateTo"]', 'click', function(event) { event.preventDefault();
var lb; return jQuery(this).ekkoLightbox({ onShown: function() { lb = this; jQuery(lb.modal_content).on('click', '.modal-footer a', function(e) { e.preventDefault(); lb.navigateTo(2); }); } }); });
// video player jQuery(function(){ jQuery("a.video-box-6134").YouTubePopUp( { autoplay: 0 } ); // Disable autoplay });
});