-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
51 lines (46 loc) · 1.17 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
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="./imgs/pokeball.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="3.7; url=/mainpage/index.html" />
<title>HOME</title>
</head>
<body onload="myfunction()">
<div class="anim">
<img src="./pichu.gif" class="pic">
<script type="text/javascript">
function myFunction(x) {
if (x.matches) { // If media query matches
document.body.style.zoom = "90%"
} else {
document.body.style.zoom = "100%"
}
}
var x = window.matchMedia("(max-height: 630px)")
myFunction(x)
x.addListener(myFunction)
</script>
</body>
</html>
<style>
body {
background: #f7f7f9;
}
.anim {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
@media (max-width: 1023px) {
.pic{
height: 100%;
width: 100%;
}
.anim {
margin-top: 50%;
}
}
</style>