-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
198 lines (165 loc) · 8.49 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="jp">
<head>
<title>Hatsune Miku's Neon World</title>
<meta
name="description"
content="Music Visualizer for Hatsune Miku Magical Mirai 2023"
>
<meta property="og:image" content="./thumbnail.png" />
<meta name="twitter:image" content="./thumbnail.png" />
<link rel="apple-touch-icon" href="thumbnail.png" />
<link rel="icon" href="thumbnail.png" />
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DotGothic16">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Wix+Madefor+Text&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Kosugi+Maru">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/regular.min.css">
<link rel='stylesheet' id='fontawesome-css' href='https://use.fontawesome.com/releases/v5.0.1/css/all.css?ver=4.9.1' type='text/css' media='all' />
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<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> <!-- <script src="https://api.songle.jp/v2/api.js"></script> -->
</head>
<body>
<canvas id="bg"></canvas>
<!-- Top Navigation Menu -->
<div class="topnav">
<!-- 再生コントロール / Playback control -->
<div id="control" class="far">
<a href="#" id="play" class="disabled"></a>
<a href="#" id="stop" class="disabled"></a>
</div>
<div id="settings" class="far">
<a id="settei" class="disabled" onclick="openForm('myForm')"></a>
<a id="musicButton" class="disabled" onclick="openForm('musicForm')"></a>
</div>
<!-- アーティストと楽曲の情報 / Artist and song info -->
<div id="meta">
<div id="artist">artist: <span>-</span></div>
<div id="song">song: <span>-</span></div>
</div>
</div>
<!-- Language options button -->
<!-- <button class="language-button" id="language-button" onclick="switchLanguage()">日本語</button> -->
<div class="window-container">
<!-- The form -->
<div class="form-popup" id="myForm">
<!-- <form action="/action_page.php" class="form-container"> -->
<h1 id="settings-header">Settings</h1>
<div class="menu-items">
<div class="item">
<p id="beatbar-header">Beatbar Color</p>
<div class="beatbar container">
<input type="color" id="bar-color1" value="#062f2b">
<input type="color" id="bar-color2" value="#00ffff">
</div>
</div>
<div class="item">
<p id="language-select">Language</p>
<button type="button" id="language-button" onclick="switchLanguage()" class="language-button">日本語</button>
</div>
<div class="item">
<p id="lyrics-header">Lyrics Color</p>
<div class="text container">
<input type="color" id="color-picker" value="#6ad4f2">
</div>
</div>
<div class="item">
<p id="volume-label">Volume</p>
<div class="slide container">
<input type="range" min="0" max="100" value="80" class="slider" id="myRange">
</div>
</div>
<div class="item">
<p id="glow-header">Glow Effect</p>
<div class="glow container">
<button type="button" id="glow-button" onclick="handleGlowChange()" class="language-button">On</button>
</div>
</div>
<div class="item">
<p id="speaker-header">Speaker Bounce</p>
<div class="speaker container">
<button type="button" id="speaker-button" onclick="handleSpeakerChange()" class="language-button">On</button>
</div>
</div>
<button type="button" class="btn cancel" onclick="closeForm('myForm')">OK</button>
<!-- </form> -->
</div>
</div>
<div class="window-container">
<!-- The form -->
<div class="form-popup" id="musicForm">
<!-- <form action="/action_page.php" class="form-container"> -->
<h1 id="change-song-header">Change Song</h1>
<div class="menu-items">
<button id="kingJack" class="selection" value=0 onclick="changeSong(value)">king ki jack yaku</button>
<button id="toLive" class="selection" value=1 onclick="changeSong(value)">To live</button>
<button id="shoumeisha" class="selection" value=2 onclick="changeSong(value)">shoumeisha</button>
<button id="neonLights" class="selection" value=3 onclick="changeSong(value)">Going through a sea of Neon lights</button>
<button id="mutation" class="selection" value=4 onclick="changeSong(value)">Mutation</button>
<button id="Entrust" class="selection" value=5 onclick="changeSong(value)">Entrust via 39</button>
</div>
<button id="cancelButton" type="button" class="btn cancel" onclick="closeForm('musicForm')">Cancel</button>
<!-- </form> -->
</div>
</div>
<!-- オーバーレイ / Overlay -->
<div id="popup-overlay"></div>
<!-- オーバーレイ / Overlay -->
<div id="overlay">
<p id="overlay-text">Loading Player</p>
<p id="landscape-warning" style="font-size: 15px; position: fixed; bottom: 5vh">
This app is best experienced in landscape mode
</p>
<div id="loader" class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<!-- 音源 / Audio souce -->
<div id="media"></div>
<!-- 歌詞 / Lyrics text -->
<div id="lyrics">
<!-- 文字 / Text -->
<div id="text"></div>
<!-- ビートバー / Beat bar -->
<!--<div id="bar"></div>-->
</div>
<!-- シークバー -->
<div id="seekbar">
<div></div>
</div>
<img class="braid-image" id="braid-image" src="images/braid.png" alt="braid">
<img class="miku-image" id="miku-image" src="images/miku-no-braid.png" alt="Hatsune Miku">
<img class="speaker-image" id="speaker-image" src="images/speaker.png" alt="speaker">
<img class="bottom-bar" id="bottom-bar" src="images/foreground.png" alt="foreground">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/textalive-app-api/dist/index.js"></script>
<script src="script.js"></script>
<script type="x-shader/x-vertex" id="vertexshader">
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<script type="x-shader/x-fragment" id="fragmentshader">
uniform sampler2D baseTexture;
uniform sampler2D bloomTexture;
varying vec2 vUv;
void main() {
gl_FragColor = ( texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );
}
</script>
<script type="module" src="animation.js"></script>
<script src="audio.js"></script>
</body>
</html>