PCでSPフレーム対応の際にリサイズ対応必要になったら使いそうなJS
function setupFrameResize() {
if(isSP()) return;
const $frame = $('.js-pc-frame');
const $body = $('body');
const BASE_HEIGHT = 720;
$(window).on('resize', () => {
if($body.height() === BASE_HEIGHT) return;
console.log($body.height(), BASE_HEIGHT)
const aspect = $body.height() / BASE_HEIGHT;
$frame.css('transform', `scale(${aspect})`);
});
}