@cocreate/elements 1.17.15 → 1.17.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +3 -3
- package/.github/workflows/automated.yml +95 -95
- package/.github/workflows/manual.yml +44 -44
- package/CHANGELOG.md +1207 -1200
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +26 -26
- package/LICENSE +21 -21
- package/README.md +85 -85
- package/demo/index.html +40 -40
- package/docs/index.html +367 -367
- package/package.json +70 -70
- package/release.config.js +21 -21
- package/src/fetchSrc.js +60 -60
- package/src/index.js +206 -206
- package/webpack.config.js +84 -84
package/docs/index.html
CHANGED
|
@@ -1,367 +1,367 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta
|
|
8
|
-
name="description"
|
|
9
|
-
content="Fetch content into any html element by using attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags" />
|
|
10
|
-
<meta
|
|
11
|
-
name="keywords"
|
|
12
|
-
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
13
|
-
<meta name="robots" content="index,follow" />
|
|
14
|
-
<meta
|
|
15
|
-
property="og:image"
|
|
16
|
-
content="https://cdn.cocreate.app/docs/elements.png" />
|
|
17
|
-
|
|
18
|
-
<title>CoCreate-elements Documentation | CoCreateJS</title>
|
|
19
|
-
|
|
20
|
-
<!-- CoCreate Favicon -->
|
|
21
|
-
<link
|
|
22
|
-
rel="icon"
|
|
23
|
-
type="image/png"
|
|
24
|
-
sizes="32x32"
|
|
25
|
-
href="https://cocreate.app/images/favicon.ico" />
|
|
26
|
-
<link
|
|
27
|
-
rel="stylesheet"
|
|
28
|
-
href="/docs/index.css"
|
|
29
|
-
collection="files"
|
|
30
|
-
document_id="60888216117c640e7596303f"
|
|
31
|
-
name="src"
|
|
32
|
-
type="text/css"
|
|
33
|
-
save="true" />
|
|
34
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
|
35
|
-
</head>
|
|
36
|
-
|
|
37
|
-
<body>
|
|
38
|
-
<nav
|
|
39
|
-
class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
|
|
40
|
-
content_id="content"
|
|
41
|
-
scroll="sticky-nav,hide-nav"
|
|
42
|
-
scroll-up="10"
|
|
43
|
-
scroll-down="10"
|
|
44
|
-
collection="files"
|
|
45
|
-
document_id="60395ef42b3ac232657040fd"
|
|
46
|
-
name="src"></nav>
|
|
47
|
-
<sidenav
|
|
48
|
-
id="menuL"
|
|
49
|
-
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
50
|
-
resizable
|
|
51
|
-
resize-target="[content_id='content']"
|
|
52
|
-
resize-property="margin-left"
|
|
53
|
-
resize-value="width">
|
|
54
|
-
<menu
|
|
55
|
-
collection="files"
|
|
56
|
-
document_id="603717b07de7fb350ae9fec8"
|
|
57
|
-
name="src"></menu>
|
|
58
|
-
<div resize="right"></div>
|
|
59
|
-
</sidenav>
|
|
60
|
-
<main
|
|
61
|
-
class="padding-top:15px padding:15px@lg@xl"
|
|
62
|
-
content_id="content"
|
|
63
|
-
id="cocreate-elements">
|
|
64
|
-
<div
|
|
65
|
-
class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
66
|
-
<div class="display:flex align-items:center">
|
|
67
|
-
<h2>CoCreate-elements</h2>
|
|
68
|
-
</div>
|
|
69
|
-
<div
|
|
70
|
-
class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
71
|
-
<div
|
|
72
|
-
class="display:flex align-items:center transition:0.3s padding-left:10px"
|
|
73
|
-
share-network="true"
|
|
74
|
-
share-text="Fetch content into any html element by using attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags"
|
|
75
|
-
share-title="CoCreate elements"
|
|
76
|
-
share-height="600"
|
|
77
|
-
share-width="700"
|
|
78
|
-
share-media="https://cdn.cocreate.app/docs/elements.png"
|
|
79
|
-
hover="display:block!important"
|
|
80
|
-
hover-target=".social-networks">
|
|
81
|
-
<div class="display:none social-networks">
|
|
82
|
-
<a
|
|
83
|
-
class="margin-right:15px"
|
|
84
|
-
share-network="twitter"
|
|
85
|
-
title="Share on twitter"
|
|
86
|
-
><i
|
|
87
|
-
class="height:20px fill:#505050"
|
|
88
|
-
src="/assets/svg/twitter.svg"></i
|
|
89
|
-
></a>
|
|
90
|
-
<a
|
|
91
|
-
class="margin-right:15px"
|
|
92
|
-
share-network="facebook"
|
|
93
|
-
title="Share on Facebook"
|
|
94
|
-
><i
|
|
95
|
-
class="height:20px fill:#505050"
|
|
96
|
-
src="/assets/svg/facebook.svg"></i
|
|
97
|
-
></a>
|
|
98
|
-
<a
|
|
99
|
-
class="margin-right:15px"
|
|
100
|
-
share-network="instagram"
|
|
101
|
-
title="Share on instagram"
|
|
102
|
-
><i
|
|
103
|
-
class="height:20px fill:#505050"
|
|
104
|
-
src="/assets/svg/instagram.svg"></i
|
|
105
|
-
></a>
|
|
106
|
-
</div>
|
|
107
|
-
<a
|
|
108
|
-
class="margin-right:15px"
|
|
109
|
-
share-network="share"
|
|
110
|
-
title="Share on share"
|
|
111
|
-
><i
|
|
112
|
-
class="height:20px fill:#505050"
|
|
113
|
-
src="/assets/svg/share-alt.svg"></i
|
|
114
|
-
></a>
|
|
115
|
-
</div>
|
|
116
|
-
<a
|
|
117
|
-
href="https://github.com/CoCreate-app/CoCreate-elements"
|
|
118
|
-
target="_blank"
|
|
119
|
-
class="margin-right:15px"
|
|
120
|
-
><i
|
|
121
|
-
class="height:20px fill:#505050"
|
|
122
|
-
src="/assets/svg/github.svg"></i
|
|
123
|
-
></a>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<h1
|
|
127
|
-
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
128
|
-
Fetch content into any html element by using html5 attributes to
|
|
129
|
-
query data stored in CoCreate headless CMS. If data is changed
|
|
130
|
-
it will instantly reflect in html tags as changes are
|
|
131
|
-
broadcasted in realtime
|
|
132
|
-
</h1>
|
|
133
|
-
<div id="elements-section" class="display:flex flex-wrap:wrap">
|
|
134
|
-
<div
|
|
135
|
-
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
136
|
-
<div
|
|
137
|
-
id="elements-install"
|
|
138
|
-
class="border-bottom:1px_solid_lightgrey"
|
|
139
|
-
scroll
|
|
140
|
-
scroll-intersect="color:dodgerblue"
|
|
141
|
-
scroll-target="#elements-install-section">
|
|
142
|
-
<span
|
|
143
|
-
class="display:flex align-items:center width:fit-content"
|
|
144
|
-
hover="display:block!important"
|
|
145
|
-
hover-target="[href='#elements-install']">
|
|
146
|
-
<h2 class="padding:5px_0px">Install</h2>
|
|
147
|
-
<a
|
|
148
|
-
class="margin-left:10px display:none"
|
|
149
|
-
href="#elements-install"
|
|
150
|
-
><i
|
|
151
|
-
class="height:20px fill:#505050"
|
|
152
|
-
src="/assets/svg/link.svg"></i
|
|
153
|
-
></a>
|
|
154
|
-
</span>
|
|
155
|
-
</div>
|
|
156
|
-
<pre><code class="language-bash">npm i @cocreate/elements</code></pre>
|
|
157
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
158
|
-
Or you can use cdn link:
|
|
159
|
-
</p>
|
|
160
|
-
<pre><code class="language-html"><script>https://cdn.cocreate.app/elements/latest/CoCreate-elements.min.js</script></code></pre>
|
|
161
|
-
|
|
162
|
-
<div
|
|
163
|
-
id="elements-usage"
|
|
164
|
-
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
165
|
-
scroll
|
|
166
|
-
scroll-intersect="color:dodgerblue"
|
|
167
|
-
scroll-target="#elements-usage-section">
|
|
168
|
-
<span
|
|
169
|
-
class="display:flex align-items:center width:fit-content"
|
|
170
|
-
hover="display:block!important"
|
|
171
|
-
hover-target="[href='#elements-usage']">
|
|
172
|
-
<h2 class="padding:5px_0px">Usage</h2>
|
|
173
|
-
<a
|
|
174
|
-
class="margin-left:10px display:none"
|
|
175
|
-
href="#elements-usage"
|
|
176
|
-
><i
|
|
177
|
-
class="height:20px fill:#505050"
|
|
178
|
-
src="/assets/svg/link.svg"></i
|
|
179
|
-
></a>
|
|
180
|
-
</span>
|
|
181
|
-
</div>
|
|
182
|
-
<div class="">
|
|
183
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
184
|
-
This is elements usage
|
|
185
|
-
</p>
|
|
186
|
-
|
|
187
|
-
<div class="flex-grow:1 min-width:300px width:100%">
|
|
188
|
-
<pre><code class="language-html"><div></div></code></pre>
|
|
189
|
-
</div>
|
|
190
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
191
|
-
This is elements usage
|
|
192
|
-
</p>
|
|
193
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
194
|
-
This is elements usage
|
|
195
|
-
</p>
|
|
196
|
-
</div>
|
|
197
|
-
<div
|
|
198
|
-
id="elements-attributes"
|
|
199
|
-
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
200
|
-
scroll
|
|
201
|
-
scroll-intersect="color:dodgerblue"
|
|
202
|
-
scroll-target="#elements-attributes-section">
|
|
203
|
-
<span
|
|
204
|
-
class="display:flex align-items:center width:fit-content"
|
|
205
|
-
hover="display:block!important"
|
|
206
|
-
hover-target="[href='#elements-attributes']">
|
|
207
|
-
<h2 class="padding:5px_0px">Attributes</h2>
|
|
208
|
-
<a
|
|
209
|
-
class="margin-left:10px display:none"
|
|
210
|
-
href="#elements-attributes"
|
|
211
|
-
><i
|
|
212
|
-
class="height:20px fill:#505050"
|
|
213
|
-
src="/assets/svg/link.svg"></i
|
|
214
|
-
></a>
|
|
215
|
-
</span>
|
|
216
|
-
</div>
|
|
217
|
-
<ul class="list-style-type:none">
|
|
218
|
-
<li
|
|
219
|
-
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
220
|
-
<h4>
|
|
221
|
-
<span>elements</span>
|
|
222
|
-
<span class="cocreate-badge success"
|
|
223
|
-
>string</span
|
|
224
|
-
>
|
|
225
|
-
<span class="cocreate-badge warning"
|
|
226
|
-
>optional</span
|
|
227
|
-
>
|
|
228
|
-
</h4>
|
|
229
|
-
<p>elements-attribute</p>
|
|
230
|
-
</li>
|
|
231
|
-
<li
|
|
232
|
-
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
233
|
-
<h4>
|
|
234
|
-
<span>elements</span>
|
|
235
|
-
<span class="cocreate-badge success"
|
|
236
|
-
>string</span
|
|
237
|
-
>
|
|
238
|
-
<span class="cocreate-badge warning"
|
|
239
|
-
>optional</span
|
|
240
|
-
>
|
|
241
|
-
</h4>
|
|
242
|
-
<p>elements-attribute</p>
|
|
243
|
-
</li>
|
|
244
|
-
</ul>
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
<div
|
|
248
|
-
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
249
|
-
<!-- SandBox -->
|
|
250
|
-
<div
|
|
251
|
-
id="elements-demo"
|
|
252
|
-
class="border-bottom:1px_solid_lightgrey"
|
|
253
|
-
scroll
|
|
254
|
-
scroll-intersect="color:dodgerblue"
|
|
255
|
-
scroll-target="#elements-demo-section">
|
|
256
|
-
<span
|
|
257
|
-
class="display:flex align-items:center width:fit-content"
|
|
258
|
-
hover="display:block!important"
|
|
259
|
-
hover-target="[href='#elements-demo']">
|
|
260
|
-
<h2 class="padding:5px_0px">Demo</h2>
|
|
261
|
-
<a
|
|
262
|
-
class="margin-left:10px display:none"
|
|
263
|
-
href="#elements-demo"
|
|
264
|
-
><i
|
|
265
|
-
class="height:20px fill:#505050"
|
|
266
|
-
src="/assets/svg/link.svg"></i
|
|
267
|
-
></a>
|
|
268
|
-
</span>
|
|
269
|
-
</div>
|
|
270
|
-
<div
|
|
271
|
-
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
272
|
-
<!-- SandBox -->
|
|
273
|
-
<div
|
|
274
|
-
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
275
|
-
id="playground">
|
|
276
|
-
<div
|
|
277
|
-
id="demo-code"
|
|
278
|
-
resizable
|
|
279
|
-
class="position:relative height:50%">
|
|
280
|
-
<textarea
|
|
281
|
-
type="code"
|
|
282
|
-
lang="html"
|
|
283
|
-
collection="demos"
|
|
284
|
-
document_id=""
|
|
285
|
-
name="demo"
|
|
286
|
-
save="false"
|
|
287
|
-
id="demo"
|
|
288
|
-
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
289
|
-
<div
|
|
290
|
-
resize="bottom"
|
|
291
|
-
class="background:lightgrey"></div>
|
|
292
|
-
</div>
|
|
293
|
-
|
|
294
|
-
<div
|
|
295
|
-
id="demo-preview"
|
|
296
|
-
class="position:relative overflow:auto background-color:white">
|
|
297
|
-
<div class="demopreview padding:20px"></div>
|
|
298
|
-
</div>
|
|
299
|
-
|
|
300
|
-
<div
|
|
301
|
-
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
302
|
-
<a
|
|
303
|
-
class="margin-right:10px"
|
|
304
|
-
id="eye"
|
|
305
|
-
show="#eye-slash"
|
|
306
|
-
hide="#eye, #demo-preview"
|
|
307
|
-
toggle="code-height"
|
|
308
|
-
toggle-target="#demo-code"
|
|
309
|
-
><i
|
|
310
|
-
class="height:18px fill:#505050"
|
|
311
|
-
src="/assets/svg/eye.svg"></i
|
|
312
|
-
></a>
|
|
313
|
-
<a
|
|
314
|
-
class="margin-right:10px"
|
|
315
|
-
hidden
|
|
316
|
-
id="eye-slash"
|
|
317
|
-
show="#eye, #demo-preview"
|
|
318
|
-
hide="#eye-slash"
|
|
319
|
-
toggle="code-height"
|
|
320
|
-
toggle-target="#demo-code"
|
|
321
|
-
><i
|
|
322
|
-
class="height:20px fill:#505050"
|
|
323
|
-
src="/assets/svg/eye-slash.svg"></i
|
|
324
|
-
></a>
|
|
325
|
-
<a
|
|
326
|
-
class="margin-right:10px"
|
|
327
|
-
id="code"
|
|
328
|
-
show="#code-slash"
|
|
329
|
-
hide="#code, #demo-code"
|
|
330
|
-
><i
|
|
331
|
-
class="height:20px fill:#505050"
|
|
332
|
-
src="/assets/svg/code.svg"></i
|
|
333
|
-
></a>
|
|
334
|
-
<a
|
|
335
|
-
class="margin-right:10px"
|
|
336
|
-
hidden
|
|
337
|
-
id="code-slash"
|
|
338
|
-
show="#code, #demo-code"
|
|
339
|
-
hide="#code-slash"
|
|
340
|
-
><i
|
|
341
|
-
class="display:flex height:18px fill:#505050"
|
|
342
|
-
src="/assets/svg/code.svg"></i
|
|
343
|
-
></a>
|
|
344
|
-
<a
|
|
345
|
-
class="margin-right:5px"
|
|
346
|
-
fullscreen
|
|
347
|
-
fullscreen-target="#playground"></a>
|
|
348
|
-
</div>
|
|
349
|
-
</div>
|
|
350
|
-
<!-- End SandBox -->
|
|
351
|
-
</div>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
<button
|
|
355
|
-
href="https://github.com/CoCreate-app/CoCreate-elements/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
356
|
-
target="_blank"
|
|
357
|
-
class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
358
|
-
<i
|
|
359
|
-
class="height:20px fill:#505050"
|
|
360
|
-
src="/assets/svg/pencil-alt.svg"></i>
|
|
361
|
-
</button>
|
|
362
|
-
</main>
|
|
363
|
-
|
|
364
|
-
<script src="./apikey.js"></script>
|
|
365
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
366
|
-
</body>
|
|
367
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="Fetch content into any html element by using attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags" />
|
|
10
|
+
<meta
|
|
11
|
+
name="keywords"
|
|
12
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
13
|
+
<meta name="robots" content="index,follow" />
|
|
14
|
+
<meta
|
|
15
|
+
property="og:image"
|
|
16
|
+
content="https://cdn.cocreate.app/docs/elements.png" />
|
|
17
|
+
|
|
18
|
+
<title>CoCreate-elements Documentation | CoCreateJS</title>
|
|
19
|
+
|
|
20
|
+
<!-- CoCreate Favicon -->
|
|
21
|
+
<link
|
|
22
|
+
rel="icon"
|
|
23
|
+
type="image/png"
|
|
24
|
+
sizes="32x32"
|
|
25
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
26
|
+
<link
|
|
27
|
+
rel="stylesheet"
|
|
28
|
+
href="/docs/index.css"
|
|
29
|
+
collection="files"
|
|
30
|
+
document_id="60888216117c640e7596303f"
|
|
31
|
+
name="src"
|
|
32
|
+
type="text/css"
|
|
33
|
+
save="true" />
|
|
34
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
35
|
+
</head>
|
|
36
|
+
|
|
37
|
+
<body>
|
|
38
|
+
<nav
|
|
39
|
+
class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
|
|
40
|
+
content_id="content"
|
|
41
|
+
scroll="sticky-nav,hide-nav"
|
|
42
|
+
scroll-up="10"
|
|
43
|
+
scroll-down="10"
|
|
44
|
+
collection="files"
|
|
45
|
+
document_id="60395ef42b3ac232657040fd"
|
|
46
|
+
name="src"></nav>
|
|
47
|
+
<sidenav
|
|
48
|
+
id="menuL"
|
|
49
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
50
|
+
resizable
|
|
51
|
+
resize-target="[content_id='content']"
|
|
52
|
+
resize-property="margin-left"
|
|
53
|
+
resize-value="width">
|
|
54
|
+
<menu
|
|
55
|
+
collection="files"
|
|
56
|
+
document_id="603717b07de7fb350ae9fec8"
|
|
57
|
+
name="src"></menu>
|
|
58
|
+
<div resize="right"></div>
|
|
59
|
+
</sidenav>
|
|
60
|
+
<main
|
|
61
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
62
|
+
content_id="content"
|
|
63
|
+
id="cocreate-elements">
|
|
64
|
+
<div
|
|
65
|
+
class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
66
|
+
<div class="display:flex align-items:center">
|
|
67
|
+
<h2>CoCreate-elements</h2>
|
|
68
|
+
</div>
|
|
69
|
+
<div
|
|
70
|
+
class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
71
|
+
<div
|
|
72
|
+
class="display:flex align-items:center transition:0.3s padding-left:10px"
|
|
73
|
+
share-network="true"
|
|
74
|
+
share-text="Fetch content into any html element by using attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags"
|
|
75
|
+
share-title="CoCreate elements"
|
|
76
|
+
share-height="600"
|
|
77
|
+
share-width="700"
|
|
78
|
+
share-media="https://cdn.cocreate.app/docs/elements.png"
|
|
79
|
+
hover="display:block!important"
|
|
80
|
+
hover-target=".social-networks">
|
|
81
|
+
<div class="display:none social-networks">
|
|
82
|
+
<a
|
|
83
|
+
class="margin-right:15px"
|
|
84
|
+
share-network="twitter"
|
|
85
|
+
title="Share on twitter"
|
|
86
|
+
><i
|
|
87
|
+
class="height:20px fill:#505050"
|
|
88
|
+
src="/assets/svg/twitter.svg"></i
|
|
89
|
+
></a>
|
|
90
|
+
<a
|
|
91
|
+
class="margin-right:15px"
|
|
92
|
+
share-network="facebook"
|
|
93
|
+
title="Share on Facebook"
|
|
94
|
+
><i
|
|
95
|
+
class="height:20px fill:#505050"
|
|
96
|
+
src="/assets/svg/facebook.svg"></i
|
|
97
|
+
></a>
|
|
98
|
+
<a
|
|
99
|
+
class="margin-right:15px"
|
|
100
|
+
share-network="instagram"
|
|
101
|
+
title="Share on instagram"
|
|
102
|
+
><i
|
|
103
|
+
class="height:20px fill:#505050"
|
|
104
|
+
src="/assets/svg/instagram.svg"></i
|
|
105
|
+
></a>
|
|
106
|
+
</div>
|
|
107
|
+
<a
|
|
108
|
+
class="margin-right:15px"
|
|
109
|
+
share-network="share"
|
|
110
|
+
title="Share on share"
|
|
111
|
+
><i
|
|
112
|
+
class="height:20px fill:#505050"
|
|
113
|
+
src="/assets/svg/share-alt.svg"></i
|
|
114
|
+
></a>
|
|
115
|
+
</div>
|
|
116
|
+
<a
|
|
117
|
+
href="https://github.com/CoCreate-app/CoCreate-elements"
|
|
118
|
+
target="_blank"
|
|
119
|
+
class="margin-right:15px"
|
|
120
|
+
><i
|
|
121
|
+
class="height:20px fill:#505050"
|
|
122
|
+
src="/assets/svg/github.svg"></i
|
|
123
|
+
></a>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<h1
|
|
127
|
+
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
128
|
+
Fetch content into any html element by using html5 attributes to
|
|
129
|
+
query data stored in CoCreate headless CMS. If data is changed
|
|
130
|
+
it will instantly reflect in html tags as changes are
|
|
131
|
+
broadcasted in realtime
|
|
132
|
+
</h1>
|
|
133
|
+
<div id="elements-section" class="display:flex flex-wrap:wrap">
|
|
134
|
+
<div
|
|
135
|
+
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
136
|
+
<div
|
|
137
|
+
id="elements-install"
|
|
138
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
139
|
+
scroll
|
|
140
|
+
scroll-intersect="color:dodgerblue"
|
|
141
|
+
scroll-target="#elements-install-section">
|
|
142
|
+
<span
|
|
143
|
+
class="display:flex align-items:center width:fit-content"
|
|
144
|
+
hover="display:block!important"
|
|
145
|
+
hover-target="[href='#elements-install']">
|
|
146
|
+
<h2 class="padding:5px_0px">Install</h2>
|
|
147
|
+
<a
|
|
148
|
+
class="margin-left:10px display:none"
|
|
149
|
+
href="#elements-install"
|
|
150
|
+
><i
|
|
151
|
+
class="height:20px fill:#505050"
|
|
152
|
+
src="/assets/svg/link.svg"></i
|
|
153
|
+
></a>
|
|
154
|
+
</span>
|
|
155
|
+
</div>
|
|
156
|
+
<pre><code class="language-bash">npm i @cocreate/elements</code></pre>
|
|
157
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
158
|
+
Or you can use cdn link:
|
|
159
|
+
</p>
|
|
160
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/elements/latest/CoCreate-elements.min.js</script></code></pre>
|
|
161
|
+
|
|
162
|
+
<div
|
|
163
|
+
id="elements-usage"
|
|
164
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
165
|
+
scroll
|
|
166
|
+
scroll-intersect="color:dodgerblue"
|
|
167
|
+
scroll-target="#elements-usage-section">
|
|
168
|
+
<span
|
|
169
|
+
class="display:flex align-items:center width:fit-content"
|
|
170
|
+
hover="display:block!important"
|
|
171
|
+
hover-target="[href='#elements-usage']">
|
|
172
|
+
<h2 class="padding:5px_0px">Usage</h2>
|
|
173
|
+
<a
|
|
174
|
+
class="margin-left:10px display:none"
|
|
175
|
+
href="#elements-usage"
|
|
176
|
+
><i
|
|
177
|
+
class="height:20px fill:#505050"
|
|
178
|
+
src="/assets/svg/link.svg"></i
|
|
179
|
+
></a>
|
|
180
|
+
</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="">
|
|
183
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
184
|
+
This is elements usage
|
|
185
|
+
</p>
|
|
186
|
+
|
|
187
|
+
<div class="flex-grow:1 min-width:300px width:100%">
|
|
188
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
189
|
+
</div>
|
|
190
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
191
|
+
This is elements usage
|
|
192
|
+
</p>
|
|
193
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
194
|
+
This is elements usage
|
|
195
|
+
</p>
|
|
196
|
+
</div>
|
|
197
|
+
<div
|
|
198
|
+
id="elements-attributes"
|
|
199
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
200
|
+
scroll
|
|
201
|
+
scroll-intersect="color:dodgerblue"
|
|
202
|
+
scroll-target="#elements-attributes-section">
|
|
203
|
+
<span
|
|
204
|
+
class="display:flex align-items:center width:fit-content"
|
|
205
|
+
hover="display:block!important"
|
|
206
|
+
hover-target="[href='#elements-attributes']">
|
|
207
|
+
<h2 class="padding:5px_0px">Attributes</h2>
|
|
208
|
+
<a
|
|
209
|
+
class="margin-left:10px display:none"
|
|
210
|
+
href="#elements-attributes"
|
|
211
|
+
><i
|
|
212
|
+
class="height:20px fill:#505050"
|
|
213
|
+
src="/assets/svg/link.svg"></i
|
|
214
|
+
></a>
|
|
215
|
+
</span>
|
|
216
|
+
</div>
|
|
217
|
+
<ul class="list-style-type:none">
|
|
218
|
+
<li
|
|
219
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
220
|
+
<h4>
|
|
221
|
+
<span>elements</span>
|
|
222
|
+
<span class="cocreate-badge success"
|
|
223
|
+
>string</span
|
|
224
|
+
>
|
|
225
|
+
<span class="cocreate-badge warning"
|
|
226
|
+
>optional</span
|
|
227
|
+
>
|
|
228
|
+
</h4>
|
|
229
|
+
<p>elements-attribute</p>
|
|
230
|
+
</li>
|
|
231
|
+
<li
|
|
232
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
233
|
+
<h4>
|
|
234
|
+
<span>elements</span>
|
|
235
|
+
<span class="cocreate-badge success"
|
|
236
|
+
>string</span
|
|
237
|
+
>
|
|
238
|
+
<span class="cocreate-badge warning"
|
|
239
|
+
>optional</span
|
|
240
|
+
>
|
|
241
|
+
</h4>
|
|
242
|
+
<p>elements-attribute</p>
|
|
243
|
+
</li>
|
|
244
|
+
</ul>
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<div
|
|
248
|
+
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
249
|
+
<!-- SandBox -->
|
|
250
|
+
<div
|
|
251
|
+
id="elements-demo"
|
|
252
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
253
|
+
scroll
|
|
254
|
+
scroll-intersect="color:dodgerblue"
|
|
255
|
+
scroll-target="#elements-demo-section">
|
|
256
|
+
<span
|
|
257
|
+
class="display:flex align-items:center width:fit-content"
|
|
258
|
+
hover="display:block!important"
|
|
259
|
+
hover-target="[href='#elements-demo']">
|
|
260
|
+
<h2 class="padding:5px_0px">Demo</h2>
|
|
261
|
+
<a
|
|
262
|
+
class="margin-left:10px display:none"
|
|
263
|
+
href="#elements-demo"
|
|
264
|
+
><i
|
|
265
|
+
class="height:20px fill:#505050"
|
|
266
|
+
src="/assets/svg/link.svg"></i
|
|
267
|
+
></a>
|
|
268
|
+
</span>
|
|
269
|
+
</div>
|
|
270
|
+
<div
|
|
271
|
+
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
272
|
+
<!-- SandBox -->
|
|
273
|
+
<div
|
|
274
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
275
|
+
id="playground">
|
|
276
|
+
<div
|
|
277
|
+
id="demo-code"
|
|
278
|
+
resizable
|
|
279
|
+
class="position:relative height:50%">
|
|
280
|
+
<textarea
|
|
281
|
+
type="code"
|
|
282
|
+
lang="html"
|
|
283
|
+
collection="demos"
|
|
284
|
+
document_id=""
|
|
285
|
+
name="demo"
|
|
286
|
+
save="false"
|
|
287
|
+
id="demo"
|
|
288
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
289
|
+
<div
|
|
290
|
+
resize="bottom"
|
|
291
|
+
class="background:lightgrey"></div>
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
<div
|
|
295
|
+
id="demo-preview"
|
|
296
|
+
class="position:relative overflow:auto background-color:white">
|
|
297
|
+
<div class="demopreview padding:20px"></div>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<div
|
|
301
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
302
|
+
<a
|
|
303
|
+
class="margin-right:10px"
|
|
304
|
+
id="eye"
|
|
305
|
+
show="#eye-slash"
|
|
306
|
+
hide="#eye, #demo-preview"
|
|
307
|
+
toggle="code-height"
|
|
308
|
+
toggle-target="#demo-code"
|
|
309
|
+
><i
|
|
310
|
+
class="height:18px fill:#505050"
|
|
311
|
+
src="/assets/svg/eye.svg"></i
|
|
312
|
+
></a>
|
|
313
|
+
<a
|
|
314
|
+
class="margin-right:10px"
|
|
315
|
+
hidden
|
|
316
|
+
id="eye-slash"
|
|
317
|
+
show="#eye, #demo-preview"
|
|
318
|
+
hide="#eye-slash"
|
|
319
|
+
toggle="code-height"
|
|
320
|
+
toggle-target="#demo-code"
|
|
321
|
+
><i
|
|
322
|
+
class="height:20px fill:#505050"
|
|
323
|
+
src="/assets/svg/eye-slash.svg"></i
|
|
324
|
+
></a>
|
|
325
|
+
<a
|
|
326
|
+
class="margin-right:10px"
|
|
327
|
+
id="code"
|
|
328
|
+
show="#code-slash"
|
|
329
|
+
hide="#code, #demo-code"
|
|
330
|
+
><i
|
|
331
|
+
class="height:20px fill:#505050"
|
|
332
|
+
src="/assets/svg/code.svg"></i
|
|
333
|
+
></a>
|
|
334
|
+
<a
|
|
335
|
+
class="margin-right:10px"
|
|
336
|
+
hidden
|
|
337
|
+
id="code-slash"
|
|
338
|
+
show="#code, #demo-code"
|
|
339
|
+
hide="#code-slash"
|
|
340
|
+
><i
|
|
341
|
+
class="display:flex height:18px fill:#505050"
|
|
342
|
+
src="/assets/svg/code.svg"></i
|
|
343
|
+
></a>
|
|
344
|
+
<a
|
|
345
|
+
class="margin-right:5px"
|
|
346
|
+
fullscreen
|
|
347
|
+
fullscreen-target="#playground"></a>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
<!-- End SandBox -->
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
<button
|
|
355
|
+
href="https://github.com/CoCreate-app/CoCreate-elements/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
356
|
+
target="_blank"
|
|
357
|
+
class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
358
|
+
<i
|
|
359
|
+
class="height:20px fill:#505050"
|
|
360
|
+
src="/assets/svg/pencil-alt.svg"></i>
|
|
361
|
+
</button>
|
|
362
|
+
</main>
|
|
363
|
+
|
|
364
|
+
<script src="./apikey.js"></script>
|
|
365
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
366
|
+
</body>
|
|
367
|
+
</html>
|