-
Notifications
You must be signed in to change notification settings - Fork 1
/
view.html
127 lines (120 loc) · 6.26 KB
/
view.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
<!--
Copyright 2022 Futrime & M1saka10010
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/normalize.css@8/normalize.css">
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/bootstrap-icons@1/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/view.css">
<title> - SHAO Pastebin</title>
</head>
<body>
<div class="container">
<header
class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom">
<a href="/" class="d-flex align-items-center mb-2 text-dark text-decoration-none mx-3">
<h1>SHAO Pastebin</h1>
</a>
<div class="text-end d-flex flex-wrap align-items-stretch justify-content-center">
<a class="text-decoration-none mb-2 " href="./create.html">
<button class="btn btn-outline-primary me-2 h-100 shao-create-button">NEW PASTE</button>
</a>
<a class="text-decoration-none mb-2" href="./list.html">
<button class="btn btn-outline-primary me-2 h-100 shao-list-button">MY PASTES</button>
</a>
<a class="text-decoration-none mb-2" href="./user.html">
<button class="btn btn-outline-primary me-2 h-100 shao-settings-button">SETTINGS</button>
</a>
<a class="text-decoration-none mb-2" href="./">
<button class="btn btn-outline-primary me-2 h-100 shao-login-button" type="button"
hidden>LOGIN</button>
</a>
<a class="text-decoration-none mb-2" href="./sign-up.html">
<button class="btn btn-outline-primary me-2 h-100 shao-sign-up-button" type="button" hidden>
SIGN UP
</button>
</a>
<button class="btn btn-outline-secondary mb-2 shao-logout-button">LOGOUT</button>
</div>
</header>
<main>
<label class="form-label shao-paste-id"></label>
<div class="input-group mb-3" hidden>
<span class="input-group-text">Title</span>
<input type="text" class="form-control bg-white shao-paste-title" placeholder="Required" readonly>
</div>
<div class="input-group mb-3" hidden>
<span class="input-group-text">Alias</span>
<input type="text" class="form-control shao-paste-alias" placeholder="Optional">
</div>
<div class="input-group mb-3" hidden>
<span class="input-group-text">Password</span>
<input type="text" class="form-control shao-paste-password" placeholder="Optional" disabled>
<div class="input-group-text">
<input class="form-check-input shao-paste-keep-password" type="checkbox" checked>
<span class="ms-1">Keep</span>
</div>
</div>
<div class="shao-paste-display"></div>
<textarea class="form-control bg-white shao-paste-textarea" rows="10" placeholder="Text here..." readonly
hidden></textarea>
<div class="text-danger shao-edit-paste-hint" hidden></div>
<div class="mt-3 d-flex">
<button type="button" class="btn btn-outline-primary me-2 shao-copy-id-link-button">
Copy ID link
</button>
<button type="button" class="btn btn-outline-primary me-2 shao-copy-alias-link-button">
Copy alias link
</button>
<button type="button" class="btn btn-outline-primary me-2 shao-edit-paste-button" hidden>
Edit this paste
</button>
<button type="button" class="btn btn-outline-primary me-2 shao-submit-paste-button" hidden>
Submit
</button>
<button type="button" class="btn btn-outline-danger me-2 shao-delete-paste-button" hidden>
Delete
</button>
</div>
</main>
<div class="modal fade shao-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Password required</h5>
</div>
<div class="modal-body">
<div class="mb-3">
<label class="col-form-label">Password</label>
<input type="text" class="form-control shao-modal-password">
<span class="text-danger shao-modal-hint" hidden></span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-primary shao-modal-continue">Continue</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://gcore.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://gcore.jsdelivr.net/npm/blueimp-md5@2/js/md5.min.js"></script>
<script src="https://gcore.jsdelivr.net/npm/marked@4/marked.min.js"></script>
<script src="https://gcore.jsdelivr.net/npm/dompurify@2/dist/purify.min.js"></script>
<script type="module" src="js/view.mjs" defer></script>
</body>
</html>