diff --git a/game.php b/game.php index 95e9273..afac614 100644 --- a/game.php +++ b/game.php @@ -50,6 +50,21 @@ if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ? width: 15%; padding: 10px; } + .mainwrap { + position: relative; + padding-bottom: 56.25%; /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */ + padding-top: 30px; + height: 0; + overflow: hidden; + } + + .mainwrap iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } @@ -65,7 +80,9 @@ if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ? - +
+ +