-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (105 loc) · 2.43 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
<!DOCTYPE html>
<html>
<head lang="en">
<link rel="icon" type="image/png" href="./favicon.png"/>
<meta charset="utf-8">
<title>Solarsounds</title>
<style>
body {
margin: 0;
font-family: "Lucida Console", "Courier New", monospace;
}
.ui {
position: absolute;
}
#name {
color: white;
bottom: 5pt;
left: 5pt;
}
a:link {
color: orange;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: orange;
background-color: transparent;
text-decoration: none;
}
a:hover {
color: white;
background-color: transparent;
}
#gitlink {
top: 5pt;
left: 5pt;
}
#date {
color: white;
bottom: 5pt;
right: 5pt;
}
#tunebtn {
position: absolute;
top: calc(50% - 25px);
left: calc(50% - 50px);
width: 100px;
height: 100px;
display: none;
border: 2px solid #fff;
border-radius: 50%;
padding: 0;
margin: 0 auto;
user-select: none;
background-color: rgba(0, 0, 0, 0.6);
transition: background-color 0.5s ease;
&:after {
position: absolute;
top: calc(50% - 25px);
left: calc(50% - 14px);
display: block;
content: '';
box-sizing: border-box;
border-color: transparent transparent transparent #fff;
border-style: solid;
border-width: 26px 0 26px 40px;
}
&:hover {
background-color: rgba(0, 33, 66, 0.9);
}
}
#loading-text {
color: white;
display: none;
}
.container {
position: absolute;
top: 50%;
left: 50%;
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
</style>
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/"
}
}
</script>
</head>
<body>
<div id="gitlink" class="ui"><a href="https://github.com/phber/Solarsounds.js">GitHub</a>
</div>
<div id="name" class="ui">By Philip Bergstrom, 2023</div>
<div id="loading-text" class ="container">Loading...</div>
<div id="date" class="ui">2023-01-01</div>
<div id="tunebtn"></div></div>
<script src="./Tone.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>