-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheybabe.html
118 lines (95 loc) · 2.55 KB
/
heybabe.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
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="/images/BOS_icon.jpg" type="image/x-icon">
<style>
body {
overflow: hidden;
background-image: url(/images/BOS_hero.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
div.hdn {
position:absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
a.hdnlink {
color: rgba(0, 0, 0, 0.1);
text-decoration: none;
border-bottom: none;
}
a { text-decoration: none; }
@font-face {
font-family: "Helvetica Bold";
src: url(/fonts/HelveticaRoundedBold.ttf);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-fanimly: 'Helvetica Bold';
}
section {
position: relative;
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
section h2 {
font-family: 'Helvetica Bold';
color: #fff;
font-size: 9vw;
cursor: default;
}
.light {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: radial-gradient(ellipse 150% 100% at center, transparent 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 1) 95%);
}
h2.crt {
background: url(/images/crtnot.jpg) 0 0 / cover no-repeat;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
</head>
<body>
<audio id='audioIntro' autoplay preload="auto" src="/audio/tkvi.wav"></audio>
<script>
var actx = new (AudioContext || webkitAudioContext)(),
src = "../audio/hbwyutrn.flac",
audioData, srcNode; // global so we can access them from handlers
// Load some audio (CORS need to be allowed or we won't be able to decode the data)
fetch(src, {mode: "cors"}).then(function(resp) {return resp.arrayBuffer()}).then(decode);
// Decode the audio file, then start the show
function decode(buffer) {
actx.decodeAudioData(buffer, playLoop);
}
// Sets up a new source node as needed as stopping will render current invalid
function playLoop(abuffer) {
if (!audioData) audioData = abuffer; // create a reference for control buttons
srcNode = actx.createBufferSource(); // create audio source
srcNode.buffer = abuffer; // use decoded buffer
srcNode.connect(actx.destination); // create output
srcNode.loop = true; // takes care of perfect looping
audioIntro.onended = function () {
srcNode.start(); // play...
};
};
</script>
<div class=hdn>
<a href="wdyahm.html">
<section> <h2 class='crt'>THE KARMAN VIRUS</h2> </section>
<div class='light'></div>
</a>
</div>
</body>