-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
356 lines (335 loc) · 12.5 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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>Editor.md examples</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="../css/editormd.css" />
<link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
<style>
#layout {
padding-bottom: 100px;
}
#header {
width: 100%;
color: #fff;
background: #2196F3;
padding: 60px 0;
text-align: center;
margin-bottom: 30px;
}
a {
color: #2196F3;
text-decoration: none;
}
#header h1 {
font-size: 45px;
font-weight: normal;
}
ul {
width: 90%;
padding-bottom:30px;
margin: 0 auto;
list-style: none;
}
ul li {
width: 24%;
margin-bottom: 4px;
display: inline-block;
}
ul li a {
color: #2196F3;
display: block;
padding: 4px 15px;
font-size: 14px;
text-align: left;
text-decoration: none;
-webkit-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
ul li a span {
color: #999;
display: block;
padding-top: 3px;
font-size: 80%;
}
ul li a:hover {
color: #fff;
background: #2196F3;
border-radius: 8px;
}
ul li a:hover span {
color: #fff;
}
.category, .footer {
width: 90%;
padding: 15px;
font-size: 18px;
margin: 15px auto 20px;
border-bottom: 1px solid #eee;
}
.footer {
border: none;
border-top: 1px solid #eee;
font-size: 12px;
margin-top: 30px;
padding-top: 35px;
text-align: right;
}
.menu {
margin-top: 20px;
text-align: center;
}
.menu a {
color: #fff;
display: inline-block;
text-decoration: none;
padding: 8px 15px;
border-radius: 5px;
-webkit-transition: background-color 300ms ease-out;
transition: background-color 300ms ease-out;
}
.menu a:hover {
background-color: #1A8BE8;
}
[href="#top"] {
color: #999;
float: right;
padding-top: 10px;
display: block;
text-decoration: none;
font-size: 12px;
font-weight: normal;
}
[href="#top"] .fa {
margin-left: 8px;
font-size: 1.4em;
}
</style>
</head>
<body>
<a name="top"></a>
<div id="layout">
<div id="header">
<h1><i class="editormd-logo editormd-logo-3x"></i></h1>
<h1>Editor.md Examples</h1>
<p>Open source online markdown editor.</p>
<div class="menu">
<a href="#basic">Basic</a>
<a href="#customs">自定义 Customs</a>
<a href="#markdown-extras">Markdown Extras</a>
<a href="#image-upload">Image Upload</a>
<a href="#events">事件处理 Events handle</a>
</div>
</div>
<h1 class="category"><a name="basic"></a>Basic</h1>
<ul>
<li>
<a href="./simple.html">简单示例 <span>Simple example</span></a>
</li>
<li>
<a href="./full.html">完整示例 <span>Full example</span></a>
</li>
<li>
<a href="./use-requirejs.html">使用 Require.js <span>Using Require.js</span></a>
</li>
<li>
<a href="./use-seajs.html">使用 Sea.js <span>Using Seajs</span></a>
</li>
<li>
<a href="./use-zepto.html">使用 Zepto.js <span>Using Zepto.js</span></a>
</li>
<li>
<a href="./form-get-value.html">表单取值 <span>Get textarea value in form</span></a>
</li>
<li>
<a href="./html-preview-markdown-to-html.html">非编辑时 Markdown 转 HTML 的显示处理 <span>Markdown to HTML for preview</span></a>
</li>
</ul>
<h1 class="category">
<a href="#top">TOP<i class="fa fa-angle-up"></i></a>
<a name="customs"></a>自定义 Customs
</h1>
<ul>
<li>
<a href="./custom-toolbar.html">自定义工具栏 <span>Custom toolbar</span></a>
</li>
<li>
<a href="./multi-languages.html">多语言 <span>Multi-languages for l18n</span></a>
</li>
<li>
<a href="./auto-height.html">自动高度 <span>Auto height</span></a>
</li>
<li>
<a href="./toolbar-auto-fixed.html">工具栏自动固定定位的开启与禁用 <span>Enable / disable toolbar auto fixed position.</span></a>
</li>
<li>
<a href="./dynamic-create-editormd.html">动态创建 Editor.md <span>Dynamic create Editor.md</span></a>
</li>
<li>
<a href="./delay-renderer-preview.html">延迟解析和预览 <span>Delay Rerender & Preview</span></a>
</li>
<li>
<a href="./multi-editormd.html">多个 Editor.md 并存 <span>Multi Editor.md</span></a>
</li>
<li>
<a href="./goto-line.html">跳转到指定的行 <span>Goto line</span></a>
</li>
<li>
<a href="./readonly.html">只读模式 <span>Read only mode</span></a>
</li>
<li>
<a href="./themes.html">自定义编辑器样式主题 <span>Setting / change editor style theme</span></a>
</li>
<li>
<a href="./search-replace.html">搜索替换功能 <span>Search / Replace</span></a>
</li>
<li>
<a href="./code-fold.html">代码折叠功能 <span>Code fold</span></a>
</li>
<li>
<a href="./custom-keyboard-shortcuts.html">自定义键盘快捷键 <span>Custom keyboard shortcuts</span></a>
</li>
<li>
<a href="./define-plugin.html">自定义插件 <span>Define extention plugins for Editor.md</span></a>
</li>
<li>
<a href="./manually-load-modules.html">手动加载依赖模块文件 <span>Manually loading dependent module files.</span></a>
</li>
<li>
<a href="./sync-scrolling.html">双向、单向或禁用同步滚动 <span>Bisync, Single, Disabled sync scrolling</span></a>
<li>
<li>
<a href="./external-use.html">外部使用工具栏的操作方法和对话框 <span>External use of toolbar handlers / modal dialog</span></a>
</li>
<li>
<a href="./resettings.html">加载完成且创建成功之后的重配置 <span>loaded resettings</span></a>
</li>
<li>
<a href="./change-mode.html">变身为代码编辑器 <span>Change mode become to the code editor</span></a>
</li>
<li>
<a href="./set-get-replace-selection.html">插入字符 / 设置和获取光标位置 / 设置、获取和替换选中的文本 <span>Insert value & Set / Get cursor & Set / Get / Replace selection</span></a>
</li>
<li>
<a href="./extends.html">扩展成员方法和属性 <span>Expanded of member methods and properties</span></a>
</li>
</ul>
<h1 class="category">
<a href="#top">TOP<i class="fa fa-angle-up"></i></a>
<a name="markdown-extras"></a>Markdown Extras
</h1>
<ul>
<li>
<a href="./html-tags-decode.html">识别和(过滤)解析 HTML 标签 <span>HTML tags (fliter) decode</span></a>
</li>
<li>
<a href="./toc.html">自动生成目录(下拉菜单) ToC / ToCM <span>Table of Contents (ToC)</span></a>
</li>
<li>
<a href="./task-lists.html">GFM 任务列表 <span>Github Flavored Markdown (GFM) Task Lists</span></a>
</li>
<li>
<a href="./@links.html">@链接 <span>@links</span></a>
</li>
<li>
<a href="./emoji.html">Emoji / Twemoji 表情 / Font Awesome 图标 <span>Emoji / Twemoji / Font Awesome icons</span></a>
</li>
<li>
<a href="./katex.html">科学公式 TeX <span>TeX / LaTeX (Based on KaTeX)</span> </a>
</li>
<li>
<a href="./flowchart.html">流程图 <span>FlowChart example</span></a>
</li>
<li>
<a href="./sequence-diagram.html">时序图 / 序列图 <span>Sequence Diagram example</span></a>
</li>
<li>
<a href="./page-break.html">分页符 <span>Page break</span></a>
</li>
</ul>
<h1 class="category">
<a href="#top">TOP<i class="fa fa-angle-up"></i></a>
<a name="image-upload"></a>Image Upload
</h1>
<ul>
<li>
<a href="./image-upload.html">图片上传 <span>Image upload</span></a>
</li>
<li>
<a href="./image-cross-domain-upload.html">图片跨域上传 <span>Image cross-domain upload</span></a>
</li>
</ul>
<h1 class="category">
<a href="#top">TOP<i class="fa fa-angle-up"></i></a>
<a name="events"></a>事件处理 Events handle
</h1>
<ul>
<li>
<a href="./on-off.html">事件注册和解除方法 <span>On / Off (bind/unbind) event handle</span></a>
</li>
<li>
<a href="./onload.html">加载完成事件处理 <span>Onload event handle example</span></a>
</li>
<li>
<a href="./onchange.html">变化监听处理 <span>Onchange event handle example</span></a>
</li>
<li>
<a href="./onfullscreen.html">全屏事件处理 <span>Onfullscreen / onfullscreenExit event handle example</span></a>
</li>
<li>
<a href="./onresize.html">Onresize<span>Onresize event handle</span></a>
</li>
<li>
<a href="./onpreviewing-onpreviewed.html">Onpreviewing / Onpreviewed<span>Onpreviewing / Onpreviewed event handle</span></a>
</li>
<li>
<a href="./onwatch-onunwatch.html">Onwatch / Onunwatch<span>Onwatch / Onunwatch event handle</span></a>
</li>
<li>
<a href="./onscroll-onpreviewscroll.html">Onscroll / Onpreviewscroll<span>Onscroll / Onpreviewscroll event handle</span></a>
</li>
</ul>
<div class="clear"></div>
<div class="footer">
<p>
<a href="https://pandao.github.io/editor.md/" target="_blank" title="Editor.md">
<img src="https://pandao.github.io/editor.md/images/logos/editormd-logo-64x64.png"/>
</a>
</p>
<p>Copyright © 2015 <a href="https://pandao.github.io/editor.md/" target="_blank" title="Editor.md">Editor.md</a></p>
<p>Open source online markdown editor. <a href="https://github.com/pandao/editor.md" class="fa fa-github fa-lg" target="_blank" title="Editor.md in Github"></a></p>
<p>The <a href="https://github.com/pandao/editor.md/blob/master/LICENSE" target="_blank">MIT</a> license</p>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script>
var clickOrTouch = function(touchType) {
touchType = touchType || "touchend";
var eventType = "click";
try {
document.createEvent("TouchEvent");
eventType = touchType;
} catch(e) {}
return eventType;
};
$(function() {
$("a[href*=#]").bind(clickOrTouch(), function() {
if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname)
{
var hash = this.hash;
var target = $(hash);
target = target.length && target || $("[name=" + hash.slice(1) + "]");
if (target.length)
{
$("html, body").animate({
scrollTop: target.offset().top
}, 800);
return false;
}
}
});
});
</script>
</body>
</html>