-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.html
84 lines (80 loc) · 1.69 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>avif.js demo</title>
<link rel="icon" href="favicon.png">
<style>
html, body {
min-height: 100%;
margin: 0 0 10px 0;
padding: 0;
}
body {
font-family: Helvetica, sans-serif;
text-align: center;
color: #333;
}
button {
font-size: 25px;
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
}
img {
display: block;
}
.item {
display: inline-block;
border: 2px solid #aaa;
}
.hidden {
display: none;
}
.caption {
background-color: #ddd;
padding: 3px;
}
.user-img {
max-width: 100%;
}
.mexico-img {
width: 600px;
}
.irvine-img {
width: 480px;
height: 640px;
}
.ronda {
width: 540px;
}
.ronda-img {
height: 540px;
transform: rotate(90deg);
margin: 210px -210px;
}
</style>
<script src="index.js"></script>
</head>
<body>
<h1>
Test AVIF images
<button id="load-button" title="Load AVIF image">Load</button>
</h1>
<div class="item user hidden" id="custom-item"></div>
<input class="hidden" id="file-input" type="file" accept=".avif">
<div class="item mexico">
<div class="caption"><img></div>
<img class="mexico-img" src="Mexico.avif">
</div>
<div class="item irvine">
<div class="caption">background-image: url()</div>
<div class="irvine-img" style="background-image: url(Irvine_CA.avif)"></div>
</div>
<div class="item ronda">
<div class="caption">transform: rotate(90deg)</div>
<img class="ronda-img" src="Ronda_rotate90.avif">
</div>
</body>
</html>