@cocreate/events 1.10.2 → 1.10.4

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