-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (69 loc) · 2.01 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
<head>
<title>Merisää</title>
<meta property="og:title" content="Merisää" />
<meta property="og:description" content="Meditaatiosovellus." />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://xn--meris-kraa.xyz/viritys.jpg" />
<meta property="og:url" content="https://xn--meris-kraa.xyz/" />
<style type="text/css">
video#bgvid {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
-ms-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
background: url(placeholder.jpg) no-repeat;
background-size: cover;
}
input#playButton {
position: fixed;
top: 50%;
left: 50%;
# min-width: 100%;
# min-height: 100%;
width: auto;
height: auto;
z-index: -100;
-ms-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
</style>
</head>
<body>
<!--
ATK-taideteos
Timo Taskinen
-->
<video playsinline muted loop poster="placeholder.jpg" id="bgvid">
<source src="virityskuva.mp4" type="video/mp4">
</video>
<audio loop hidden id="audio">
<source src="merisaa.mp3" type="audio/mpeg">
</audio>
<script>
function play() {
var audio = document.getElementById("audio");
audio.play();
bgvid.play();
}
function hideButton() {
var x = document.getElementById('playButton');
x.style.display = 'none';
}
</script>
<input id="playButton" type="image" src="play.png" value="Aloita" onclick="play(); hideButton()">
</body>
</html>