Files
static-manga-engine/js/script.js
T
Hell13Cat 18be11516b 0.1.1
2022-04-10 17:47:35 +03:00

10 lines
422 B
JavaScript

function adapt() {
if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){
var ytvid = document.querySelector('#ytvid');
var widthScreen = document.documentElement.clientWidth
var widthVid = Math.round(widthScreen / 100 * 80) + "px";
var heightVid = Math.round((widthScreen / 100 * 80) / 1280 * 720) + "px";
ytvid.width = widthVid;
ytvid.height = heightVid;
}
}