-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (117 loc) · 3.75 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<script>
var imagesArray = [
'img/ohop-1-academy-at-tolaria-west.png',
'img/ohop-2-the-aether-flues.png',
'img/ohop-3-agyrem.png',
'img/ohop-4-bant.png',
'img/ohop-5-cliffside-market.png',
'img/ohop-6-the-dark-barony.png',
'img/ohop-7-eloren-wilds.png',
'img/ohop-8-the-eon-fog.png',
'img/ohop-9-feeding-grounds.png',
'img/ohop-10-fields-of-summer.png',
'img/ohop-11-the-fourth-sphere.png',
'img/ohop-12-glimmervoid-basin.png',
'img/ohop-13-goldmeadow.png',
'img/ohop-14-the-great-forest.png',
'img/ohop-15-grixis.png',
'img/ohop-16-the-hippodrome.png',
'img/ohop-17-immersturm.png',
'img/ohop-18-isle-of-vesuva.png',
'img/ohop-19-izzet-steam-maze.png',
'img/ohop-20-krosa.png',
'img/ohop-21-lethe-lake.png',
'img/ohop-22-llanowar.png',
'img/ohop-23-the-maelstrom.png',
'img/ohop-24-minamo.png',
'img/ohop-25-murasa.png',
'img/ohop-26-naar-isle.png',
'img/ohop-27-naya.png',
'img/ohop-28-otaria.png',
'img/ohop-29-panopticon.png',
'img/ohop-30-pools-of-becoming.png',
'img/ohop-31-raven-s-run.png',
'img/ohop-32-sanctum-of-serra.png',
'img/ohop-33-sea-of-sand.png',
'img/ohop-34-shiv.png',
'img/ohop-36-sokenzan.png',
'img/ohop-37-stronghold-furnace.png',
'img/ohop-38-turri-island.png',
'img/ohop-39-undercity-reaches.png',
'img/ohop-40-velis-vel.png',
];
var usedImages = {};
var usedImagesCount = 0;
function displayImage(){
var num = Math.floor(Math.random() * (imagesArray.length));
if (!usedImages[num]){
document.getElementById("plane").src = imagesArray[num];
// document.body.style.backgroundImage = "url(" + imagesArray[num] + ")";
document.getElementById("wrap").style.backgroundImage = "url(" + imagesArray[num] + ")";
console.log(imagesArray[num]);
usedImages[num] = true;
usedImagesCount++;
if (usedImagesCount === imagesArray.length){
usedImagesCount = 0;
usedImages = {};
}
} else {
displayImage();
}
}
</script>
</head>
<body onload="displayImage()">
<div class="wrapper">
<img src="" id="plane" onclick="displayImage()"/>
</div>
<div id="wrap"></div>
</body>
<style>
* {
margin: 0;
padding: 0;
}
html {
font-family: 'Roboto', sans-serif;
user-select: none;
color: white;
background: black;
}
html, body {
height: 100%;
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
max-width: 100%;
height: calc(100% - 80px);
padding: 40px;
}
.wrapper img {
display: block;
max-width: 100%;
max-height: 100%;
-webkit-mask: url('mask.png') center center;
-webkit-mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
}
#wrap {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
z-index: -1;
-webkit-filter: blur(10px);
-webkit-opacity: .3;
}
</style>
</html>