This commit is contained in:
Hell13Cat
2022-04-10 17:47:35 +03:00
parent 49f74ccf2f
commit 18be11516b
36 changed files with 840 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
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;
}
}