forked from Reselim/beat-saber-overlay
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index_HDT_SRMqueue_sample.html
152 lines (138 loc) · 4.6 KB
/
index_HDT_SRMqueue_sample.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Overlay</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800" rel="stylesheet">
</head>
<body>
<script src="./js/startup.js"></script>
<div class="performance_group" style="display: block;font-size: 34px;font-weight: 700;line-height: 41px; letter-spacing: 2px; margin: 5px 0 0 20px;">
<span id="srm_queue_status">!bsr close</span>
</div>
<div id="overlay" class="hidden">
<div id="performance">
<div class="performance_group" style="display: block;font-size: 34px;font-weight: 700;line-height: 41px;">
<span id="head_distance">0.0m</span>
</div>
<div class="performance_group" id="now_pp_group">
<span class="text" id="now_pp">0</span>
<span class="subtext" id="now_pp_text">pp</span>
</div>
<div class="performance_group">
<span class="text" id="rank">E</span>
<span class="subtext" id="percentage">0%</span>
</div>
<div class="performance_group" id="miss_group">
<span class="text" id="miss">0</span>
<span class="subtext">Miss</span>
</div>
<div class="performance_group">
<span class="text" id="combo">0</span>
<span class="subtext">Combo</span>
</div>
<span id="score">0</span>
<div class="energy_container" id="energy_area">
<div class="energy_background" id="energy_group">
<div class="energy" id="energy_bar"></div>
</div>
</div>
</div>
<div id="beatmap">
<div id="cover_group">
<div id="cover">
<img id="image">
<svg width="90" height="90">
<rect width="90" height="90" id="darken"></rect>
<circle cx="45" cy="45" r="30" id="remaining"></circle>
<circle cx="45" cy="45" r="30" id="progress"></circle>
</svg>
<div>
<span id="song_time">0:00</span>
</div>
</div>
</div>
<div id="meta">
<div id="text">
<div id="title_subtitle">
<div id="titles">
<div id="title_group">
<span id="title">Title</span>
</div>
<div id="title_subtitle_space"></div>
<div id="subtitle_group">
<span id="subtitle">Subtitle</span>
</div>
</div>
</div>
<div id="artist_mapper_group">
<div id="artist_mapper">
<div id="artist_group">
<span id="artist">Artist</span><span id="mapper_header"> [</span><span id="mapper">Mapper</span><span id="mapper_footer">]</span>
</div>
</div>
</div>
</div>
<div>
<span id="bsr_group">
<span id="bsr_text">bsr </span><span id="bsr">00000</span>
</span>
<span id="pp_group">
<span id="star_text">★</span><span id="star">0.0</span>
<span id="pp">0.0</span><span id="pp_text">pp</span>
</span>
</div>
<div id="map_info_group">
<div id="map_info">
<span id="difficulty_group">
<span id="difficulty_label">
<span id="difficulty">Easy</span><span id="label_group"><span id="label_header">(</span><span id="label">customLabel</span><span id="label_footer">)</span></span>
</span>
</span>
<span id="bpm_group">
<span id="bpm">0</span><span id="bpm_text"> BPM</span>
</span>
<span id="njs_group">
<span id="njs">0</span><span id="njs_text"> NJS</span>
</span>
<span id="mod_group">
<span id="mod">MOD</span>
</span>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
ex_hello.push((data) => {
let distance = document.getElementById("head_distance");
let srm_queue_status = document.getElementById("srm_queue_status");
distance.innerText = "";
srm_queue_status.innerText = "";
});
ex_other.push((data) => {
if (typeof data.other !== "undefined") {
if (typeof data.other.HeadDistanceTravelled !== "undefined") {
let distance = document.getElementById("head_distance");
if (typeof data.other.HeadDistanceTravelled.Distance !== "undefined") {
distance.innerText = data.other.HeadDistanceTravelled.Distance.toFixed(3) + "m";
}
}
let srm_queue_status = document.getElementById("srm_queue_status");
if (typeof data.other.srm_queue_status !== "undefined") {
if (data.other.srm_queue_status) {
srm_queue_status.innerText = "!bsr open";
} else {
srm_queue_status.innerText = "!bsr close";
}
}
}
});
</script>
<script src="./js/options.js"></script>
<script src="./js/ui.js"></script>
<script src="./js/events.js"></script>
<script src="./js/manager.js"></script>
</body>
</html>