var galleryClickCount=1; var galleryClickCount2=5; var galleryClickCounter=0; var galleryMobileBanner; var randomnr;
$jQuery_1_10_1('.swiper-button-white').click(showMobileGalleryBanner); $jQuery_1_10_1('.swiper-slide').click(showMobileGalleryBanner); $jQuery_1_10_1(".gallery_mobile_banner_button").click(function() { $jQuery_1_10_1('#galleryMobileBanner').empty(); document.getElementById('gallery_mobile_banner').style.display='none'; document.getElementById('swiperGalleryCloseButton').style.display='block'; });
function showMobileGalleryBanner() { galleryClickCounter=galleryClickCounter + 1; if (galleryClickCounter>=galleryClickCount) { galleryClickCount=galleryClickCount2; galleryClickCounter=0; randomnr=Math.floor((Math.random() * 999) + 1); galleryMobileBanner='
‘;
document.getElementById(‘gallery_mobile_banner’).style.display=’inline-block’;
$jQuery_1_10_1(‘#galleryMobileBanner’).empty();
$jQuery_1_10_1(‘#galleryMobileBanner’).append(galleryMobileBanner);
$jQuery_1_10_1(‘.lazy-banner-mobile-gallery’).Lazy();
if (screen.width <1024) {
document.getElementById(‘swiperGalleryCloseButton’).style.display=’none’;
}
}
};
function showSwiperGallery($photo) { var scrollarea=document.getElementsByClassName('scrollarea'); document.getElementById("menu_mobile").style.display="none"; if (document.getElementsByClassName('scrollarea')[0] !==undefined && document.getElementsByClassName('scrollarea')[1] !==undefined) { scrollarea[0].style.zIndex='1'; scrollarea[1].style.zIndex='1'; } document.getElementById("swiperGallery").style.display="block"; document.body.style.overflow="hidden";
galleryThumbs.update();
galleryPhoto.slideTo($photo,false,false); galleryPhoto.update(); /* if (document.getElementById("menu_mobile").style.display=="none"){ */ if (window.innerWidth> 1080) { $jQuery_1_10_1('.lazy-banner_gallery').Lazy(); }
} function hideSwiperGallery() { document.getElementById("swiperGallery").style.display="none"; document.body.style.overflow=""; var mq=window.matchMedia( "(max-width: 1080px)" ); if (mq.matches) { document.getElementById("menu_mobile").style.display="unset"; } }
var galleryThumbs=new Swiper('.gallery-thumbs', { spaceBetween: 10, slidesPerView: 6, freeMode: true, watchSlidesVisibility: true, watchSlidesProgress: true, slideToClickedSlide: true, });
var galleryPhoto=new Swiper('.gallery-photo', { preloadImages: false, lazyLoad: true, lazy: { loadPrevNext: true, loadPrevNextAmount: 3 }, spaceBetween: 10, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, thumbs: { swiper: galleryThumbs }
});
Manoma, kad jaunuolis bandė įspėti draugą apie greičio matuoklį ir prarado vairavimo kontrolę.
Kaip skelbta, naujų mokslo metų pradžią Šiauliuose pažymėjo 17 metų motociklininko žūtis. Policijos pirminiais duomenimis, rugsėjo 2-ąją Dubijos gatve važiavęs vaikinas nutarė įspėti paskui motociklu važiuojantį draugą apie gatvėje stovintį trikojį greičio matuoklį ir to užteko, kad motociklininkas prarastų vairavimo kontrolę ir trenktųsi į kelkraštyje stovėjusią sunkiasvorę transporto priemonę. Vaikinas buvo su apsauginiu šalmu, tačiau smūgis buvo lemtingas.
Kaip informavo Šiaulių apskrities policija, atvykę medikai bandė jaunuolį reanimuoti įvykio vietoje, tačiau pastangos rezultatų nedavė ir buvo konstatuota jo mirtis. Vaikinas vairuotojo pažymėjimą buvo įgijęs prieš metus, deja, patirčiai įgyti - tai mažas laiko tarpas.