@cocreate/lazy-loader 1.3.12 → 1.3.13
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 +617 -610
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +26 -26
- package/LICENSE +21 -21
- package/README.md +84 -84
- package/demo/index.html +20 -20
- package/docs/index.html +254 -254
- package/package.json +66 -66
- package/release.config.js +21 -21
- package/src/index.js +60 -60
- package/webpack.config.js +84 -84
package/docs/index.html
CHANGED
|
@@ -1,254 +1,254 @@
|
|
|
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
|
-
<title>CoCreate-lazy-loader Documentation | CoCreateJS</title>
|
|
8
|
-
<link
|
|
9
|
-
rel="icon"
|
|
10
|
-
type="image/png"
|
|
11
|
-
sizes="32x32"
|
|
12
|
-
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
-
<meta
|
|
14
|
-
name="description"
|
|
15
|
-
content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
|
|
16
|
-
<meta
|
|
17
|
-
name="keywords"
|
|
18
|
-
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
-
<meta name="robots" content="index,follow" />
|
|
20
|
-
|
|
21
|
-
<!-- CoCreate CSS CDN -->
|
|
22
|
-
<link
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
25
|
-
type="text/css" />
|
|
26
|
-
|
|
27
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
|
28
|
-
</head>
|
|
29
|
-
|
|
30
|
-
<body>
|
|
31
|
-
<div collection="" document_id="" name="" id="cocreate-lazy-loader">
|
|
32
|
-
<div
|
|
33
|
-
class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
|
|
34
|
-
<div class="display:flex align-items:center">
|
|
35
|
-
<h2>CoCreate-lazy-loader</h2>
|
|
36
|
-
</div>
|
|
37
|
-
<div
|
|
38
|
-
class="display:flex align-items:center font-size:20px"
|
|
39
|
-
share-height="600"
|
|
40
|
-
share-width="500"
|
|
41
|
-
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
42
|
-
<a
|
|
43
|
-
href="https://github.com/CoCreate-app/CoCreate-lazy-loader"
|
|
44
|
-
target="_blank"
|
|
45
|
-
class="margin-right:15px"
|
|
46
|
-
><i
|
|
47
|
-
class="height:20px fill:#505050"
|
|
48
|
-
src="/assets/svg/github.svg"></i
|
|
49
|
-
></a>
|
|
50
|
-
<a
|
|
51
|
-
class="margin-right:15px share"
|
|
52
|
-
share-network="twitter"
|
|
53
|
-
title="Share on twitter"
|
|
54
|
-
><i
|
|
55
|
-
class="height:20px fill:#505050"
|
|
56
|
-
src="/assets/svg/twitter.svg"></i
|
|
57
|
-
></a>
|
|
58
|
-
<a
|
|
59
|
-
class="margin-right:15px share"
|
|
60
|
-
share-network="facebook"
|
|
61
|
-
title="Share on Facebook"
|
|
62
|
-
><i
|
|
63
|
-
class="height:20px fill:#505050"
|
|
64
|
-
src="/assets/svg/facebook.svg"></i
|
|
65
|
-
></a>
|
|
66
|
-
<a
|
|
67
|
-
class="margin-right:15px share"
|
|
68
|
-
share-network="instagram"
|
|
69
|
-
title="Share on instagram"
|
|
70
|
-
><i
|
|
71
|
-
class="height:20px fill:#505050"
|
|
72
|
-
src="/assets/svg/instagram.svg"></i
|
|
73
|
-
></a>
|
|
74
|
-
<a
|
|
75
|
-
class="margin-right:15px share"
|
|
76
|
-
share-network="share"
|
|
77
|
-
title="Share on share"
|
|
78
|
-
><i
|
|
79
|
-
class="height:20px fill:#505050"
|
|
80
|
-
src="/assets/svg/share-alt.svg"></i
|
|
81
|
-
></a>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<h1 class="max-width:500px margin:20px_10px">
|
|
85
|
-
A simple HTML5, CSS and pure javascript component. Easy
|
|
86
|
-
configuration using data-attributes and highly styleable.
|
|
87
|
-
</h1>
|
|
88
|
-
<div id="lazy-loader-section" class="display:flex flex-wrap:wrap">
|
|
89
|
-
<div class="flex-grow:1 width:300px padding:20px_10px">
|
|
90
|
-
<h2
|
|
91
|
-
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
92
|
-
Install
|
|
93
|
-
</h2>
|
|
94
|
-
<pre
|
|
95
|
-
class="margin-top:15px"><code class="language-javascript">npm install cocreate-lazy-loader</code></pre>
|
|
96
|
-
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
97
|
-
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-lazy-loader.min.js</code></pre>
|
|
98
|
-
|
|
99
|
-
<h2
|
|
100
|
-
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
101
|
-
Usage
|
|
102
|
-
</h2>
|
|
103
|
-
<p class="padding:10px_0px">lazy-loader usage content</p>
|
|
104
|
-
<pre><code class="language-html"><div></div></code></pre>
|
|
105
|
-
|
|
106
|
-
<h2
|
|
107
|
-
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
108
|
-
Reference
|
|
109
|
-
</h2>
|
|
110
|
-
<p class="padding:10px_0px">
|
|
111
|
-
This is lazy-loader reference content
|
|
112
|
-
</p>
|
|
113
|
-
<pre><code class="language-javascript"><div></div></code></pre>
|
|
114
|
-
<p class="padding:10px_0px">
|
|
115
|
-
This is lazy-loader reference content
|
|
116
|
-
</p>
|
|
117
|
-
|
|
118
|
-
<h2
|
|
119
|
-
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
120
|
-
Attributes
|
|
121
|
-
</h2>
|
|
122
|
-
<ul class="list-style-type:none">
|
|
123
|
-
<li
|
|
124
|
-
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
125
|
-
<h4>
|
|
126
|
-
<span>lazy-loader</span>
|
|
127
|
-
<span class="cocreate-badge success"
|
|
128
|
-
>string</span
|
|
129
|
-
>
|
|
130
|
-
<span class="cocreate-badge warning"
|
|
131
|
-
>optional</span
|
|
132
|
-
>
|
|
133
|
-
</h4>
|
|
134
|
-
<p>lazy-loader-attribute</p>
|
|
135
|
-
</li>
|
|
136
|
-
<li
|
|
137
|
-
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
138
|
-
<h4>
|
|
139
|
-
<span>lazy-loader</span>
|
|
140
|
-
<span class="cocreate-badge success"
|
|
141
|
-
>string</span
|
|
142
|
-
>
|
|
143
|
-
<span class="cocreate-badge warning"
|
|
144
|
-
>optional</span
|
|
145
|
-
>
|
|
146
|
-
</h4>
|
|
147
|
-
<p>lazy-loader-attribute</p>
|
|
148
|
-
</li>
|
|
149
|
-
</ul>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<div
|
|
153
|
-
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
154
|
-
<!-- SandBox -->
|
|
155
|
-
<h2
|
|
156
|
-
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
157
|
-
Demo
|
|
158
|
-
</h2>
|
|
159
|
-
<div
|
|
160
|
-
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
161
|
-
<!-- SandBox -->
|
|
162
|
-
<div
|
|
163
|
-
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
164
|
-
id="playground">
|
|
165
|
-
<div
|
|
166
|
-
id="demo-code"
|
|
167
|
-
resizable
|
|
168
|
-
class="position:relative height:50%">
|
|
169
|
-
<textarea
|
|
170
|
-
type="code"
|
|
171
|
-
lang="html"
|
|
172
|
-
collection="demos"
|
|
173
|
-
document_id=""
|
|
174
|
-
name="demo"
|
|
175
|
-
save="false"
|
|
176
|
-
id="demo"
|
|
177
|
-
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
178
|
-
<div
|
|
179
|
-
resize="bottom"
|
|
180
|
-
class="background:lightgrey"></div>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
<div
|
|
184
|
-
id="demo-preview"
|
|
185
|
-
class="position:relative overflow:auto background-color:white">
|
|
186
|
-
<div class="demopreview padding:20px"></div>
|
|
187
|
-
</div>
|
|
188
|
-
|
|
189
|
-
<div
|
|
190
|
-
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
191
|
-
<a
|
|
192
|
-
class="margin-right:10px"
|
|
193
|
-
id="eye"
|
|
194
|
-
show="#eye-slash"
|
|
195
|
-
hide="#eye, #demo-preview"
|
|
196
|
-
toggle="code-height"
|
|
197
|
-
toggle-target="#demo-code"
|
|
198
|
-
><i
|
|
199
|
-
class="height:18px fill:#505050"
|
|
200
|
-
src="/assets/svg/eye.svg"></i
|
|
201
|
-
></a>
|
|
202
|
-
<a
|
|
203
|
-
class="margin-right:10px"
|
|
204
|
-
hidden
|
|
205
|
-
id="eye-slash"
|
|
206
|
-
show="#eye, #demo-preview"
|
|
207
|
-
hide="#eye-slash"
|
|
208
|
-
toggle="code-height"
|
|
209
|
-
toggle-target="#demo-code"
|
|
210
|
-
><i
|
|
211
|
-
class="height:20px fill:#505050"
|
|
212
|
-
src="/assets/svg/eye-slash.svg"></i
|
|
213
|
-
></a>
|
|
214
|
-
<a
|
|
215
|
-
class="margin-right:10px"
|
|
216
|
-
id="code"
|
|
217
|
-
show="#code-slash"
|
|
218
|
-
hide="#code, #demo-code"
|
|
219
|
-
><i
|
|
220
|
-
class="height:20px fill:#505050"
|
|
221
|
-
src="/assets/svg/code.svg"></i
|
|
222
|
-
></a>
|
|
223
|
-
<a
|
|
224
|
-
class="margin-right:10px"
|
|
225
|
-
hidden
|
|
226
|
-
id="code-slash"
|
|
227
|
-
show="#code, #demo-code"
|
|
228
|
-
hide="#code-slash"
|
|
229
|
-
><i
|
|
230
|
-
class="display:flex height:18px fill:#505050"
|
|
231
|
-
src="/assets/svg/code.svg"></i
|
|
232
|
-
></a>
|
|
233
|
-
<a
|
|
234
|
-
class="margin-right:5px"
|
|
235
|
-
fullscreen
|
|
236
|
-
fullscreen-target="#playground"></a>
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
<!-- End SandBox -->
|
|
240
|
-
</div>
|
|
241
|
-
</div>
|
|
242
|
-
</div>
|
|
243
|
-
</div>
|
|
244
|
-
<script>
|
|
245
|
-
var CoCreateConfig = {
|
|
246
|
-
key: "2061acef-0451-4545-f754-60cf8160",
|
|
247
|
-
organization_id: "5ff747727005da1c272740ab",
|
|
248
|
-
};
|
|
249
|
-
</script>
|
|
250
|
-
|
|
251
|
-
<!--CoCreateJS-->
|
|
252
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
253
|
-
</body>
|
|
254
|
-
</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
|
+
<title>CoCreate-lazy-loader Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
+
<meta name="robots" content="index,follow" />
|
|
20
|
+
|
|
21
|
+
<!-- CoCreate CSS CDN -->
|
|
22
|
+
<link
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
25
|
+
type="text/css" />
|
|
26
|
+
|
|
27
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
28
|
+
</head>
|
|
29
|
+
|
|
30
|
+
<body>
|
|
31
|
+
<div collection="" document_id="" name="" id="cocreate-lazy-loader">
|
|
32
|
+
<div
|
|
33
|
+
class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
|
|
34
|
+
<div class="display:flex align-items:center">
|
|
35
|
+
<h2>CoCreate-lazy-loader</h2>
|
|
36
|
+
</div>
|
|
37
|
+
<div
|
|
38
|
+
class="display:flex align-items:center font-size:20px"
|
|
39
|
+
share-height="600"
|
|
40
|
+
share-width="500"
|
|
41
|
+
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
42
|
+
<a
|
|
43
|
+
href="https://github.com/CoCreate-app/CoCreate-lazy-loader"
|
|
44
|
+
target="_blank"
|
|
45
|
+
class="margin-right:15px"
|
|
46
|
+
><i
|
|
47
|
+
class="height:20px fill:#505050"
|
|
48
|
+
src="/assets/svg/github.svg"></i
|
|
49
|
+
></a>
|
|
50
|
+
<a
|
|
51
|
+
class="margin-right:15px share"
|
|
52
|
+
share-network="twitter"
|
|
53
|
+
title="Share on twitter"
|
|
54
|
+
><i
|
|
55
|
+
class="height:20px fill:#505050"
|
|
56
|
+
src="/assets/svg/twitter.svg"></i
|
|
57
|
+
></a>
|
|
58
|
+
<a
|
|
59
|
+
class="margin-right:15px share"
|
|
60
|
+
share-network="facebook"
|
|
61
|
+
title="Share on Facebook"
|
|
62
|
+
><i
|
|
63
|
+
class="height:20px fill:#505050"
|
|
64
|
+
src="/assets/svg/facebook.svg"></i
|
|
65
|
+
></a>
|
|
66
|
+
<a
|
|
67
|
+
class="margin-right:15px share"
|
|
68
|
+
share-network="instagram"
|
|
69
|
+
title="Share on instagram"
|
|
70
|
+
><i
|
|
71
|
+
class="height:20px fill:#505050"
|
|
72
|
+
src="/assets/svg/instagram.svg"></i
|
|
73
|
+
></a>
|
|
74
|
+
<a
|
|
75
|
+
class="margin-right:15px share"
|
|
76
|
+
share-network="share"
|
|
77
|
+
title="Share on share"
|
|
78
|
+
><i
|
|
79
|
+
class="height:20px fill:#505050"
|
|
80
|
+
src="/assets/svg/share-alt.svg"></i
|
|
81
|
+
></a>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<h1 class="max-width:500px margin:20px_10px">
|
|
85
|
+
A simple HTML5, CSS and pure javascript component. Easy
|
|
86
|
+
configuration using data-attributes and highly styleable.
|
|
87
|
+
</h1>
|
|
88
|
+
<div id="lazy-loader-section" class="display:flex flex-wrap:wrap">
|
|
89
|
+
<div class="flex-grow:1 width:300px padding:20px_10px">
|
|
90
|
+
<h2
|
|
91
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
92
|
+
Install
|
|
93
|
+
</h2>
|
|
94
|
+
<pre
|
|
95
|
+
class="margin-top:15px"><code class="language-javascript">npm install cocreate-lazy-loader</code></pre>
|
|
96
|
+
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
97
|
+
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-lazy-loader.min.js</code></pre>
|
|
98
|
+
|
|
99
|
+
<h2
|
|
100
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
101
|
+
Usage
|
|
102
|
+
</h2>
|
|
103
|
+
<p class="padding:10px_0px">lazy-loader usage content</p>
|
|
104
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
105
|
+
|
|
106
|
+
<h2
|
|
107
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
108
|
+
Reference
|
|
109
|
+
</h2>
|
|
110
|
+
<p class="padding:10px_0px">
|
|
111
|
+
This is lazy-loader reference content
|
|
112
|
+
</p>
|
|
113
|
+
<pre><code class="language-javascript"><div></div></code></pre>
|
|
114
|
+
<p class="padding:10px_0px">
|
|
115
|
+
This is lazy-loader reference content
|
|
116
|
+
</p>
|
|
117
|
+
|
|
118
|
+
<h2
|
|
119
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
120
|
+
Attributes
|
|
121
|
+
</h2>
|
|
122
|
+
<ul class="list-style-type:none">
|
|
123
|
+
<li
|
|
124
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
125
|
+
<h4>
|
|
126
|
+
<span>lazy-loader</span>
|
|
127
|
+
<span class="cocreate-badge success"
|
|
128
|
+
>string</span
|
|
129
|
+
>
|
|
130
|
+
<span class="cocreate-badge warning"
|
|
131
|
+
>optional</span
|
|
132
|
+
>
|
|
133
|
+
</h4>
|
|
134
|
+
<p>lazy-loader-attribute</p>
|
|
135
|
+
</li>
|
|
136
|
+
<li
|
|
137
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
138
|
+
<h4>
|
|
139
|
+
<span>lazy-loader</span>
|
|
140
|
+
<span class="cocreate-badge success"
|
|
141
|
+
>string</span
|
|
142
|
+
>
|
|
143
|
+
<span class="cocreate-badge warning"
|
|
144
|
+
>optional</span
|
|
145
|
+
>
|
|
146
|
+
</h4>
|
|
147
|
+
<p>lazy-loader-attribute</p>
|
|
148
|
+
</li>
|
|
149
|
+
</ul>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<div
|
|
153
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
154
|
+
<!-- SandBox -->
|
|
155
|
+
<h2
|
|
156
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
157
|
+
Demo
|
|
158
|
+
</h2>
|
|
159
|
+
<div
|
|
160
|
+
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
161
|
+
<!-- SandBox -->
|
|
162
|
+
<div
|
|
163
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
164
|
+
id="playground">
|
|
165
|
+
<div
|
|
166
|
+
id="demo-code"
|
|
167
|
+
resizable
|
|
168
|
+
class="position:relative height:50%">
|
|
169
|
+
<textarea
|
|
170
|
+
type="code"
|
|
171
|
+
lang="html"
|
|
172
|
+
collection="demos"
|
|
173
|
+
document_id=""
|
|
174
|
+
name="demo"
|
|
175
|
+
save="false"
|
|
176
|
+
id="demo"
|
|
177
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
178
|
+
<div
|
|
179
|
+
resize="bottom"
|
|
180
|
+
class="background:lightgrey"></div>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
<div
|
|
184
|
+
id="demo-preview"
|
|
185
|
+
class="position:relative overflow:auto background-color:white">
|
|
186
|
+
<div class="demopreview padding:20px"></div>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<div
|
|
190
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
191
|
+
<a
|
|
192
|
+
class="margin-right:10px"
|
|
193
|
+
id="eye"
|
|
194
|
+
show="#eye-slash"
|
|
195
|
+
hide="#eye, #demo-preview"
|
|
196
|
+
toggle="code-height"
|
|
197
|
+
toggle-target="#demo-code"
|
|
198
|
+
><i
|
|
199
|
+
class="height:18px fill:#505050"
|
|
200
|
+
src="/assets/svg/eye.svg"></i
|
|
201
|
+
></a>
|
|
202
|
+
<a
|
|
203
|
+
class="margin-right:10px"
|
|
204
|
+
hidden
|
|
205
|
+
id="eye-slash"
|
|
206
|
+
show="#eye, #demo-preview"
|
|
207
|
+
hide="#eye-slash"
|
|
208
|
+
toggle="code-height"
|
|
209
|
+
toggle-target="#demo-code"
|
|
210
|
+
><i
|
|
211
|
+
class="height:20px fill:#505050"
|
|
212
|
+
src="/assets/svg/eye-slash.svg"></i
|
|
213
|
+
></a>
|
|
214
|
+
<a
|
|
215
|
+
class="margin-right:10px"
|
|
216
|
+
id="code"
|
|
217
|
+
show="#code-slash"
|
|
218
|
+
hide="#code, #demo-code"
|
|
219
|
+
><i
|
|
220
|
+
class="height:20px fill:#505050"
|
|
221
|
+
src="/assets/svg/code.svg"></i
|
|
222
|
+
></a>
|
|
223
|
+
<a
|
|
224
|
+
class="margin-right:10px"
|
|
225
|
+
hidden
|
|
226
|
+
id="code-slash"
|
|
227
|
+
show="#code, #demo-code"
|
|
228
|
+
hide="#code-slash"
|
|
229
|
+
><i
|
|
230
|
+
class="display:flex height:18px fill:#505050"
|
|
231
|
+
src="/assets/svg/code.svg"></i
|
|
232
|
+
></a>
|
|
233
|
+
<a
|
|
234
|
+
class="margin-right:5px"
|
|
235
|
+
fullscreen
|
|
236
|
+
fullscreen-target="#playground"></a>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
<!-- End SandBox -->
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
<script>
|
|
245
|
+
var CoCreateConfig = {
|
|
246
|
+
key: "2061acef-0451-4545-f754-60cf8160",
|
|
247
|
+
organization_id: "5ff747727005da1c272740ab",
|
|
248
|
+
};
|
|
249
|
+
</script>
|
|
250
|
+
|
|
251
|
+
<!--CoCreateJS-->
|
|
252
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
253
|
+
</body>
|
|
254
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cocreate/lazy-loader",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"lazy-loader",
|
|
7
|
-
"cocreate",
|
|
8
|
-
"low-code-framework",
|
|
9
|
-
"no-code-framework",
|
|
10
|
-
"cocreatejs",
|
|
11
|
-
"cocreatejs-component",
|
|
12
|
-
"cocreate-framework",
|
|
13
|
-
"no-code",
|
|
14
|
-
"low-code",
|
|
15
|
-
"collaborative-framework",
|
|
16
|
-
"realtime",
|
|
17
|
-
"realtime-framework",
|
|
18
|
-
"collaboration",
|
|
19
|
-
"shared-editing",
|
|
20
|
-
"html5-framework",
|
|
21
|
-
"javascript-framework"
|
|
22
|
-
],
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"start": "npx webpack --config webpack.config.js",
|
|
28
|
-
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
|
|
29
|
-
"dev": "npx webpack --config webpack.config.js --watch",
|
|
30
|
-
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
|
|
31
|
-
"hosting": "node ./node_modules/@cocreate/hosting/src/index.js"
|
|
32
|
-
},
|
|
33
|
-
"repository": {
|
|
34
|
-
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/CoCreate-app/CoCreate-lazy-loader.git"
|
|
36
|
-
},
|
|
37
|
-
"author": "CoCreate LLC",
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/CoCreate-app/CoCreate-lazy-loader/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://cocreate.app/docs/lazy-loader",
|
|
43
|
-
"funding": {
|
|
44
|
-
"type": "GitHub Sponsors ❤",
|
|
45
|
-
"url": "https://github.com/sponsors/CoCreate-app"
|
|
46
|
-
},
|
|
47
|
-
"main": "./src/index.js",
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.9.6",
|
|
50
|
-
"@babel/preset-env": "^7.9.6",
|
|
51
|
-
"babel-loader": "^8.1.0",
|
|
52
|
-
"clean-webpack-plugin": "^3.0.0",
|
|
53
|
-
"file-loader": "^6.2.0",
|
|
54
|
-
"mini-css-extract-plugin": "^1.5.0",
|
|
55
|
-
"style-loader": "^3.3.1",
|
|
56
|
-
"terser-webpack-plugin": "^5.1.1",
|
|
57
|
-
"webpack": "^5.24.4",
|
|
58
|
-
"webpack-cli": "^4.5.0",
|
|
59
|
-
"webpack-log": "^3.0.1"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@cocreate/docs": "^1.7.13",
|
|
63
|
-
"@cocreate/hosting": "^1.10.5",
|
|
64
|
-
"@cocreate/observer": "^1.8.0"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@cocreate/lazy-loader",
|
|
3
|
+
"version": "1.3.13",
|
|
4
|
+
"description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"lazy-loader",
|
|
7
|
+
"cocreate",
|
|
8
|
+
"low-code-framework",
|
|
9
|
+
"no-code-framework",
|
|
10
|
+
"cocreatejs",
|
|
11
|
+
"cocreatejs-component",
|
|
12
|
+
"cocreate-framework",
|
|
13
|
+
"no-code",
|
|
14
|
+
"low-code",
|
|
15
|
+
"collaborative-framework",
|
|
16
|
+
"realtime",
|
|
17
|
+
"realtime-framework",
|
|
18
|
+
"collaboration",
|
|
19
|
+
"shared-editing",
|
|
20
|
+
"html5-framework",
|
|
21
|
+
"javascript-framework"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"start": "npx webpack --config webpack.config.js",
|
|
28
|
+
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
|
|
29
|
+
"dev": "npx webpack --config webpack.config.js --watch",
|
|
30
|
+
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
|
|
31
|
+
"hosting": "node ./node_modules/@cocreate/hosting/src/index.js"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/CoCreate-app/CoCreate-lazy-loader.git"
|
|
36
|
+
},
|
|
37
|
+
"author": "CoCreate LLC",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/CoCreate-app/CoCreate-lazy-loader/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://cocreate.app/docs/lazy-loader",
|
|
43
|
+
"funding": {
|
|
44
|
+
"type": "GitHub Sponsors ❤",
|
|
45
|
+
"url": "https://github.com/sponsors/CoCreate-app"
|
|
46
|
+
},
|
|
47
|
+
"main": "./src/index.js",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@babel/core": "^7.9.6",
|
|
50
|
+
"@babel/preset-env": "^7.9.6",
|
|
51
|
+
"babel-loader": "^8.1.0",
|
|
52
|
+
"clean-webpack-plugin": "^3.0.0",
|
|
53
|
+
"file-loader": "^6.2.0",
|
|
54
|
+
"mini-css-extract-plugin": "^1.5.0",
|
|
55
|
+
"style-loader": "^3.3.1",
|
|
56
|
+
"terser-webpack-plugin": "^5.1.1",
|
|
57
|
+
"webpack": "^5.24.4",
|
|
58
|
+
"webpack-cli": "^4.5.0",
|
|
59
|
+
"webpack-log": "^3.0.1"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@cocreate/docs": "^1.7.13",
|
|
63
|
+
"@cocreate/hosting": "^1.10.5",
|
|
64
|
+
"@cocreate/observer": "^1.8.0"
|
|
65
|
+
}
|
|
66
|
+
}
|