@cocreate/resize 1.5.10 → 1.5.12

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