mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
PHRAS-2862 #comment Fix lightbox mobile : video resize #time 3h
This commit is contained in:
@@ -101,5 +101,13 @@
|
||||
$('.pdf-iframe').css('height', pdfHeight);
|
||||
}
|
||||
});
|
||||
/*resize of VIDEO */
|
||||
$(window).on("load resize ",function(e){
|
||||
if($('.video-iframe').length > 0) {
|
||||
var ratio = $('[name=videoRatio]').val();
|
||||
var videoHeight = $('.video-iframe').width() / ratio;
|
||||
$('.video-iframe').css('height', videoHeight).css('min-height',0);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user