build0004

This commit is contained in:
Hell13Cat
2021-12-29 00:17:28 +03:00
parent 3d613c0267
commit f2acdc4140
5 changed files with 127 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;
}
}