generated from x-dr/telegraph-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (156 loc) · 9.21 KB
/
index.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Upload</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" rel="stylesheet">
<link href="/asset/css/notifyme.css" rel="stylesheet">
<link href="/asset/css/style.css" rel="stylesheet">
<!-- bootstrap-fileinput CSS -->
<link href="https://cdn.staticfile.org/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/css/fileinput.min.css" rel="stylesheet">
<link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./gallery.html">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./about.html">About</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container kv-main">
<div class="page-header">
<h1>图片或视频上传</h1> 每个文件最大 5 MB。每个请求最多 100 个文件。
</div>
<form enctype="multipart/form-data">
<div class="form-group" style="max-height: 2000px;">
<input id="file" type="file" multiple class="file" data-overwrite-initial="false"
data-min-file-count="1" name="file" accept="image/*, video/*">
</div>
</form>
<form id="upload_option" enctype="multipart/form-data">
</form>
<div id="showurl" style="display: none;">
<ul class="nav nav-tabs" id="navTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="imagedetail-tab" data-bs-toggle="tab"
data-bs-target="#imagedetail-panel" type="button" role="tab" aria-controls="home-tab-pane"
aria-selected="true">URL</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="htmlcode-tab" data-bs-toggle="tab" data-bs-target="#htmlcode-panel"
type="button" role="tab" aria-controls="profile-tab-pane" aria-selected="false">HTML</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="bbcode-tab" data-bs-toggle="tab" data-bs-target="#bbcode-panel"
type="button" role="tab" aria-controls="contact-tab-pane" aria-selected="false">BBCode</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="markdown-tab" data-bs-toggle="tab" data-bs-target="#markdown-panel"
type="button" role="tab" aria-controls="disabled-tab-pane"
aria-selected="false">Markdown</button>
</li>
</ul>
<div id="navTabContent" class="tab-content" style="border:none;">
<div class="tab-pane fade show active" id="imagedetail-panel" role="tabpanel"
aria-labelledby="imagedetail-tab">
<fieldset>
<table class="table table-bordered">
<tbody id="imagedetail"></tbody>
</table>
</fieldset>
</div>
<div class="tab-pane fade" id="htmlcode-panel" role="tabpanel" aria-labelledby="htmlcode-tab">
<fieldset>
<table class="table table-bordered">
<tbody id="htmlcode"></tbody>
</table>
</fieldset>
</div>
<div class="tab-pane fade" id="bbcode-panel" role="tabpanel" aria-labelledby="bbcode-tab">
<fieldset>
<table class="table table-bordered">
<tbody id="bbcode"></tbody>
</table>
</fieldset>
</div>
<div class="tab-pane fade" id="markdown-panel" role="tabpanel" aria-labelledby="markdown-tab">
<fieldset>
<table class="table table-bordered">
<tbody id="markdown"></tbody>
</table>
</fieldset>
</div>
</div>
</div>
<div class="page-footer"></div>
</div>
<footer class="footer">
<div class="container text-center">
<p class="text-muted">Copyright Ⓒ 2023 All rights reserved. 请勿上传违反中国法律的图片,违者后果自负。
本程序基于Telegraph,开源于GitHub <a href="https://github.com/x-dr/telegraph-Image" target="_blank" >telegraph-Image</a></p>
</div>
</footer>
<div id="lightbox-overlay" class="lightbox-overlay">
<img id="lightbox-image" class="lightbox-image" src="">
</div>
<script id="image-template" type="text/x-handlebars-template">
<tr>
<td class="image-code-cover">
<img class="lazy" onclick="showImage(this)" onload="DrawImage(this, 100, 100)" src="{{url}}">
</td>
<td>
<!-- <div class="dlinput_header">URL</div> -->
<div class="dlinput_container">
<input class="form-control" type="text" onclick="this.select();" value="{{code}}">
<div style="margin-top: 5px;"></div>
<input class="form-control" type="text" onclick="this.select();" value="{{wp}}">
<div style="margin-top: 5px;"></div>
<input class="form-control" type="text" onclick="this.select();" value="{{raw}}">
</div>
</td>
<!-- <td style="width:260px;" class="advert"></td> -->
</tr>
</script>
<!-- jQuery -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/datatables/1.10.21/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/datatables/1.10.21/js/dataTables.bootstrap.min.js"></script>
<!-- Bootstrap JS -->
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.min.js"></script>
<!-- Bootstrap 3.x 的增强型 HTML 5 文件输入,具有文件预览、多项选择、ajax 上传和更多功能。 -->
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/fileinput.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/plugins/buffer.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/plugins/filetype.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/locales/zh.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/plugins/sortable.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.5.2/js/plugins/piexif.min.js"></script>
<!-- DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not. -->
<script src="https://cdn.bootcdn.net/ajax/libs/dompurify/3.0.2/purify.min.js"></script>
<!-- Handlebars 是一个 JavaScript 语义模板库,通过对视图(view)和数据的分离来快速构建 Web 模板。 -->
<script src="https://cdn.bootcdn.net/ajax/libs/handlebars.js/4.7.7/handlebars.min.js"></script>
<!-- SweetAlert 是一个 JavaScript 插件,能够完美替代 JavaScript 自带的 alert 弹出框 -->
<script src="https://cdn.bootcdn.net/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
<!--Lazyload images with jQuery -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script>
<script src="./asset/js/upload.js"></script>
</body>
</html>