16 lines
374 B
JavaScript
16 lines
374 B
JavaScript
|
function adjust_archiveOembed_height() {
|
||
|
$(".archive-embeded-wrapper").each(function() {
|
||
|
var iframe = $(this).find('iframe')
|
||
|
var height = $(iframe).width() / $(iframe).attr('ratio')
|
||
|
$(iframe).prop("height", height)
|
||
|
});
|
||
|
}
|
||
|
|
||
|
jQuery(document).ready(function() {
|
||
|
adjust_archiveOembed_height();
|
||
|
});
|
||
|
|
||
|
$(window).resize(function() {
|
||
|
adjust_archiveOembed_height();
|
||
|
});
|