-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtwgl_test.html
40 lines (36 loc) · 920 Bytes
/
twgl_test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, user-scalable=yes">
<title>twgl test</title>
<style>
div.stretchy-wrapper {
width: 100%;
padding-bottom: 100%; /* 16:9 */
/* Other aspect ratios to try:
* 56.25% = 16:9
* 75% = 4:3
* 66.66% = 3:2
* 62.5% = 8:5
*/
position: relative;
/* background: blue; */
}
div.stretchy-wrapper > div {
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
color: white;
font-size: 24px;
text-align: center;
}
</style>
</head>
<body>
<p id="log">twgl-test</p>
<div class="stretchy-wrapper"><div>
<twglTest></twglTest>
</div></div>
</body>
<script src="bin/twglTest.js"></script>
</html>