返回提交历史
Modified
src/routes/webui.ts
+11
-2
Modified
static/webui/index.html
+124
-46
Modified
static/webui/script.js
+85
-8
Added
static/webui/single.js
+317
-0
Added
static/webui/style.css
+17
-0
XFEstudio/SpaceNinjaServer
feat(webui): add Mods tab with "Add Riven" option (#234)
8eb11007
代码差异
5 个文件
+554
-56
@@ -2,6 +2,7 @@ import express from "express";
2
2
import path from "path";
3
3
4
4
const webuiRouter = express.Router();
5
const rootDir = path.join(__dirname, "../..");
5
6
6
7
// Redirect / to /webui/
7
8
webuiRouter.get("/", (_req, res) => {
@@ -16,7 +17,15 @@ webuiRouter.use("/webui", (req, res, next) => {
16
17
next();
17
18
});
18
19
19
// Serve static files from the webui directory
20
webuiRouter.use("/webui", express.static(path.join(__dirname, "../..", "static/webui")));
20
// Serve virtual routes
21
webuiRouter.get("/webui/inventory", (_req, res) => {
22
res.sendFile(path.join(rootDir, "static/webui/index.html"));
23
});
24
webuiRouter.get("/webui/mods", (_req, res) => {
25
res.sendFile(path.join(rootDir, "static/webui/index.html"));
26
});
27
28
// Serve static files
29
webuiRouter.use("/webui", express.static(path.join(rootDir, "static/webui")));
21
30
22
31
export { webuiRouter };
@@ -2,72 +2,144 @@
2
2
<html lang="en" data-bs-theme="dark">
3
3
<head>
4
4
<title>OpenWF WebUI</title>
5
<meta name="viewport" content="width=device-width, initial-scale=1" />
5
6
<link
6
7
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
7
8
rel="stylesheet"
8
9
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
9
10
crossorigin="anonymous"
10
11
/>
12
<link rel="stylesheet" href="style.css" />
11
13
</head>
12
14
<body>
13
<div class="container pt-3 pb-3">
14
<h1>OpenWF WebUI</h1>
15
<div id="login-view">
16
<p>Login using your OpenWF account credentials.</p>
17
<form onsubmit="doLogin();return false;">
18
<label for="email">Email address</label>
19
<input class="form-control" type="email" id="email" required />
20
<br />
21
<label for="password">Password</label>
22
<input class="form-control" type="password" id="password" required />
23
<br />
24
<button class="btn btn-primary" type="submit">Login</button>
25
</form>
15
<nav class="navbar sticky-top bg-body-tertiary">
16
<div class="container">
17
<button
18
class="navbar-toggler d-lg-none"
19
type="button"
20
data-bs-toggle="offcanvas"
21
data-bs-target="#sidebar"
22
aria-controls="sidebar"
23
aria-label="Toggle sidebar"
24
>
25
<span class="navbar-toggler-icon"></span>
26
</button>
27
<a class="navbar-brand">OpenWF WebUI</a>
28
<div class="nav-item dropdown">
29
<button
30
class="nav-link dropdown-toggle displayname"
31
data-bs-toggle="dropdown"
32
aria-expanded="false"
33
></button>
34
<ul class="dropdown-menu dropdown-menu-end">
35
<li><a class="dropdown-item" href="/webui/" onclick="logout();">Logout</a></li>
36
</ul>
37
</div>
38
</div>
39
</nav>
40
<div class="container pt-3 pb-3" id="main-view">
41
<div class="offcanvas-lg offcanvas-start" tabindex="-1" id="sidebar" aria-labelledby="sidebarLabel">
42
<div class="offcanvas-header">
43
<h5 class="offcanvas-title" id="sidebarLabel">Sidebar</h5>
44
<button
45
type="button"
46
class="btn-close"
47
data-bs-dismiss="offcanvas"
48
data-bs-target="#sidebar"
49
aria-label="Close"
50
></button>
51
</div>
52
<div class="offcanvas-body">
53
<ul>
54
<li><a href="/webui/inventory">Inventory</a></li>
55
<li><a href="/webui/mods">Mods</a></li>
56
</ul>
57
</div>
26
58
</div>
27
<div id="main-view" class="d-none">
28
<p>Hello, <b class="displayname"></b>! <a href="#" onclick="logout();">Logout</a></p>
29
<p class="mb-4">
59
<div>
60
<p id="refresh-note" class="mb-4">
30
61
Note: Changes made here will only be reflected in-game when the game re-downloads your inventory.
31
62
Visiting the navigation should be the easiest way to trigger that.
32
63
</p>
33
<div class="card mb-4">
34
<h5 class="card-header">Add Items</h5>
35
<form class="card-body input-group" onsubmit="doAcquireMiscItems();return false;">
36
<input class="form-control" id="miscitem-count" type="number" min="1" value="1" />
37
<input class="form-control" id="miscitem-type" list="datalist-miscitems" />
38
<button class="btn btn-primary" type="submit">Add</button>
64
<div data-route="/webui/">
65
<p>Login using your OpenWF account credentials.</p>
66
<form onsubmit="doLogin();return false;">
67
<label for="email">Email address</label>
68
<input class="form-control" type="email" id="email" required />
69
<br />
70
<label for="password">Password</label>
71
<input class="form-control" type="password" id="password" required />
72
<br />
73
<button class="btn btn-primary" type="submit">Login</button>
39
74
</form>
40
75
</div>
41
<div class="row">
42
<div class="col-lg-6">
43
<div class="card mb-4">
44
<h5 class="card-header">Warframes</h5>
45
<div class="card-body">
46
<table class="table table-striped w-100">
47
<tbody id="warframe-list"></tbody>
48
</table>
49
<form class="input-group" onsubmit="doAcquireWarframe();return false;">
50
<input class="form-control" id="warframe-to-acquire" list="datalist-warframes" />
51
<button class="btn btn-primary" type="submit">Add</button>
52
</form>
76
<div data-route="/webui/inventory">
77
<div class="card mb-4">
78
<h5 class="card-header">Add Items</h5>
79
<form class="card-body input-group" onsubmit="doAcquireMiscItems();return false;">
80
<input class="form-control" id="miscitem-count" type="number" min="1" value="1" />
81
<input class="form-control" id="miscitem-type" list="datalist-miscitems" />
82
<button class="btn btn-primary" type="submit">Add</button>
83
</form>
84
</div>
85
<div class="row">
86
<div class="col-lg-6">
87
<div class="card mb-4">
88
<h5 class="card-header">Warframes</h5>
89
<div class="card-body">
90
<table class="table table-striped w-100">
91
<tbody id="warframe-list"></tbody>
92
</table>
93
<form class="input-group" onsubmit="doAcquireWarframe();return false;">
94
<input
95
class="form-control"
96
id="warframe-to-acquire"
97
list="datalist-warframes"
98
/>
99
<button class="btn btn-primary" type="submit">Add</button>
100
</form>
101
</div>
53
102
</div>
54
103
</div>
55
</div>
56
<div class="col-lg-6">
57
<div class="card mb-4">
58
<h5 class="card-header">Weapons</h5>
59
<div class="card-body">
60
<table class="table table-striped w-100">
61
<tbody id="weapon-list"></tbody>
62
</table>
63
<form class="input-group" onsubmit="doAcquireWeapon();return false;">
64
<input class="form-control" id="weapon-to-acquire" list="datalist-weapons" />
65
<button class="btn btn-primary" type="submit">Add</button>
66
</form>
104
<div class="col-lg-6">
105
<div class="card mb-4">
106
<h5 class="card-header">Weapons</h5>
107
<div class="card-body">
108
<table class="table table-striped w-100">
109
<tbody id="weapon-list"></tbody>
110
</table>
111
<form class="input-group" onsubmit="doAcquireWeapon();return false;">
112
<input class="form-control" id="weapon-to-acquire" list="datalist-weapons" />
113
<button class="btn btn-primary" type="submit">Add</button>
114
</form>
115
</div>
67
116
</div>
68
117
</div>
69
118
</div>
70
119
</div>
120
<div data-route="/webui/mods">
121
<div class="card mb-4">
122
<h5 class="card-header">Add Riven</h5>
123
<form class="card-body" onsubmit="doAcquireRiven();return false;">
124
<select class="form-control mb-3" id="addriven-type">
125
<option value="LotusArchgunRandomModRare">LotusArchgunRandomModRare</option>
126
<option value="LotusModularMeleeRandomModRare">LotusModularMeleeRandomModRare</option>
127
<option value="LotusModularPistolRandomModRare">LotusModularPistolRandomModRare</option>
128
<option value="LotusPistolRandomModRare">LotusPistolRandomModRare</option>
129
<option value="LotusRifleRandomModRare" selected>LotusRifleRandomModRare</option>
130
<option value="LotusShotgunRandomModRare">LotusShotgunRandomModRare</option>
131
<option value="PlayerMeleeWeaponRandomModRare">PlayerMeleeWeaponRandomModRare</option>
132
</select>
133
<textarea
134
id="addriven-fingerprint"
135
class="form-control mb-3"
136
placeholder="Fingerprint"
137
></textarea>
138
<button class="btn btn-primary" style="margin-right: 5px" type="submit">Add</button>
139
<a href="https://riven.builds.wf/" target="_blank">Need help with the fingerprint?</a>
140
</form>
141
</div>
142
</div>
71
143
</div>
72
144
</div>
73
145
<datalist id="datalist-warframes"></datalist>
@@ -79,6 +151,12 @@
79
151
crossorigin="anonymous"
80
152
></script>
81
153
<script src="https://cdn.jsdelivr.net/gh/angeal185/whirlpool-js/dist/whirlpool-js.min.js"></script>
154
<script src="single.js"></script>
82
155
<script src="script.js"></script>
156
<script
157
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
158
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
159
crossorigin="anonymous"
160
></script>
83
161
</body>
84
162
</html>
@@ -1,6 +1,7 @@
1
1
function doLogin() {
2
2
localStorage.setItem("email", $("#email").val());
3
3
localStorage.setItem("password", $("#password").val());
4
$("#email, #password").val("");
4
5
loginFromLocalStorage();
5
6
}
6
7
@@ -20,10 +21,12 @@ function loginFromLocalStorage() {
20
21
})
21
22
});
22
23
req.done(data => {
23
$("#login-view").addClass("d-none");
24
$("#main-view").removeClass("d-none");
24
if (single.getCurrentPath() == "/webui/") {
25
single.loadRoute("/webui/inventory");
26
}
25
27
$(".displayname").text(data.DisplayName);
26
28
window.accountId = data.id;
29
window.authz = "accountId=" + data.id + "&nonce=" + data.Nonce;
27
30
updateInventory();
28
31
});
29
32
req.fail(() => {
@@ -35,14 +38,25 @@ function loginFromLocalStorage() {
35
38
function logout() {
36
39
localStorage.removeItem("email");
37
40
localStorage.removeItem("password");
38
$("#login-view").removeClass("d-none");
39
$("#main-view").addClass("d-none");
40
41
}
41
42
42
43
if (localStorage.getItem("email") && localStorage.getItem("password")) {
43
44
loginFromLocalStorage();
44
45
}
45
46
47
single.on("route_load", function (event) {
48
if (event.route.paths[0] != "/webui/") {
49
// Authorised route?
50
if (!localStorage.getItem("email")) {
51
// Not logged in?
52
return single.loadRoute("/webui/"); // Show login screen
53
}
54
$("body").addClass("logged-in");
55
} else {
56
$("body").removeClass("logged-in");
57
}
58
});
59
46
60
window.itemListPromise = new Promise(resolve => {
47
61
const req = $.get("/custom/getItemLists");
48
62
req.done(data => {
@@ -61,7 +75,7 @@ window.itemListPromise = new Promise(resolve => {
61
75
});
62
76
63
77
function updateInventory() {
64
const req = $.get("/api/inventory.php?accountId=" + window.accountId);
78
const req = $.get("/api/inventory.php?" + window.authz);
65
79
req.done(data => {
66
80
window.itemListPromise.then(itemMap => {
67
81
document.getElementById("warframe-list").innerHTML = "";
@@ -215,7 +229,7 @@ function addGearExp(category, oid, xp) {
215
229
}
216
230
];
217
231
$.post({
218
url: "/api/missionInventoryUpdate.php?accountId=" + window.accountId,
232
url: "/api/missionInventoryUpdate.php?" + window.authz,
219
233
contentType: "text/plain",
220
234
data: JSON.stringify(data)
221
235
}).done(function () {
@@ -235,7 +249,7 @@ function disposeOfGear(category, oid) {
235
249
}
236
250
];
237
251
$.post({
238
url: "/api/sell.php?accountId=" + window.accountId,
252
url: "/api/sell.php?" + window.authz,
239
253
contentType: "text/plain",
240
254
data: JSON.stringify(data)
241
255
}).done(function () {
@@ -250,7 +264,7 @@ function doAcquireMiscItems() {
250
264
return;
251
265
}
252
266
$.post({
253
url: "/api/missionInventoryUpdate.php?accountId=" + window.accountId,
267
url: "/api/missionInventoryUpdate.php?" + window.authz,
254
268
contentType: "text/plain",
255
269
data: JSON.stringify({
256
270
MiscItems: [
@@ -268,3 +282,66 @@ function doAcquireMiscItems() {
268
282
$("#miscitem-name").on("input", () => {
269
283
$("#miscitem-name").removeClass("is-invalid");
270
284
});
285
286
function doAcquireRiven() {
287
let fingerprint;
288
try {
289
fingerprint = JSON.parse($("#addriven-fingerprint").val());
290
if (typeof fingerprint !== "object") {
291
fingerprint = JSON.parse(fingerprint);
292
}
293
} catch (e) {}
294
if (
295
typeof fingerprint !== "object" ||
296
!("compat" in fingerprint) ||
297
!("pol" in fingerprint) ||
298
!("buffs" in fingerprint)
299
) {
300
$("#addriven-fingerprint").addClass("is-invalid").focus();
301
return;
302
}
303
const uniqueName = "/Lotus/Upgrades/Mods/Randomized/" + $("#addriven-type").val();
304
// Add riven type to inventory
305
$.post({
306
url: "/api/missionInventoryUpdate.php?" + window.authz,
307
contentType: "text/plain",
308
data: JSON.stringify({
309
RawUpgrades: [
310
{
311
ItemType: uniqueName,
312
ItemCount: 1
313
}
314
]
315
})
316
}).done(function () {
317
// Get riven's assigned id
318
$.get("/api/inventory.php?" + window.authz).done(data => {
319
for (const rawUpgrade of data.RawUpgrades) {
320
if (rawUpgrade.ItemType === uniqueName) {
321
// Add fingerprint to riven
322
$.post({
323
url: "/api/artifacts.php?" + window.authz,
324
contentType: "text/plain",
325
data: JSON.stringify({
326
Upgrade: {
327
ItemType: uniqueName,
328
UpgradeFingerprint: JSON.stringify(fingerprint),
329
ItemId: rawUpgrade.LastAdded
330
},
331
LevelDiff: 0,
332
Cost: 0,
333
FusionPointCost: 0
334
})
335
}).done(function () {
336
alert("Successfully added.");
337
});
338
break;
339
}
340
}
341
});
342
});
343
}
344
345
$("#addriven-fingerprint").on("input", () => {
346
$("#addriven-fingerprint").removeClass("is-invalid");
347
});
@@ -0,0 +1,317 @@
1
(function () {
2
let head_include = document.body == null,
3
style = document.createElement("style");
4
style.textContent = `[data-route]:not(.route-visible){display:none}`;
5
document.head.appendChild(style);
6
7
class EventEmitter {
8
constructor() {
9
this.event_handlers = {};
10
}
11
12
on(event_name, func) {
13
if (typeof func != "function") {
14
throw "Event handler has to be a function.";
15
}
16
this.event_handlers[event_name] = func;
17
return this;
18
}
19
20
off(event_name) {
21
delete this.event_handlers[event_name];
22
return this;
23
}
24
25
fire(event_name, args) {
26
if (event_name in this.event_handlers) {
27
this.event_handlers[event_name].call(this, args);
28
}
29
return this;
30
}
31
}
32
33
class Route extends EventEmitter {
34
constructor(overlay, elm, paths) {
35
super();
36
this.overlay = overlay;
37
this.elm = elm;
38
this.paths = paths;
39
this.title = undefined;
40
if (elm.hasAttribute("data-title")) {
41
this.title = this.elm.getAttribute("data-title");
42
this.elm.removeAttribute("data-title");
43
} else if (document.querySelector("title") != null) {
44
this.title = document.querySelector("title").textContent;
45
} else {
46
this.title = this.paths[0];
47
}
48
}
49
50
get element() {
51
return this.elm;
52
}
53
54
isCurrent() {
55
return this.elm.classList.contains("route-current");
56
}
57
58
isVisible() {
59
return this.elm.classList.contains("route-visible");
60
}
61
}
62
63
class MultiRoute extends Route {
64
constructor(overlay, elm, paths_data) {
65
if (overlay) {
66
paths_data = paths_data.substr(9);
67
}
68
let paths = [];
69
paths_data.split(",").forEach(name => {
70
paths.push(name.trim());
71
});
72
super(overlay, elm, paths);
73
}
74
75
getCanonicalPath() {
76
if (this.paths[0].substr(0, 1) == "/") {
77
return this.paths[0];
78
}
79
if (this.paths.length > 1) {
80
return this.paths[1];
81
}
82
return "/" + this.paths[0];
83
}
84
}
85
86
class StandardRoute extends MultiRoute {
87
constructor(overlay, elm, paths) {
88
super(overlay, elm, elm.getAttribute("data-route"));
89
}
90
}
91
92
class RegexRoute extends Route {
93
constructor(overlay, elm) {
94
let regexp = elm.getAttribute("data-route").substr(2);
95
if (overlay) {
96
regexp = regexp.substr(9);
97
}
98
super(overlay, elm, [regexp]);
99
this.regex = new RegExp(regexp);
100
}
101
102
getArgs(path) {
103
if (path === undefined) {
104
path = single.getCurrentPath();
105
}
106
let res = this.regex.exec(path);
107
if (res && res.length > 0) {
108
return res;
109
}
110
return false;
111
}
112
}
113
114
class SingleApp extends EventEmitter {
115
constructor() {
116
super();
117
this.routes = [];
118
this.routes_populated = false;
119
if (!head_include) {
120
this.populateRoutes();
121
}
122
window.onpopstate = event => {
123
event.preventDefault();
124
single.loadRoute();
125
};
126
this.timeouts = [];
127
this.intervals = [];
128
}
129
130
populateRoutes() {
131
if (this.routes_populated) {
132
return;
133
}
134
document.body.querySelectorAll("[data-route]").forEach(elm => {
135
let data = elm.getAttribute("data-route"),
136
overlay = false;
137
if (data.substr(0, 9) == "overlay: ") {
138
data = data.substr(9);
139
overlay = true;
140
}
141
if (data.substr(0, 2) == "~ ") {
142
this.routes.push(new RegexRoute(overlay, elm));
143
} else {
144
this.routes.push(new StandardRoute(overlay, elm));
145
}
146
});
147
if (this.routes.length == 0) {
148
console.error("[single.js] You need to define at least one route");
149
}
150
this.routes.forEach(route => {
151
route.paths.forEach(path => {
152
for (let i = 0; i < this.routes; i++) {
153
if (this.routes[i] !== route && this.routes[i].paths.indexOf(path) > -1) {
154
console.error("[single.js] Duplicate path: " + path);
155
}
156
}
157
});
158
});
159
document.body.addEventListener("click", event => {
160
let elm = event.target;
161
while (elm && !(elm instanceof HTMLAnchorElement)) {
162
elm = elm.parentNode;
163
}
164
if (
165
elm instanceof HTMLAnchorElement &&
166
!elm.hasAttribute("target") &&
167
elm.hasAttribute("href") &&
168
elm.getAttribute("href").substr(0, 1) == "/"
169
) {
170
event.preventDefault();
171
single.loadRoute(new URL(elm.href));
172
}
173
});
174
this.routes_populated = true;
175
}
176
177
getRoute(route) {
178
this.populateRoutes();
179
let is_elm = route instanceof HTMLElement;
180
if (is_elm) {
181
if (!route.hasAttribute("data-route")) {
182
throw "Invalid route element: " + route;
183
}
184
route = route.getAttribute("data-route");
185
if (route.substr(0, 9) == "overlay: ") {
186
route = route.substr(9);
187
}
188
if (route.substr(0, 2) == "~ ") {
189
route = route.substr(2);
190
} else {
191
route = route.split(",")[0];
192
}
193
} else {
194
if (route.substr(0, 9) == "overlay: ") {
195
route = route.substr(9);
196
}
197
if (route.substr(0, 2) == "~ ") {
198
route = route.substr(2);
199
}
200
}
201
for (let i = 0; i < this.routes.length; i++) {
202
if (this.routes[i].paths.indexOf(route) > -1) {
203
return this.routes[i];
204
}
205
}
206
if (!is_elm) {
207
return this.getRoutes(route)[0];
208
}
209
}
210
211
getRoutes(route) {
212
let routes = [];
213
try {
214
document.querySelectorAll(route).forEach(elm => {
215
try {
216
let route = this.getRoute(elm);
217
if (route) {
218
routes.push(route);
219
}
220
} catch (ignored) {}
221
});
222
} catch (ignored) {}
223
return routes;
224
}
225
226
loadRoute(path) {
227
this.populateRoutes();
228
this.timeouts.forEach(clearTimeout);
229
this.intervals.forEach(clearInterval);
230
if (path === undefined) {
231
path = new URL(location.href);
232
} else if (typeof path == "string" && path.substr(0, 1) == "/") {
233
path = new URL(location.protocol + location.hostname + path);
234
}
235
let route,
236
args = false,
237
urlextra = "";
238
if (path instanceof URL) {
239
urlextra = path.search + path.hash;
240
path = decodeURIComponent(path.pathname);
241
}
242
for (let i = 0; i < this.routes.length; i++) {
243
if (this.routes[i] instanceof RegexRoute) {
244
args = this.routes[i].getArgs(path);
245
if (args !== false) {
246
route = this.routes[i];
247
break;
248
}
249
} else if (this.routes[i].paths.indexOf(path) > -1) {
250
route = this.routes[i];
251
break;
252
}
253
}
254
if (route === undefined) {
255
route = this.getRoute("404");
256
if (route === null) {
257
route = this.routes[0];
258
path = route.getCanonicalPath();
259
}
260
}
261
if (path.substr(0, 1) != "/") {
262
path = route.getCanonicalPath();
263
}
264
if (args === false) {
265
args = [path];
266
}
267
route.fire("beforeload", args);
268
this.fire("route_beforeload", {
269
route: route,
270
args: args
271
});
272
this.routes.forEach(r => {
273
if (r !== route) {
274
r.elm.classList.remove("route-current");
275
if (!route.overlay || r.overlay) {
276
r.elm.classList.remove("route-visible");
277
}
278
}
279
});
280
route.elm.classList.add("route-current", "route-visible");
281
path += urlextra;
282
if (this.getCurrentPath() != path) {
283
history.pushState({}, route.title, path);
284
}
285
document.querySelector("title").textContent = route.title;
286
this.fire("route_load", {
287
route: route,
288
args: args
289
});
290
route.fire("load", args);
291
}
292
293
getCurrentRoute() {
294
return this.getRoute(".route-current");
295
}
296
297
getCurrentPath() {
298
return location.pathname + location.search + location.hash;
299
}
300
301
setTimeout(f, i) {
302
this.timeouts.push(window.setTimeout(f, i));
303
}
304
305
setInterval(f, i) {
306
this.intervals.push(window.setInterval(f, i));
307
}
308
}
309
310
console.assert(!("single" in window));
311
window.single = new SingleApp();
312
if (["interactive", "complete"].indexOf(document.readyState) > -1) {
313
window.single.loadRoute();
314
} else {
315
document.addEventListener("DOMContentLoaded", () => window.single.loadRoute());
316
}
317
})();
@@ -0,0 +1,17 @@
1
@media (min-width: 992px) {
2
body.logged-in #main-view {
3
display: grid;
4
grid-template-columns: 1fr 8fr;
5
gap: 1.5rem;
6
}
7
8
body:not(.logged-in) #sidebar {
9
display: none;
10
}
11
}
12
13
body:not(.logged-in) .navbar-toggler,
14
body:not(.logged-in) .nav-item.dropdown,
15
body:not(.logged-in) #refresh-note {
16
display: none;
17
}