2021-08-30 19:01:02 +02:00
|
|
|
function adjust_vimeo_height() {
|
2021-08-30 18:38:04 +02:00
|
|
|
$(".embeded-vimeo-wrapper").each(function() {
|
2021-08-30 19:01:02 +02:00
|
|
|
var iframe = $(this).find('iframe')
|
|
|
|
var height = $(iframe).width() / $(iframe).attr('ratio')
|
|
|
|
$(iframe).prop("height", height)
|
2021-08-30 18:38:04 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
jQuery(document).ready(function() {
|
2021-08-30 19:01:02 +02:00
|
|
|
adjust_vimeo_height();
|
2021-08-30 18:38:04 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$(window).resize(function() {
|
2021-08-30 19:01:02 +02:00
|
|
|
adjust_vimeo_height();
|
2021-08-30 18:38:04 +02:00
|
|
|
});
|