@cocreate/fullscreen 1.5.6 → 1.5.8

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/docs/index.html CHANGED
@@ -1,373 +1,373 @@
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
-
8
- <meta
9
- name="description"
10
- content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
11
- <meta
12
- name="keywords"
13
- content="helper classes, utility classes, css framework, css library, inline style classes" />
14
- <meta name="robots" content="index,follow" />
15
- <meta
16
- property="og:image"
17
- content="https://cdn.cocreate.app/docs/fullscreen.png" />
18
-
19
- <title>CoCreate-fullscreen Documentation | CoCreateJS</title>
20
-
21
- <!-- CoCreate Favicon -->
22
- <link
23
- rel="icon"
24
- type="image/png"
25
- sizes="32x32"
26
- href="https://cocreate.app/images/favicon.ico" />
27
- <link
28
- rel="stylesheet"
29
- href="/docs/index.css"
30
- collection="files"
31
- document_id="60888216117c640e7596303f"
32
- name="src"
33
- type="text/css"
34
- save="true" />
35
- <link rel="manifest" href="/manifest.webmanifest" />
36
- </head>
37
-
38
- <body>
39
- <nav
40
- class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
41
- content_id="content"
42
- scroll="sticky-nav,hide-nav"
43
- scroll-up="10"
44
- scroll-down="10"
45
- collection="files"
46
- document_id="60395ef42b3ac232657040fd"
47
- name="src"></nav>
48
- <sidenav
49
- id="menuL"
50
- class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
51
- resizable
52
- resize-target="[content_id='content']"
53
- resize-property="margin-left"
54
- resize-value="width">
55
- <menu
56
- collection="files"
57
- document_id="603717b07de7fb350ae9fec8"
58
- name="src"></menu>
59
- <div resize="right"></div>
60
- </sidenav>
61
- <main
62
- class="padding-top:15px padding:15px@lg@xl"
63
- content_id="content"
64
- id="cocreate-fullscreen">
65
- <div
66
- class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
67
- <div class="display:flex align-items:center">
68
- <h2>CoCreate-fullscreen</h2>
69
- </div>
70
- <div
71
- class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
72
- <div
73
- class="display:flex align-items:center transition:0.3s padding-left:10px"
74
- share-network="true"
75
- share-text="Toggle any html element to view in fullscreen mode. Easy configuration and targeting using the fullscreen and target attribute."
76
- share-title="CoCreate Fullscreen"
77
- share-height="600"
78
- share-width="700"
79
- share-media="https://cdn.cocreate.app/docs/fullscreen.png"
80
- hover="display:block!important"
81
- hover-target=".social-networks">
82
- <div class="display:none social-networks">
83
- <a
84
- class="margin-right:15px"
85
- share-network="twitter"
86
- title="Share on twitter"
87
- ><i
88
- class="height:20px fill:#505050"
89
- src="/assets/svg/twitter.svg"></i
90
- ></a>
91
- <a
92
- class="margin-right:15px"
93
- share-network="facebook"
94
- title="Share on Facebook"
95
- ><i
96
- class="height:20px fill:#505050"
97
- src="/assets/svg/facebook.svg"></i
98
- ></a>
99
- <a
100
- class="margin-right:15px"
101
- share-network="instagram"
102
- title="Share on instagram"
103
- ><i
104
- class="height:20px fill:#505050"
105
- src="/assets/svg/instagram.svg"></i
106
- ></a>
107
- </div>
108
- <a
109
- class="margin-right:15px"
110
- share-network="share"
111
- title="Share on share"
112
- ><i
113
- class="height:20px fill:#505050"
114
- src="/assets/svg/share-alt.svg"></i
115
- ></a>
116
- </div>
117
- <a
118
- class="margin-right:15px"
119
- share-network="share"
120
- title="Share on share"
121
- ><i
122
- class="height:20px fill:#505050"
123
- src="/assets/svg/share-alt.svg"></i
124
- ></a>
125
- </div>
126
- <a
127
- href="https://github.com/CoCreate-app/CoCreate-fullscreen"
128
- target="_blank"
129
- class="margin-right:15px"
130
- ><i
131
- class="height:20px fill:#505050"
132
- src="/assets/svg/github.svg"></i
133
- ></a>
134
- </div>
135
-
136
- <h1
137
- class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
138
- Toggle any html element to view in fullscreen mode. Easy
139
- configuration and targeting using the fullscreen and target
140
- attribute.
141
- </h1>
142
- <div id="fullscreen-section" class="display:flex flex-wrap:wrap">
143
- <div
144
- class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
145
- <div
146
- id="fullscreen-install"
147
- class="border-bottom:1px_solid_lightgrey"
148
- scroll
149
- scroll-intersect="color:dodgerblue"
150
- scroll-target="#fullscreen-install-section">
151
- <span
152
- class="display:flex align-items:center width:fit-content"
153
- hover="display:block!important"
154
- hover-target="[href='#fullscreen-install']">
155
- <h2 class="padding:5px_0px">Install</h2>
156
- <a
157
- class="margin-left:10px display:none"
158
- href="#fullscreen-install"
159
- ><i
160
- class="height:20px fill:#505050"
161
- src="/assets/svg/link.svg"></i
162
- ></a>
163
- </span>
164
- </div>
165
- <pre><code class="language-bash">npm i @cocreate/fullscreen</code></pre>
166
- <p class="padding:10px_0px line-height:1.5">
167
- Or you can use cdn link:
168
- </p>
169
- <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/fullscreen/latest/CoCreate-fullscreen.min.js&lt;/script&gt;</code></pre>
170
-
171
- <div
172
- id="fullscreen-usage"
173
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
174
- scroll
175
- scroll-intersect="color:dodgerblue"
176
- scroll-target="#fullscreen-usage-section">
177
- <span
178
- class="display:flex align-items:center width:fit-content"
179
- hover="display:block!important"
180
- hover-target="[href='#fullscreen-usage']">
181
- <h2 class="padding:5px_0px">Usage</h2>
182
- <a
183
- class="margin-left:10px display:none"
184
- href="#fullscreen-usage"
185
- ><i
186
- class="height:20px fill:#505050"
187
- src="/assets/svg/link.svg"></i
188
- ></a>
189
- </span>
190
- </div>
191
- <div class="">
192
- <p class="padding:10px_0px line-height:1.5">
193
- This is fullscreen usage
194
- </p>
195
-
196
- <div class="flex-grow:1 min-width:300px width:100%">
197
- <pre>
198
- <code class="language-js">
199
- &lt;style type=&quot;text/css&quot;&gt;
200
- #example2{
201
- background-color: white;
202
- }
203
- &lt;/style&gt;
204
- &lt;section&gt;
205
- &lt;h2&gt;Only Target&lt;/h2&gt;
206
- &lt;button fullscreen fullscreen-target=&quot;#example2&quot;&gt;With Attr Target&lt;/button&gt;
207
- &lt;button fullscreen &gt;WithOut Target&lt;/button&gt;
208
- &lt;/section&gt;
209
- &lt;section&gt;
210
- &lt;div id=&quot;example2&quot; class=&quot;box &quot;&gt;
211
- &lt;h2&gt;#exemple2&lt;/h2&gt;
212
- &lt;p&gt;
213
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
214
- &lt;/p&gt;
215
- &lt;/div&gt;
216
- &lt;/section&gt;
217
- </code>
218
- </pre>
219
- </div>
220
- <p class="padding:10px_0px line-height:1.5">
221
- This is fullscreen usage
222
- </p>
223
- </div>
224
- <div
225
- id="fullscreen-attributes"
226
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
227
- scroll
228
- scroll-intersect="color:dodgerblue"
229
- scroll-target="#fullscreen-attributes-section">
230
- <span
231
- class="display:flex align-items:center width:fit-content"
232
- hover="display:block!important"
233
- hover-target="[href='#fullscreen-attributes']">
234
- <h2 class="padding:5px_0px">Attributes</h2>
235
- <a
236
- class="margin-left:10px display:none"
237
- href="#fullscreen-attributes"
238
- ><i
239
- class="height:20px fill:#505050"
240
- src="/assets/svg/link.svg"></i
241
- ></a>
242
- </span>
243
- </div>
244
- <ul class="list-style-type:none">
245
- <li
246
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
247
- <h4>
248
- <span>fullscreen</span>
249
- <span class="cocreate-badge success"
250
- >boolean</span
251
- >
252
- <span class="cocreate-badge danger"
253
- >required</span
254
- >
255
- </h4>
256
- <p>true</p>
257
- </li>
258
- </ul>
259
- </div>
260
-
261
- <div
262
- class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
263
- <!-- SandBox -->
264
- <div
265
- id="fullscreen-demo"
266
- class="border-bottom:1px_solid_lightgrey"
267
- scroll
268
- scroll-intersect="color:dodgerblue"
269
- scroll-target="#fullscreen-demo-section">
270
- <span
271
- class="display:flex align-items:center width:fit-content"
272
- hover="display:block!important"
273
- hover-target="[href='#fullscreen-demo']">
274
- <h2 class="padding:5px_0px">Demo</h2>
275
- <a
276
- class="margin-left:10px display:none"
277
- href="#fullscreen-demo"
278
- ><i
279
- class="height:20px fill:#505050"
280
- src="/assets/svg/link.svg"></i
281
- ></a>
282
- </span>
283
- </div>
284
- <div
285
- class="position:sticky top:0 padding:15px_0px height:100vh">
286
- <!-- SandBox -->
287
- <div
288
- class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
289
- id="playground">
290
- <div
291
- id="demo-code"
292
- resizable
293
- class="position:relative height:50%">
294
- <textarea
295
- type="code"
296
- lang="html"
297
- collection="demos"
298
- document_id=""
299
- name="demo"
300
- save="false"
301
- id="demo"
302
- class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
303
- <div
304
- resize="bottom"
305
- class="background:lightgrey"></div>
306
- </div>
307
-
308
- <div
309
- id="demo-preview"
310
- class="position:relative overflow:auto background-color:white">
311
- <div class="demopreview padding:20px"></div>
312
- </div>
313
-
314
- <div
315
- class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
316
- <a
317
- class="margin-right:10px"
318
- id="eye"
319
- show="#eye-slash"
320
- hide="#eye, #demo-preview"
321
- toggle="code-height"
322
- toggle-target="#demo-code"
323
- ><i
324
- class="height:18px fill:#505050"
325
- src="/assets/svg/eye.svg"></i
326
- ></a>
327
- <a
328
- class="margin-right:10px"
329
- hidden
330
- id="eye-slash"
331
- show="#eye, #demo-preview"
332
- hide="#eye-slash"
333
- toggle="code-height"
334
- toggle-target="#demo-code"
335
- ><i
336
- class="height:20px fill:#505050"
337
- src="/assets/svg/eye-slash.svg"></i
338
- ></a>
339
- <a
340
- class="margin-right:10px"
341
- id="code"
342
- show="#code-slash"
343
- hide="#code, #demo-code"
344
- ><i
345
- class="height:20px fill:#505050"
346
- src="/assets/svg/code.svg"></i
347
- ></a>
348
- <a
349
- class="margin-right:10px"
350
- hidden
351
- id="code-slash"
352
- show="#code, #demo-code"
353
- hide="#code-slash"
354
- ><i
355
- class="display:flex height:18px fill:#505050"
356
- src="/assets/svg/code.svg"></i
357
- ></a>
358
- <a
359
- class="margin-right:5px"
360
- fullscreen
361
- fullscreen-target="#playground"></a>
362
- </div>
363
- </div>
364
- <!-- End SandBox -->
365
- </div>
366
- </div>
367
- </div>
368
- </main>
369
-
370
- <script src="./apikey.js"></script>
371
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
372
- </body>
373
- </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
+
8
+ <meta
9
+ name="description"
10
+ content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
11
+ <meta
12
+ name="keywords"
13
+ content="helper classes, utility classes, css framework, css library, inline style classes" />
14
+ <meta name="robots" content="index,follow" />
15
+ <meta
16
+ property="og:image"
17
+ content="https://cdn.cocreate.app/docs/fullscreen.png" />
18
+
19
+ <title>CoCreate-fullscreen Documentation | CoCreateJS</title>
20
+
21
+ <!-- CoCreate Favicon -->
22
+ <link
23
+ rel="icon"
24
+ type="image/png"
25
+ sizes="32x32"
26
+ href="https://cocreate.app/images/favicon.ico" />
27
+ <link
28
+ rel="stylesheet"
29
+ href="/docs/index.css"
30
+ collection="files"
31
+ document_id="60888216117c640e7596303f"
32
+ name="src"
33
+ type="text/css"
34
+ save="true" />
35
+ <link rel="manifest" href="/manifest.webmanifest" />
36
+ </head>
37
+
38
+ <body>
39
+ <nav
40
+ class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
41
+ content_id="content"
42
+ scroll="sticky-nav,hide-nav"
43
+ scroll-up="10"
44
+ scroll-down="10"
45
+ collection="files"
46
+ document_id="60395ef42b3ac232657040fd"
47
+ name="src"></nav>
48
+ <sidenav
49
+ id="menuL"
50
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
51
+ resizable
52
+ resize-target="[content_id='content']"
53
+ resize-property="margin-left"
54
+ resize-value="width">
55
+ <menu
56
+ collection="files"
57
+ document_id="603717b07de7fb350ae9fec8"
58
+ name="src"></menu>
59
+ <div resize="right"></div>
60
+ </sidenav>
61
+ <main
62
+ class="padding-top:15px padding:15px@lg@xl"
63
+ content_id="content"
64
+ id="cocreate-fullscreen">
65
+ <div
66
+ class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
67
+ <div class="display:flex align-items:center">
68
+ <h2>CoCreate-fullscreen</h2>
69
+ </div>
70
+ <div
71
+ class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
72
+ <div
73
+ class="display:flex align-items:center transition:0.3s padding-left:10px"
74
+ share-network="true"
75
+ share-text="Toggle any html element to view in fullscreen mode. Easy configuration and targeting using the fullscreen and target attribute."
76
+ share-title="CoCreate Fullscreen"
77
+ share-height="600"
78
+ share-width="700"
79
+ share-media="https://cdn.cocreate.app/docs/fullscreen.png"
80
+ hover="display:block!important"
81
+ hover-target=".social-networks">
82
+ <div class="display:none social-networks">
83
+ <a
84
+ class="margin-right:15px"
85
+ share-network="twitter"
86
+ title="Share on twitter"
87
+ ><i
88
+ class="height:20px fill:#505050"
89
+ src="/assets/svg/twitter.svg"></i
90
+ ></a>
91
+ <a
92
+ class="margin-right:15px"
93
+ share-network="facebook"
94
+ title="Share on Facebook"
95
+ ><i
96
+ class="height:20px fill:#505050"
97
+ src="/assets/svg/facebook.svg"></i
98
+ ></a>
99
+ <a
100
+ class="margin-right:15px"
101
+ share-network="instagram"
102
+ title="Share on instagram"
103
+ ><i
104
+ class="height:20px fill:#505050"
105
+ src="/assets/svg/instagram.svg"></i
106
+ ></a>
107
+ </div>
108
+ <a
109
+ class="margin-right:15px"
110
+ share-network="share"
111
+ title="Share on share"
112
+ ><i
113
+ class="height:20px fill:#505050"
114
+ src="/assets/svg/share-alt.svg"></i
115
+ ></a>
116
+ </div>
117
+ <a
118
+ class="margin-right:15px"
119
+ share-network="share"
120
+ title="Share on share"
121
+ ><i
122
+ class="height:20px fill:#505050"
123
+ src="/assets/svg/share-alt.svg"></i
124
+ ></a>
125
+ </div>
126
+ <a
127
+ href="https://github.com/CoCreate-app/CoCreate-fullscreen"
128
+ target="_blank"
129
+ class="margin-right:15px"
130
+ ><i
131
+ class="height:20px fill:#505050"
132
+ src="/assets/svg/github.svg"></i
133
+ ></a>
134
+ </div>
135
+
136
+ <h1
137
+ class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
138
+ Toggle any html element to view in fullscreen mode. Easy
139
+ configuration and targeting using the fullscreen and target
140
+ attribute.
141
+ </h1>
142
+ <div id="fullscreen-section" class="display:flex flex-wrap:wrap">
143
+ <div
144
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
145
+ <div
146
+ id="fullscreen-install"
147
+ class="border-bottom:1px_solid_lightgrey"
148
+ scroll
149
+ scroll-intersect="color:dodgerblue"
150
+ scroll-target="#fullscreen-install-section">
151
+ <span
152
+ class="display:flex align-items:center width:fit-content"
153
+ hover="display:block!important"
154
+ hover-target="[href='#fullscreen-install']">
155
+ <h2 class="padding:5px_0px">Install</h2>
156
+ <a
157
+ class="margin-left:10px display:none"
158
+ href="#fullscreen-install"
159
+ ><i
160
+ class="height:20px fill:#505050"
161
+ src="/assets/svg/link.svg"></i
162
+ ></a>
163
+ </span>
164
+ </div>
165
+ <pre><code class="language-bash">npm i @cocreate/fullscreen</code></pre>
166
+ <p class="padding:10px_0px line-height:1.5">
167
+ Or you can use cdn link:
168
+ </p>
169
+ <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/fullscreen/latest/CoCreate-fullscreen.min.js&lt;/script&gt;</code></pre>
170
+
171
+ <div
172
+ id="fullscreen-usage"
173
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
174
+ scroll
175
+ scroll-intersect="color:dodgerblue"
176
+ scroll-target="#fullscreen-usage-section">
177
+ <span
178
+ class="display:flex align-items:center width:fit-content"
179
+ hover="display:block!important"
180
+ hover-target="[href='#fullscreen-usage']">
181
+ <h2 class="padding:5px_0px">Usage</h2>
182
+ <a
183
+ class="margin-left:10px display:none"
184
+ href="#fullscreen-usage"
185
+ ><i
186
+ class="height:20px fill:#505050"
187
+ src="/assets/svg/link.svg"></i
188
+ ></a>
189
+ </span>
190
+ </div>
191
+ <div class="">
192
+ <p class="padding:10px_0px line-height:1.5">
193
+ This is fullscreen usage
194
+ </p>
195
+
196
+ <div class="flex-grow:1 min-width:300px width:100%">
197
+ <pre>
198
+ <code class="language-js">
199
+ &lt;style type=&quot;text/css&quot;&gt;
200
+ #example2{
201
+ background-color: white;
202
+ }
203
+ &lt;/style&gt;
204
+ &lt;section&gt;
205
+ &lt;h2&gt;Only Target&lt;/h2&gt;
206
+ &lt;button fullscreen fullscreen-target=&quot;#example2&quot;&gt;With Attr Target&lt;/button&gt;
207
+ &lt;button fullscreen &gt;WithOut Target&lt;/button&gt;
208
+ &lt;/section&gt;
209
+ &lt;section&gt;
210
+ &lt;div id=&quot;example2&quot; class=&quot;box &quot;&gt;
211
+ &lt;h2&gt;#exemple2&lt;/h2&gt;
212
+ &lt;p&gt;
213
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
214
+ &lt;/p&gt;
215
+ &lt;/div&gt;
216
+ &lt;/section&gt;
217
+ </code>
218
+ </pre>
219
+ </div>
220
+ <p class="padding:10px_0px line-height:1.5">
221
+ This is fullscreen usage
222
+ </p>
223
+ </div>
224
+ <div
225
+ id="fullscreen-attributes"
226
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
227
+ scroll
228
+ scroll-intersect="color:dodgerblue"
229
+ scroll-target="#fullscreen-attributes-section">
230
+ <span
231
+ class="display:flex align-items:center width:fit-content"
232
+ hover="display:block!important"
233
+ hover-target="[href='#fullscreen-attributes']">
234
+ <h2 class="padding:5px_0px">Attributes</h2>
235
+ <a
236
+ class="margin-left:10px display:none"
237
+ href="#fullscreen-attributes"
238
+ ><i
239
+ class="height:20px fill:#505050"
240
+ src="/assets/svg/link.svg"></i
241
+ ></a>
242
+ </span>
243
+ </div>
244
+ <ul class="list-style-type:none">
245
+ <li
246
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
247
+ <h4>
248
+ <span>fullscreen</span>
249
+ <span class="cocreate-badge success"
250
+ >boolean</span
251
+ >
252
+ <span class="cocreate-badge danger"
253
+ >required</span
254
+ >
255
+ </h4>
256
+ <p>true</p>
257
+ </li>
258
+ </ul>
259
+ </div>
260
+
261
+ <div
262
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
263
+ <!-- SandBox -->
264
+ <div
265
+ id="fullscreen-demo"
266
+ class="border-bottom:1px_solid_lightgrey"
267
+ scroll
268
+ scroll-intersect="color:dodgerblue"
269
+ scroll-target="#fullscreen-demo-section">
270
+ <span
271
+ class="display:flex align-items:center width:fit-content"
272
+ hover="display:block!important"
273
+ hover-target="[href='#fullscreen-demo']">
274
+ <h2 class="padding:5px_0px">Demo</h2>
275
+ <a
276
+ class="margin-left:10px display:none"
277
+ href="#fullscreen-demo"
278
+ ><i
279
+ class="height:20px fill:#505050"
280
+ src="/assets/svg/link.svg"></i
281
+ ></a>
282
+ </span>
283
+ </div>
284
+ <div
285
+ class="position:sticky top:0 padding:15px_0px height:100vh">
286
+ <!-- SandBox -->
287
+ <div
288
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
289
+ id="playground">
290
+ <div
291
+ id="demo-code"
292
+ resizable
293
+ class="position:relative height:50%">
294
+ <textarea
295
+ type="code"
296
+ lang="html"
297
+ collection="demos"
298
+ document_id=""
299
+ name="demo"
300
+ save="false"
301
+ id="demo"
302
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
303
+ <div
304
+ resize="bottom"
305
+ class="background:lightgrey"></div>
306
+ </div>
307
+
308
+ <div
309
+ id="demo-preview"
310
+ class="position:relative overflow:auto background-color:white">
311
+ <div class="demopreview padding:20px"></div>
312
+ </div>
313
+
314
+ <div
315
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
316
+ <a
317
+ class="margin-right:10px"
318
+ id="eye"
319
+ show="#eye-slash"
320
+ hide="#eye, #demo-preview"
321
+ toggle="code-height"
322
+ toggle-target="#demo-code"
323
+ ><i
324
+ class="height:18px fill:#505050"
325
+ src="/assets/svg/eye.svg"></i
326
+ ></a>
327
+ <a
328
+ class="margin-right:10px"
329
+ hidden
330
+ id="eye-slash"
331
+ show="#eye, #demo-preview"
332
+ hide="#eye-slash"
333
+ toggle="code-height"
334
+ toggle-target="#demo-code"
335
+ ><i
336
+ class="height:20px fill:#505050"
337
+ src="/assets/svg/eye-slash.svg"></i
338
+ ></a>
339
+ <a
340
+ class="margin-right:10px"
341
+ id="code"
342
+ show="#code-slash"
343
+ hide="#code, #demo-code"
344
+ ><i
345
+ class="height:20px fill:#505050"
346
+ src="/assets/svg/code.svg"></i
347
+ ></a>
348
+ <a
349
+ class="margin-right:10px"
350
+ hidden
351
+ id="code-slash"
352
+ show="#code, #demo-code"
353
+ hide="#code-slash"
354
+ ><i
355
+ class="display:flex height:18px fill:#505050"
356
+ src="/assets/svg/code.svg"></i
357
+ ></a>
358
+ <a
359
+ class="margin-right:5px"
360
+ fullscreen
361
+ fullscreen-target="#playground"></a>
362
+ </div>
363
+ </div>
364
+ <!-- End SandBox -->
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </main>
369
+
370
+ <script src="./apikey.js"></script>
371
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
372
+ </body>
373
+ </html>