Langosteria Café Milano

Langosteria Café Milano ‘; //console.log( slide ); galleryHtml += slide; slides++; }); jQuery(‘#overlay-internimagazine .overlay-gallery’).html( galleryHtml ); jQuery(‘#overlay-internimagazine .current’).text(firstSlide+1); jQuery(‘#overlay-internimagazine .total’).text(slides); jQuery(‘#overlay-internimagazine’).fadeIn(); galleryoverlay( firstSlide ); jQuery(‘html,body’).css(‘overflow-y’, ‘hidden’ ); jQuery(‘header’).css(‘z-index’, 1 ); }); function galleryoverlay( firstSlide ){ var $galleryoverlay = jQuery(‘#gallery-fullscreen .overlay-gallery’); var slideCount = null; $galleryoverlay.on(‘init’, function(event, slick){ slideCount = slick.slideCount; setSlideCount(); setCurrentSlideNumber(slick.currentSlide); $galleryoverlay.find(‘.slick-arrow’).hide(); setTimeout(function(){ var slideHeight = jQuery(‘#gallery-fullscreen .overlay-gallery div figure img’).height()/2; if( slideHeight != 0 ){ $galleryoverlay.find(‘.slick-arrow’).css(‘top’, slideHeight); } $galleryoverlay.find(‘.slick-arrow’).show(); }, 900 ); }); $galleryoverlay.on(‘beforeChange’, function(event, slick, currentSlide, nextSlide){ setCurrentSlideNumber(nextSlide); }); $galleryoverlay.slick({ speed: 250, fade: true, cssEase: ‘linear’, swipe: true, initialSlide: firstSlide, swipeToSlide: true, touchThreshold: 10, circular: true, infinite: true, arrows:true, dots: false }); function setSlideCount() { var $el = jQuery(‘#gallery-fullscreen .slide-count-wrap’).find(‘.total’); $el.text(slideCount); } function setCurrentSlideNumber(currentSlide) { var myGallery = eval(galleryId); var currentCaption = myGallery[currentSlide].caption; var currentTitle = myGallery[currentSlide].title; var $elb = jQuery(‘#gallery-fullscreen .slide-count-wrap’).find(‘.current’); jQuery(‘#gallery-fullscreen .gallery-credits .overlay-img-caption’).html( currentCaption ); $elb.text(currentSlide + 1); } } jQuery(“#overlay-internimagazine .icon-close”).on(“click”,function(){ jQuery(‘#overlay-internimagazine’).fadeOut(); jQuery(‘#gallery-fullscreen .overlay-gallery’).slick(‘unslick’); jQuery(‘#overlay-internimagazine .overlay-gallery’).empty(); jQuery(‘header’).css(‘z-index’, 99999 ); jQuery(‘body,html’).css(‘overflow-y’, ‘visible’ ); });

Fonte: https://www.internimagazine.it/news/langosteria-cafe-milano/

Autore dell'articolo: internimagazine.it