-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathm.js
More file actions
53 lines (42 loc) Β· 1.76 KB
/
m.js
File metadata and controls
53 lines (42 loc) Β· 1.76 KB
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
const mySongs = [
"weathergirl ft. Eleanor Forte 0.mp3",
"Human ft. SF-A2 Miki.mp3",
"Kikuo - Love me, Love me, Love me 0.mp3",
"η±η°εΈΈ γγγ feat.θΆ³η«γ¬γ€Heat abnormal Iyowa feat.Adachi Rei.mp3",
"inabakumori - Lagtrain (Vo. Kaai Yuki) _ 稲θζγγ©γ°γγ¬γ€γ³γVo. ζζγ¦γ 0.mp3",
"Kikuo - εγ―γ§γγͺγε.mp3",
"Kikuo - γγγγ γγγγ.mp3",
"γγ
γγγγγ : γγγ feat.ε―δΈοΌKyu-kurarin : Iyowa feat.KafuοΌ.mp3",
"Ego Renegade Boy ft. Kagamine Len.mp3",
"Queen of Venus ft. Adachi Rei.mp3",
];
const container = document.getElementById('audio-list');
if (container) {
const count = document.createElement('p');
count.style.fontFamily = "'Press Start 2P', cursive";
count.style.fontSize = "10px";
count.style.color = "#00FF73";
count.style.textAlign = "center";
count.innerText = `TOTAL_TRACKS: ${mySongs.length}`;
container.appendChild(count);
mySongs.forEach(song => {
const div = document.createElement('div');
div.style.borderTop = "1px solid #004400";
const path = "/media/" + encodeURIComponent(song);
div.innerHTML = `
<p style="font-family: 'Press Start 2P', cursive; font-size: 8px; color: #00FF73; margin: 15px 0 8px 0; line-height: 1.4;">
${song}
</p>
<audio controls style="filter: invert(100%) hue-rotate(90deg) brightness(1.2); width: 100%;">
<source src="${path}" type="audio/mpeg">
</audio>
`;
container.appendChild(div);
});
}
const alertBtn = document.getElementById('alert-btn');
if (alertBtn) {
alertBtn.addEventListener('click', () => {
alert('Button been pressed :3');
});
}