forked from ZJU-CC98/Forum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.html
132 lines (124 loc) · 4.23 KB
/
reset.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CC98 论坛 - 清空缓存</title>
<link
rel="stylesheet"
href="/static/scripts/lib/bootstrap/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="/static/scripts/lib/bootstrap-icons/font/bootstrap-icons.css"
/>
</head>
<body>
<div class="container mt-3">
<h2 class="lead text-center">清空论坛缓存数据</h2>
<hr />
<div class="row justify-content-center">
<div class="col-12 col-sm-9 col-md-6">
<div class="card">
<div class="card-body">
<p>
如果你遇到无法访问论坛页面、无法登录、浏览内容时持续报错等问题,可以在这个页面清空论坛缓存数据,这可能有助于解决一些问题。
</p>
<p>
注意:清空缓存数据之后,你将需要重新使用用户名密码登录 CC98
论坛。
</p>
<p>
如果你确定要执行这个操作,请单击下面的<q>执行清空缓存操作</q>按钮。
</p>
<hr />
<div class="text-center">
<button
type="button"
class="btn btn-primary"
onclick="doClear();"
>
执行清空缓存操作
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="confirm-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">数据缓存清空确认</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<p>为了防止你误操作清空缓存数据,我们需要你再次确认本操作。</p>
<p>
如果你已经仔细阅读了页面上的说明并确定要执行清空操作,请单击<q>确认清空缓存</q>按钮。否则,请关闭对话框,或单击对话框外的任意空白区域。
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="doClear();">
确认清空缓存
</button>
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
关闭
</button>
</div>
</div>
</div>
</div>
<div id="finished-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">缓存清空完成</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<p>
论坛的缓存数据已经全部清空。你将在稍后自动跳转到 CC98 论坛首页。
</p>
<p>如果你的浏览器没有自动跳转,请单击下面的按钮进行手动跳转。</p>
<hr />
<div class="text-center">
<a href="/" class="btn btn-primary">跳转到 CC98 论坛首页</a>
</div>
</div>
</div>
</div>
</div>
<script
type="text/javascript"
src="/static/scripts/lib/bootstrap/js/bootstrap.bundle.min.js"
></script>
<script type="text/javascript">
var confirmDialog = new bootstrap.Modal("#confirm-modal");
var finishedDialog = new bootstrap.Modal("#finished-modal");
function doClear() {
confirmDialog.hide();
window.localStorage.clear();
finishedDialog.show();
setTimeout(function() {
location.href = "/";
}, 3000);
}
</script>
</body>
</html>