forked from thethumbler/vaza.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (66 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="./img/vaza1.svg" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vaza</title>
<meta property="og:type" content="Website">
<link rel="canonical" href="https://vaza.dev/">
<meta name="keywords" content="just a vaza nothing more">
<meta property="og:title" content="vaza">
<meta property="og:description" content="just a vaza nothing more">
<meta property="og:image" content="./img/vaza1.svg">
<meta name="description" content="just a vaza nothing more">
<style>
body{
overflow-x: hidden;
}
.vaza-parent {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
padding: 20px;
overflow: hidden;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body.vaza-parent h1 {
font-size: 28px;
margin-top: 45px;
}
.vaza-parent img {
max-width: 100%;
}
</style>
</head>
<body>
<div class="vaza-parent">
<img src="" alt="my vaza" id="myVaza">
<h1>Just a vaza. Nothing to see here...</h1>
</div>
<script>
const myArr = [
'./img/vaza1.svg',
'./img/vaza2.svg',
'./img/vaza3.svg',
'./img/vaza4.svg',
'./img/vaza5.svg',
'./img/vaza6.svg',
'./img/vaza7.svg',
'./img/vaza8.svg',
'./img/vaza9.svg',
'./img/vaza10.svg',
'./img/vaza11.svg',
'./img/vaza12.svg',
'./img/vaza13.svg',
'./img/vaza14.svg',
'./img/vaza15.svg'
]
var item1 = myArr[Math.floor(Math.random() * myArr.length)];
console.log(item1)
document.getElementById("myVaza").src = item1;
</script>
</body>
</html>