@cocreate/events 1.27.0 → 1.27.1

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