-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
187 lines (181 loc) · 5.55 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
---
layout: page
bodyClass: page index
---
<div class="index-main-background"></div>
<div class="container">
<h1 class="text-center index-title">
<span class="img-index-title"></span>
<span class="img-index-title-mobile"
>Super Simple WYSIWYG<br />Editor on Bootstrap</span
>
<a
href="{{ site.repository }}/releases/download/v{{ site.version }}/summernote-{{ site.version }}-dist.zip"
class="index-download"
>
<span class="img-index-download"></span>
</a>
</h1>
</div>
<div class="page-container index-section-1">
<div id="summernote">
<p><br /></p>
</div>
<div class="placeholder">
hi,<br />
we are summernote.<br />
please, write text here!<br />
super simple WYSIWYG editor on Bootstrap
</div>
<div class="row card-list">
<div class="card-arrow"></div>
<div class="card-list-inner">
<div class="card-item">
<a href="/getting-started/#installation">
<span class="img-index-install"></span>
<h3 class="card-title">Easy to Install</h3>
<p class="card-body">
Simply download and attach your js, css with bootstrap.
</p>
</a>
</div>
<div class="card-item">
<a href="/deep-dive/#customization">
<span class="img-index-customizing"></span>
<h3 class="card-title">Customization</h3>
<p class="card-body">
Customize by Initializing various options and modules.<br />
</p>
</a>
</div>
<div class="card-item">
<a href="/examples">
<span class="img-index-shortcuts"></span>
<h3 class="card-title">Examples</h3>
<p class="card-body">
See all useful features of summernote in action.
</p>
</a>
</div>
<div class="card-item">
<a href="{{ site.repository }}">
<span class="img-index-opensource"></span>
<h3 class="card-title">Open Source</h3>
<p class="card-body">
Summernote is licensed under MIT and maintained by the community.
</p>
</a>
</div>
<div class="card-item">
<a href="/getting-started/#integration">
<span class="img-index-backend"></span>
<h3 class="card-title">Integration</h3>
<p class="card-body">
Integrate it with any back-end. 3rd parties available in django,
rails, angular.
</p>
</a>
</div>
</div>
</div>
</div>
<div class="index-section-2">
<div class="page-container">
<div class="row">
<div class="col-sm-5 summary-section">
<h3>Features</h3>
<ul style="list-style: none; padding: 0">
<li>Simple and Easy to Use UI</li>
<li>Lightweight: 100KiB</li>
<li>Supports Browser: Safari, Chrome, Firefox, Edge</li>
<li>Supports OS: Windows, macOS, Linux</li>
<li>Supports Bootstrap: 3.x.x to 5.x.x</li>
</ul>
<h3>Donate</h3>
<div class="row">
<div class="col-sm-12">
<div>
<a
href="https://opencollective.com/summernote#backers"
target="_blank"
><img
src="https://opencollective.com/summernote/backers.svg?width=500"
style="width: 100%; height: auto"
/></a>
</div>
</div>
</div>
<h3>Sponsor</h3>
<div class="row">
<div class="col-sm-12 summary-section">
<div>
<a
href="https://www.filestack.com/signup-start/?utm_source=Summernote&utm_medium=Leads%20Acquisition&utm_content=SummernoteROS2024&utm_campaign=SummernoteROS2024"
>
<img
src="/img/vendor/filestack.png"
alt="File Uploader & File Upload API - Filestack"
style="width: 100%; height: auto"
/>
</a>
</div>
</div>
</div>
</div>
<div class="col-sm-7 twitter-list">
<h3 class="twitter-title">Our Amazing Contributors:</h3>
<a href="https://github.com/summernote/summernote/graphs/contributors"
><img
src="https://contrib.rocks/image?repo=summernote/summernote"
alt="contributors"
style="width: 100%; height: auto"
/></a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
// index page card list
if ($(".card-list").length) {
var $cardArrow = $(".card-arrow");
var $cardListInner = $(".card-list-inner");
$cardListInner.scroll(function () {
$cardArrow.addClass("disappear");
if ($cardListInner.scrollLeft() < 20) {
$cardArrow.removeClass("disappear");
}
});
}
// main summernote with custom placeholder
var $placeholder = $(".placeholder");
$("#summernote").summernote({
height: 300,
codemirror: {
mode: "text/html",
htmlMode: true,
lineNumbers: true,
theme: "monokai",
},
callbacks: {
onInit: function () {
$placeholder.show();
},
onFocus: function () {
$placeholder.hide();
},
onBlur: function () {
var $self = $(this);
setTimeout(function () {
if (
$self.summernote("isEmpty") &&
!$self.summernote("codeview.isActivated")
) {
$placeholder.show();
}
}, 300);
},
},
});
});
</script>