I have a swiper carousel, when I click on the youtube fullscreen icon on mobile, it makes the page fullscreen, as if I pressed F11
<div style="--swiper-navigation-color: #0059b3; --swiper-pagination-color: #0059b3" class="swiper mySwiperPhone d-md-none d-block">
<div class="swiper-wrapper">
@if($imovel->videoYoutube)
<div class="swiper-slide">
<iframe src="" style="width: 100%; height: 350px; object-fit: contain;" title="Vídeo do imóvel" frameborder="0" allow="fullscreen"></iframe>
</div>
@endif
@foreach($fotos as $foto)
<div class="swiper-slide">
<img src="" style="height: 350px; object-fit: contain;">
</div>
@endforeach
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
JS:
var swiperPhone = new Swiper(".mySwiperPhone", {
spaceBetween: 10,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
Via Active questions tagged javascript - Stack Overflow https://ift.tt/l8gqSvO
Comments
Post a Comment