-
Notifications
You must be signed in to change notification settings - Fork 0
/
fifth.html
68 lines (50 loc) · 1.67 KB
/
fifth.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Computer Prototype</title>
<!-- <script src="engine.js"></script> -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link href="style.css" rel="stylesheet">
<style>
.button1 {
position: absolute;
bottom: 70px;
right: 70px;
}
.button2 {
position: absolute;
bottom: 70px;
left: 70px;
}
</style>
<script>
window.onload = async () => {
let audioCtx = new AudioContext();
let dingSource = await (async () => {
const TIC_TOC_PATH = "audio/ding.wav";
let response = await fetch(TIC_TOC_PATH);
let audioData = await response.arrayBuffer();
let audioBuffer = await audioCtx.decodeAudioData(audioData);
let source = audioCtx.createBufferSource();
source.buffer = audioBuffer;
return source;
})()
dingSource.connect(audioCtx.destination);
dingSource.start();
}
</script>
</head>
<body>
<div class="container">
<h1 id="slogan1" class="display-4">Congratulations!</h1><br>
<p id="slogan2">You've made it to the end of the demo website.</p>
<p id="slogan2">To try the demo site again, click the "Restart Demo" button.</p>
<p id="slogan2">To redo the tutorial, click the "Tutorial" button.</p>
</div>
<a id="button" class="button1" href="first.html" role="button">Restart Demo</a><br>
<a id="button" class="button2" href="index.html" role="button">Tutorial</a><br>
</body>
</html>