-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
332 lines (302 loc) · 13.2 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<noscript>
<div style="position: fixed;_position: absolute;height: 100%;width: 100%;background-color: white;z-index: 114514;">
<h1 style="text-align: center">此页面需要JavaScript的支持,请在浏览器设置页面允许使用Javascript。</h1>
</div>
</noscript>
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes"/>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon"/>
<!--PWA-->
<link rel="manifest" href="manifest.json"/>
<!--PWA-->
<meta http-equiv="X-UA-Compatible" content="IE=5">
<link rel="stylesheet" href="css/NotoSansSC.css">
<link href="css/css.css" type="text/css" rel="stylesheet">
<link href="css/functions.css" type="text/css" rel="stylesheet">
<link href="fun/fun.css" type="text/css" rel="stylesheet">
<style type="text/css">
.robotBox, .userBox {
/*behavior: url(ie-css3.htc);*/
}
</style>
<script src="js/html5shiv.min.js"></script>
<script src="js/jQuery/jquery2/jquery-1.8.2.js"></script>
<script src="js/jQuery/jquery2/jquery-ui.js"></script>
<link href="js/jQuery/jquery2/jquery-ui.min.css" type="text/css" rel="stylesheet">
<script>
window.jQuery2 = window.$2 = jQuery.noConflict(true);
</script>
<script src="js/jQuery/jquery/jquery.min.js"></script>
<script src="js/jQuery/jqueryEasing/jquery.easing.min.js"></script>
<script src="js/jQuery/jqueryEasing/jquery.easing.compatibility.js"></script>
<script src="js/jQuery/jqueryColor/jquery.color.min.js"></script>
<script src="js/jQuery/jqueryScrollIntoView/jquery.scrollintoview.js"></script>
<script src="js/jQuery/jqueryMouseWheel/jquery.mousewheel.min.js"></script>
<script src="js/debug.js"></script>
<script src="js/PromptPopUpWindow.js"></script>
<script src="js/pwa.js"></script>
<!--Service Worker-->
<script src="js/ServiceWorker.js"></script>
<!--Service Worker-->
<script src="js/json2.js"></script>
<!-- <script src="//polyfill.io/v3/polyfill.min.js"></script><!–?version=3.111.0&callback=polyfillCallback–>-->
<!-- <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js"></script>-->
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js"></script>-->
<script src="js/crypto-js.min.js"></script>
<script src="js/compatible.js"></script>
<script src="js/svgImage.js"></script>
<script src="js/marked/marked.min.js"></script>
<script src="js/marked/highlight/index.umd.js"></script>
<script src="js/marked/highlight/highlight.min.js"></script>
<script src="js/marked/highlight/languages/go.min.js"></script>
<link href="js/marked/highlight/styles/a11y-dark.min.css" type="text/css" rel="stylesheet">
<script src="js/marked/linkify/index.umd.js"></script>
<script>
var headDom = $('head');
if (!window.marked || !window.markedHighlight || !window.hljs) {
headDom.append('<script src="js/showdown/dist/showdown.js"></' + "script>");
headDom.append('<script src="js/SyntaxHighlighter.load.js"></' + "script>");
window.marked = {
marked: function (markdownText) {
var conv = new showdown.Converter({metadata: true, converter: true});
function escapeReplaceHtml(html) {//转义html为文本
var text = document.createTextNode(html);
var div = document.createElement('div');
div.appendChild(text);
return div.innerHTML;
}
function escapeHtmlTags(text) {
return text.replace(/</g, '<').replace(/>/g, '>');
}
var html = conv.makeHtml(markdownText);
html = $(html);
html.children('pre code').each(function () {
var codeElement = $(this);
if (codeElement) {
console.log(codeElement);
// var HLcontent = SyntaxHighligher.highlight(codeElement.text());
// console.log(HLcontent);
// console.log(escapeReplaceHtml(codeElement.text()));
// codeElement.html(HLcontent);
}
})
return html;
}
}
} else {
headDom.append('<script src="js/marked/marked.load.js"></' + "script>");
}
</script>
<script src="js/download.compatible.js"></script>
<script src="js/js.cookie.min.js"></script>
<script src="js/copy.js"></script>
<script>
window.ClipboardJS = window.ClipboardPlugin;
</script>
<script src="fun/fun.js"></script>
<script src="js/storage.js" defer></script>
<script src="js/setting-config.js" defer></script>
<!-- <script src="js/save-messages.js" defer></script>-->
<script src="js/proxy.js" defer></script>
<script src="js/multipleConversationManagement.js" defer></script>
<script src="js/isCssStyleSupported.js" defer></script>
<script src="js/main.js" defer></script>
<script defer>
$(document).ready(function () {
// PromptPopUpWindow.messagePopUpWindow('新年、元旦快乐').open();
});
</script>
<title>ChatGPT Free</title>
<!--[if lte IE 8]>
<style>
/* 在IE8及以下版本中应用的样式 */
#chat_messages {
height: 100%;
padding-bottom: 30px;
margin-bottom: 30px;
}
</style>
<![endif]-->
<!--[if lte IE 7]>
<style>
/* 在IE7及以下版本中应用的样式 */
/*#chat_messages {*/
/* height: 300px;*/
/*}*/
</style>
<![endif]-->
<!--[if lte IE 6]>
<style>
.msgFun span {
font-size: 16px;
}
body {
text-align: center;
}
#tfc_show_btn {
margin-top: 5px;
}
#tfc_buttons .fu-btn {
margin-top: -5px;
}
</style>
<![endif]-->
<script src="js/visibility/visibility.core.js"></script><!-- from: https://github.com/ai/visibilityjs -->
<script src="js/visibility/visibility.fallback.js"></script>
<script>
window.defaultTitle = $(document).attr('title');
window.changePageTitle = function (title, waitingTime) {
if (title) {
$(document).attr('title', title + ' - ' + window.defaultTitle);
} else {
$(document).attr('title', window.defaultTitle);
}
if (typeof waitingTime === 'number') {
setTimeout(function () {
window.changePageTitle();
}, waitingTime);
}
}
Visibility.change(function (e, state) {
if (state === 'hidden') {
changePageTitle('在这聊天');
} else {
changePageTitle('欢迎回来', 1000);
}
});
</script>
<style>
.DisplayNone {
display: none;
}
</style>
</head>
<body>
<h1 style="text-align: center;display: none">AI ChatBot</h1>
<div id="leftFunctionBar">
<table>
<tbody>
<tr>
<td class="theTopHalf">
<div style="height: 100%;width: 100%;">
<div style="padding-left: 30px;padding-right: 30px;vertical-align: top;margin-top: 10px;height: 60px;text-align: center;overflow: hidden">
<span style="font-weight: bold;font-size: 20px;vertical-align: middle;line-height: 60px">ChatGPT FREE </span>
<img src="icon/windows11/Square150x150Logo.scale-400.transparent.png" alt="" id="websiteIcon"
class="disable-selection">
</div>
<div style="font-size: 10px;padding: 20px 20px 20px 30px;">
免费ChatGPT,您可以免费的使用。
</div>
<div style="text-align: center" class="buttonGroup">
<span class="btn disable-selection btn-box-shadow" id="settingsButton" tabindex="0">
<img src="svg/icons8-setting.svg" alt="" class="disable-selection">
<span>设置</span>
</span>
<span class="btn disable-selection btn-box-shadow" id="PWA_web_app_install" tabindex="0">
<img src="svg/application-one.svg" alt="" class="disable-selection">
<span>应用</span>
</span>
</div>
</div>
</td>
</tr>
<tr>
<td class="theBottomHalf">
<div style="height: 100%;width: 100%;overflow-y: auto;overflow-x: hidden;" id="conversationGroup">
<div class="ConversationsSelectionBox btn-box-shadow" tabindex="0"
onclick="var FunBar = $('#leftFunctionBar');if ((FunBar.css('left')==='0px')&&(documentSize.width() < 700)){$('#messageListSwitch').click();FunBar.data('status','auto')}">
<span style="margin: 10px;display: inline-block">默认对话</span>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="currentChatInformation">
<table style="width: 100%;height: 100%">
<tr>
<td id="functionsInTheInformationBar">
<img src="svg/arrow-back-5e5e5e.svg" alt="" id="messageListSwitch" class="fu-btn disable-selection"
tabindex="0">
</td>
<td id="chatTitleInTheInformationBar">
<!--聊天-->
</td>
</tr>
</table>
</div>
<div id="chat_content" class="border-1px">
<div id="chat_messages">
<div class="robotBoxContainer msgContainer DisplayNone">
<div class="msgFun robotFun disable-selection no-scrollbar">
<span>删除</span><span>复制</span><span>编辑</span><span>发送</span><!--<span>停止</span>-->
</div>
<div class="robotBox msgBox"></div>
</div>
<div class="userBoxContainer msgContainer DisplayNone">
<div class="msgFun userFun disable-selection no-scrollbar">
<span>删除</span><span>复制</span><span>编辑</span><span>发送</span>
</div>
<div class="userBox msgBox"></div>
</div>
</div>
<div id="chat_input">
<div id="functionsOnTheInputBox"></div>
<div id="textarea_parent">
<label for="userInput">
<textarea id="userInput" title="输入问题" placeholder="请问您需要什么帮助?" tabindex="1"></textarea>
</label>
<img id="send-btn" src="svg/send-btn.svg" alt="" class="disable-selection fu-btn" tabindex="1">
</div>
<!-- <img id="more-btn" src="svg/outline-more.svg" onerror="this.src='img/outline-more.png'" alt=""-->
<!-- class="disable-selection fu-btn">-->
</div>
<div id="outer_function_container" class="border-1px no-scrollbar">
<img onclick="SaveMsgObj.clearMessages();SaveMsgConstructor();" alt="" src="svg/delete.svg"
id="clear-btn"
style="vertical-align: middle"
class="disable-selection fu-btn"
tabindex="0">
</div>
<div id="top_function_container">
<div id="tfc_buttons" class="no-scrollbar synchronized-vertical-scrolling">
</div>
<div id="tfc_show_btn" class="disable-selection">
<img src="svg/double-alt-arrow-left-line-duotone.svg" alt="" style="height: 20px" class="disable-selection">
</div>
</div>
</div>
<div style="display: none">
<h3 style="
text-align: center;
line-height: 100%;
">
<a target="_blank" href="https://github.com/gxlydlyf/chatbot"
style="text-decoration-line: none;color: black;cursor: pointer" class="jump_to_source"><img
src="svg/github.svg"
onerror="this.src='img/github.png'"
alt=""
style="
outline:none;border:none;vertical-align: middle;width: 24px;height: 24px">
<span style="
text-decoration-line: underline;
text-underline-offset: 4px;
">Repository
</span></a>
</h3>
<div style="text-align: center">
<a target="_blank" href="https://icons8.com/icon/4GhGzHg3nZeG/chatgpt">ChatGPT</a>
icon by <a target="_blank" href="https://icons8.com">Icons8</a>
<a target="_blank" href="https://icons8.com/icon/s5NUIabJrb4C/settings">Setting</a>
icon by <a target="_blank" href="https://icons8.com">Icons8</a>
</div>
<button onclick="downloadFile('./file/stuck.bat')" style="display: block;margin: 20px auto auto auto">点我下载很卡的文件
</button>
</div>
</body>
</html>