-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
210 lines (201 loc) · 12.8 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
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<title>note live - 在线记事本</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="记事本,临时记事本,在线记事本,加密记事本">
<meta name="description"
content="「note live」是一个在线的免账户的临时记事本,支持加密、分享等。可以快速分享或记录文字。此外还有更加高级的玩法,如渲染HTML页面、渲染Markdown、充当临时API。">
<script src="//cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<link rel="manifest" href="/manifest.e992675c708995cc3363f1ba1bc81d9e.json" /><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name" content="Note Live"><link rel="apple-touch-icon" sizes="57x57" href="/icons-5482/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/icons-5482/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/icons-5482/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/icons-5482/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/icons-5482/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/icons-5482/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/icons-5482/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/icons-5482/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/icons-5482/apple-touch-icon-180x180.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="Note Live"><link rel="icon" type="image/png" sizes="32x32" href="/icons-5482/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/icons-5482/favicon-16x16.png"><link rel="shortcut icon" href="/icons-5482/favicon.ico"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="/icons-5482/apple-touch-startup-image-320x460.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="/icons-5482/apple-touch-startup-image-640x920.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="/icons-5482/apple-touch-startup-image-640x1096.png"><link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="/icons-5482/apple-touch-startup-image-750x1294.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="/icons-5482/apple-touch-startup-image-1182x2208.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="/icons-5482/apple-touch-startup-image-1242x2148.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="/icons-5482/apple-touch-startup-image-748x1024.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="/icons-5482/apple-touch-startup-image-768x1004.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="/icons-5482/apple-touch-startup-image-1496x2048.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="/icons-5482/apple-touch-startup-image-1536x2008.png"><link rel="shortcut icon" href="/favicon.ico"><link href="/./assets/main-61e1.css" rel="stylesheet"></head>
<body id="body">
<br/>
<!--<br/>-->
<div id="password_div" style="display: none">
<div class="stack pwd_bg"></div>
<div class="password">
<div style="margin-top: 10px">
<label id="password_tip" for="password" style="color: black">编辑密码:</label>
<input id="password" maxlength="8" type="password">
<button id="password_btn">编辑</button>
<button id="readonly_btn">只读</button>
</div>
</div>
</div>
<div id="new_password_div" style="display: none">
<div class="stack pwd_bg"></div>
<div class="password">
<div style="float: right;margin-right: 10px">
<span id="new_password_cancel" style="color:lightsalmon;font-size: 20px ;cursor: pointer">X</span>
</div>
<div style="margin-top: 10px;text-align: left;margin-left: 10px">
<div>
<label for="lockType" title="可读模式无需输入密码即可查阅但是无法修改">加密模式(?):</label>
<select id="lockType">
<option value="rw">私有</option>
<option value="-w">可读</option>
</select>
</div>
<div style="margin-top: 10px">
<label id="new_password_tip" for="new_password"
style="color: black;margin-left: 5px">
输入新密码(留空删除密码):</label><br>
<input id="new_password" maxlength="8" type="password">
<button id="new_password_btn" style="margin-left: 20px">修改</button>
</div>
</div>
</div>
</div>
<div id="tips" class="tips" style="display:none"><span id="tip_content"></span><a
onclick="document.getElementById('tips').style.display='none'" href="javascript:" class="tip-close">关闭</a></div>
<div class="toolbar">
<div style="width: max-content">
<span id="tip" style="width: max-content;min-width: calc((100vw - 900px)/2);"> </span>
<span id="editDoc" style="display: none">
<a href="javascript:" title="编辑文件">
<span style="color: red; text-decoration: underline"><b>编辑文件</b></span></a>
</span>
<span style="margin-left: 30px">
<a onclick="leftVal = (screen.width - 800) / 2;topVal = (screen.height - 500) / 2;
window.open( '/html/#sponsor','_blank','height=500, width=800, toolbar=no, menubar=no, scrollbars=no,location=no, status=no,left='+leftVal+',top='+topVal);return false"
title="sponsor" style="cursor: pointer" target="_blank">
<span style="color: salmon; text-decoration: underline">赞助</span>
<span style="margin-left:2px;text-decoration:none">🎉</span></a>
<span class="toolbarSplit">|</span>
</span>
<span>
<span id="noteToolsBar">
<a href="#list" title="查看历史文件" target="_self">
<span style="color: steelblue; text-decoration: underline">列表</span></a>
<a href="#create" title="新建文件" target="_self">
<span style="margin-left: 10px;color: steelblue; text-decoration: underline">新建</span></a>
<span class="toolbarSplit">|</span>
</span>
<span id="renderApi">
<span>
<label for="contentType">语言:</label><select id="contentType">
<option value="markdown">markdown</option>
<option value="json">json</option>
<option value="html">html</option>
<option value="txt">txt</option>
</select>
</span>
<span style="margin-left: 20px">
<a id="api_url" style="color: steelblue" href="#" target="_blank">API</a>
</span>
</span>
<span id="workspaceNoteBar" style="display: none">
<span class="toolbarSplit">|</span>
<a href="javascript:copyUrl()" title="copyUrl">
<span style="color: steelblue; text-decoration: underline">分享</span></a>
<a href="javascript:window.open(location.href,'_blank')" id="openInNewTab" title="新窗口打开"
target="_blank">
<span style="margin-left:20px;color: steelblue; text-decoration: underline">新窗口打开</span></a>
</span>
</span>
<span id="coolab_count" style="margin-left: 50px;display: none">
当前在线人数:
</span>
<span id="right_tips" style="margin-left: 50px;display: none"></span>
</div>
</div>
<div id="loading" class="loading">
编辑器初始化中,请稍等...
</div>
<div class="stack ">
<div class="layer_1">
<div class="layer_2">
<div id="content_div" class="layer_3">
<div id="file_list" style="display: none">
<div class="list_outline">
<div class="list_head">
<div>List</div>
<div style="color: forestgreen;">====</div>
<a href="#create" style="color: dodgerblue">[create new]</a>
</div>
<div id="list_items" class="list"></div>
<div class="list_tail">点 [x] 删除本地记录不会删除线上数据</div>
</div>
</div>
<div id="content" class="contents"></div>
</div>
</div>
</div>
</div>
<br/>
<div id="controls" style="word-break: keep-all">
<a id="render_markdown" href="" target="_blank">Markdown渲染</a>
<a id="render_html" href="" target="_blank">Html渲染</a>
<a href="/html/#help" target="_blank">帮助与关于</a>
 | 
<span>
<a href="/mind/" title="高效工作空间" target="_blank">
<span style="color: lightsalmon; text-decoration: underline">MindZone</span></a>
<a href="/flow/" title="使用draw.io的API绘制流程图,数据保存在本服务中" target="_blank">
<span style="color: lightsalmon; text-decoration: underline">在线流程图</span></a>
</span>
 | 
<span>
©️<a href="https://github.com/othorizon" target="_blank" style="margin-left: 2px"><span
style="color: lightsalmon; text-decoration: underline">Rizon</span></a>
<a id="version" style="margin-left: 20px">v2.2.0</a>
</span>
</div>
<script>
(function () {
if (!navigator.serviceWorker || !navigator.serviceWorker.controller) {
$('.loading')
.css('line-height', '20px')
.append('<div>第一次加载速度较慢</div>')
}
document.getElementById("openInNewTab")
.href = window.location;
})();
function copyUrl() {
let text = window.location + "\n" + (window.noteName ? (window.noteName + " @ " + window.location.host) : document.title);
let tips = document.getElementById("right_tips");
if (window.clipboardData) {
window.clipboardData.setData('text', text);
} else {
(function (text) {
document.oncopy = function (e) {
e.clipboardData.setData('text', text);
e.preventDefault();
document.oncopy = null;
}
})(text);
document.execCommand('Copy');
}
tips.innerHTML = "<span style='color: red'>链接已复制到剪贴板</span>";
tips.style.display = "block";
setTimeout(() => {
tips.innerHTML = "";
tips.style.display = "none";
}, 3000);
}
</script>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?bd63420ad5e13e33f2c3f1f8ce0f3fc4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
(function () {
if (window.location.host.endsWith("notelive.cn")) {
let beian = document.createElement("a");
beian.innerText = "京ICP备19029021号-1";
beian.setAttribute("href", "http://beian.miit.gov.cn/");
beian.setAttribute("target", "_blank");
beian.setAttribute("rel", "nofollow");
document.getElementById("controls")
.appendChild(beian);
}
})();
</script>
<script type="text/javascript" src="/js/main-61e1.js"></script></body>
</html>