-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
executable file
·141 lines (124 loc) · 4.57 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Markdown live demo</title>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="demo.css">
</head>
<body>
<div class="container">
<h1>jQuery Markdown live demo</h1>
<hr />
<h2>Instance 1</h2>
<div class="row">
<div class="col-md-12">
<div class="bar">
<ul class="markdownlive-bar bar1">
<li title="Bold" data-before="**" data-after="**" data-placeholder="some text in bold">
<i class="fa fa-bold"></i>
</li>
<li title="Italics" data-before="*" data-after="*" data-placeholder="some text in italic">
<i class="fa fa-italic"></i>
</li>
<li title="Link" data-before="[ " data-after="](http:// "Link title")" data-placeholder="link">
<i class="fa fa-link"></i>
</li>
<li title="Image" data-before="![Alt text](" data-after=")" data-placeholder="http://">
<i class="fa fa-picture-o"></i>
</li>
<li title="Unordered list" data-before="* " data-after="" data-extendselect="1">
<i class="fa fa-list-ul"></i>
</li>
<li title="Ordered list" data-before="1. " data-after="" data-placeholder="Item 1 2. Item 2 3. Item 3 " data-extendselect="1">
<i class="fa fa-list-ol"></i>
</li>
<li title="Blocks" data-before=" " data-after="" data-placeholder="A block content" data-block="1" data-extendselect="1">
<i class="fa fa-indent"></i>
</li>
<li title="Table" data-before="" data-placeholder="First Header |Second Header ------------- |------------- Content cell 1 |Content cell 2 Content cell 3 |Content cell 4 " data-after="" data-block="1">
<i class="fa fa-table"></i>
</li>
<li title="Quote" data-before="> " data-after="" data-extendselect="1" data-block="1" data-placeholder="Quoted text">
<i class="fa fa-quote-right"></i>
</li>
<li title="Horizontal rule" data-before="***" data-after="" data-extendselect="1" data-block="1">
<i class="fa fa-ellipsis-h"></i>
</li>
<li title="Center" data-before="<center>" data-after="</center>" data-extendselect="1">
<i class="fa fa-align-center"></i>
</li>
</ul>
</div>
</div>
<div class="col-md-6">
<textarea data-bar=".bar1" data-preview=".preview1">
# jQuery Markdown live : a minimalist but customizable jquery markdown plugin editor with live preview
***
**Bold** *Italic* [Our website](http://www.spotlab.net "Spotlab")
***
Image
![Our logo](http://www.spotlab.net/assets/img/logo/[email protected])
***
First Header |Second Header
------------- |-------------
Content cell 1 |Content cell 2
Content cell 3 |Content cell 4
***
This is a block content
***
Sorted list
1. List 1.1
2. List 1.2
3. List 1.3
Unsorted list
* List 2.1
* List 2.1.1
* List 2.1.2
* List 2.2
* List 2.3
</textarea>
</div>
<div class="col-md-6">
<div class="markdownlive-preview preview1"></div>
</div>
</div>
<h2>Instance 2</h2>
<div class="row">
<div class="col-md-12">
<div class="bar">
<ul class="markdownlive-bar bar2">
<li title="Bold" data-before="**" data-after="**" data-placeholder="some text in bold">
<i class="fa fa-bold"></i>
</li>
<li title="Italics" data-before="*" data-after="*" data-placeholder="some text in italic">
<i class="fa fa-italic"></i>
</li>
<li title="Link" data-before="[ " data-after="](http:// "Link title")" data-placeholder="link">
<i class="fa fa-link"></i>
</li>
<li title="Image" data-before="![Alt text](" data-after=")" data-placeholder="http://">
<i class="fa fa-picture-o"></i>
</li>
</ul>
</div>
</div>
<div class="col-md-6">
<textarea data-bar=".bar2" data-preview=".preview2">
# jQuery Markdown live : a minimalist but customizable jquery markdown plugin editor with live preview
***
**Bold** *Italic* [Our website](http://www.spotlab.net "Spotlab")
</textarea>
</div>
<div class="col-md-6">
<div class="markdownlive-preview preview2"></div>
</div>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/js-markdown-extra/1.2.4/js-markdown-extra.min.js"></script>
<script src="jquery.markdown-live.js"></script>
<script src="demo-init.js"></script>
</body>
</html>