jos-animation 0.8.0 → 0.8.7-beta.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.
Files changed (50) hide show
  1. package/README.md +30 -3
  2. package/dev/jos.css +24 -36
  3. package/dev/jos.js +134 -21
  4. package/dist/jos.js +2 -0
  5. package/package.json +8 -4
  6. package/.github/FUNDING.yml +0 -13
  7. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  8. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  9. package/.prettierignore +0 -8
  10. package/CODE_OF_CONDUCT.md +0 -128
  11. package/CONTRIBUTING.md +0 -18
  12. package/LEARN.md +0 -3
  13. package/SECURITY.md +0 -19
  14. package/dev/index.html +0 -422
  15. package/dist/.htaccess +0 -0
  16. package/dist/v0.3/jos.css +0 -225
  17. package/dist/v0.3/jos.js +0 -161
  18. package/dist/v0.5/jos.css +0 -250
  19. package/dist/v0.5/jos.js +0 -473
  20. package/dist/v0.6/jos.css +0 -250
  21. package/dist/v0.6/jos.debug.js +0 -2
  22. package/dist/v0.6/jos.debug.min.js +0 -2
  23. package/dist/v0.6/jos.js +0 -212
  24. package/dist/v0.6/jos.min.js +0 -2
  25. package/dist/v0.7/.htaccess +0 -0
  26. package/dist/v0.7/jos.css +0 -2
  27. package/dist/v0.7/jos.debug.js +0 -459
  28. package/dist/v0.7/jos.dev.js +0 -623
  29. package/dist/v0.7/jos.js +0 -264
  30. package/dist/v0.7/jos.min.js +0 -2
  31. package/dist/v0.8/jos.css +0 -1
  32. package/dist/v0.8/jos.debug.js +0 -414
  33. package/dist/v0.8/jos.js +0 -309
  34. package/dist/v0.8/jos.min.js +0 -1
  35. package/docs/index.html +0 -419
  36. package/docs/index2.html +0 -678
  37. package/docs/indexOld.html +0 -291
  38. package/docs/style.css +0 -216
  39. package/res/7ygwKRQc_2x.jpg +0 -0
  40. package/res/NewvWJ8Z_2x.jpg +0 -0
  41. package/res/asdsad.jpg +0 -0
  42. package/res/cPowTYfI_2x.jpg +0 -0
  43. package/res/favicon.ico +0 -0
  44. package/res/logo.jpg +0 -0
  45. package/res/logo_1_sq.png +0 -0
  46. package/res/logo_1png-removebg-preview.png +0 -0
  47. package/res/logo_1png.png +0 -0
  48. package/res/logo_2-removebg-preview.png +0 -0
  49. package/res/logo_2.png +0 -0
  50. package/res/logo_2_sq.png +0 -0
package/README.md CHANGED
@@ -73,23 +73,30 @@ Feel free to report an issue or request a feature in this repository :)
73
73
  - [JavaScript](https://www.w3schools.com/js/)
74
74
  - [CSS](https://www.w3schools.com/css/)
75
75
 
76
- ## Installation
76
+ ### Installation
77
77
 
78
78
  1. Add the <code>[\<link>](https://github.com/jesvijonathan/Jesvi-Bot/releases)</code> inside the <code>\<head></code> tag :
79
79
 
80
+ <!-- https://unpkg.com/jos-animation@latest/dist/jos.js -->
81
+ <!-- "https://cdn.jsdelivr.net/gh/jesvijonathan/JOS-Animation-Library/dist/v0.8/jos.css" -->
82
+
80
83
  ```html
81
84
  <link
82
85
  id="jos-stylesheet"
83
86
  rel="stylesheet"
84
- href="https://cdn.jsdelivr.net/gh/jesvijonathan/JOS-Animation-Library/dist/v0.8/jos.css"
87
+ href="https://unpkg.com/jos-animation/dist/jos.css"
85
88
  crossorigin="anonymous"
86
89
  />
87
90
  ```
88
91
 
89
92
  2. Add the <code>[\<script>](https://github.com/jesvijonathan/Jesvi-Bot/releases)</code> right after the <code>\<body></code> tag :
93
+ <!-- For easier navigation use jsdelivr -->
94
+ <!-- https://cdn.jsdelivr.net/gh/jesvijonathan/JOS-Animation-Library/dist/v0.8/jos.min.js -->
95
+ <!-- For Stablility use unpkg -->
96
+ <!-- https://unpkg.com/jos-animation@latest/dist/jos.js -->
90
97
 
91
98
  ```html
92
- <script src="https://cdn.jsdelivr.net/gh/jesvijonathan/JOS-Animation-Library/dist/v0.8/jos.min.js"></script>
99
+ <script src="https://unpkg.com/jos-animation/dist/jos.min.js"></script>
93
100
  ```
94
101
 
95
102
  You can add minified version of the script by replacing <code>jos.js</code> with <code>jos.min.js</code> in the above script tag.
@@ -131,6 +138,25 @@ By the end of this step, you should have something like this :
131
138
  </html>
132
139
  ``` -->
133
140
 
141
+ <!-- using npm -->
142
+
143
+ <!-- ### Installation using npm
144
+
145
+ 1. You can also Install JOS using npm :
146
+
147
+ ```bash
148
+ npm install jos-animation
149
+ ```
150
+
151
+ 2. Import JOS in your project :
152
+
153
+ ```js
154
+ import "jos-animation/dist/jos.css";
155
+ import JOS from "jos-animation";
156
+
157
+ JOS.init();
158
+ ``` -->
159
+
134
160
  ## Setup :
135
161
 
136
162
  1. Use <code>JOS.init();</code> to initialize the library with default settings.
@@ -156,6 +182,7 @@ By the end of this step, you should have something like this :
156
182
  animation: "fade", // JOS global animation type | Values : 'fade', 'slide', 'zoom', 'flip', 'fade-right', 'fade-left', 'fade-up', 'fade-down', 'zoom-in-right', 'zoom-in-left', 'zoom-in-up', 'zoom-in-down', 'zoom-out-right', 'zoom-out-left', 'zoom-out-up', 'zoom-out-down', 'flip-right', 'flip-left', 'flip-up', 'flip-down, spin, revolve, stretch, "my-custom-animation"
157
183
  // animationInverse: "static", // Set the animation type for the element when it is scrolled out of view | Values : 'fade', 'slide', 'zoom', 'flip', 'fade-right', 'fade-left', 'fade-up', 'fade-down', 'zoom-in-right', 'zoom-in-left', 'zoom-in-up', 'zoom-in-down', 'zoom-out-right', 'zoom-out-left', 'zoom-out-up', 'zoom-out-down', 'flip-right', 'flip-left', 'flip-up', 'flip-down, spin, revolve, stretch, "my-custom-animation"
158
184
  timingFunction: "ease-in-out", // JOS global timing function | Values : 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear', 'step-start', 'step-end', 'steps()', 'cubic-bezier()', 'my-custom-timing-function'
185
+ //mirror : false, // Set whether the element should animate back when scrolled out of view | Values : 'true', 'false'
159
186
  threshold: 0, // Set gloabal the threshold for the element to be visible | Values : 0-1
160
187
  delay: 0, // Set global the delay for the animation to start | Values : 0,1,2,3,4,5
161
188
  duration: 0.7, // Set global the duration for the animation playback | Values : flota : 0-1 & int : 0,1,2,3,4,5
package/dev/jos.css CHANGED
@@ -4,20 +4,34 @@ JOS v0.8.4 By Jesvi Jonathan
4
4
 
5
5
  /* jos default */
6
6
  .jos {
7
- opacity: 1;
8
- display: block;
9
- transition: transform, opacity 0.5s;
7
+ /* opacity: 1;
8
+ display: block; */
9
+
10
+ transition: opacity 0.4s, transform 0.4s;
11
+ /* transition: 0.4s; */
10
12
  transition-timing-function: ease-in-out;
11
13
  }
14
+ /* .jos:not([class]):not([class*="display"]):not(:has([class*="display"])) {
15
+ display: block;
16
+ } */
17
+
12
18
  .jos-anchor {
13
19
  opacity: 0;
14
- transition: transform, opacity 0.5s;
20
+ transition: opacity 0.4s, transform 0.4s;
15
21
  transition-timing-function: ease-in-out;
16
22
  }
17
23
  .jos-static {
18
24
  transform: translate(0, 0);
19
25
  opacity: 1;
20
26
  }
27
+ .jos-no-transition {
28
+ transition-timing-function: linear;
29
+ transition-duration: 0s;
30
+ }
31
+
32
+ /* .jos-no-mirror {
33
+ transition: 0s forwards !important;
34
+ } */
21
35
 
22
36
  /* fade */
23
37
  .jos-fade {
@@ -229,38 +243,6 @@ JOS v0.8.4 By Jesvi Jonathan
229
243
  transform: scaleY(0);
230
244
  }
231
245
 
232
- /* pow attribute */
233
- [data-jos_pow="0.1"] {
234
- transform: rotateY(calc(0.1 * 360deg));
235
- }
236
- [data-jos_pow="0.2"] {
237
- transform: rotateY(calc(0.2 * 360deg));
238
- }
239
- [data-jos_pow="0.3"] {
240
- transform: rotateY(calc(0.3 * 360deg));
241
- }
242
- [data-jos_pow="0.4"] {
243
- transform: rotateY(calc(0.4 * 360deg));
244
- }
245
- [data-jos_pow="0.5"] {
246
- transform: rotateY(calc(0.5 * 360deg));
247
- }
248
- [data-jos_pow="0.6"] {
249
- transform: rotateY(calc(0.6 * 360deg));
250
- }
251
- [data-jos_pow="0.7"] {
252
- transform: rotateY(calc(0.7 * 360deg));
253
- }
254
- [data-jos_pow="0.8"] {
255
- transform: rotateY(calc(0.8 * 360deg));
256
- }
257
- [data-jos_pow="0.9"] {
258
- transform: rotateY(calc(0.9 * 360deg));
259
- }
260
- [data-jos_pow="1"] {
261
- transform: rotateY(calc(1 * 360deg));
262
- }
263
-
264
246
  /* timing function attribute */
265
247
  [data-jos_timing_function="ease"] {
266
248
  transition-timing-function: ease !important;
@@ -303,6 +285,9 @@ JOS v0.8.4 By Jesvi Jonathan
303
285
  }
304
286
 
305
287
  /* duration attribute */
288
+ [data-jos_duration="0"] {
289
+ transition-duration: 0s !important;
290
+ }
306
291
  [data-jos_duration="0.1"] {
307
292
  transition-duration: 0.1s !important;
308
293
  }
@@ -362,6 +347,9 @@ JOS v0.8.4 By Jesvi Jonathan
362
347
  }
363
348
 
364
349
  /* Delay Attribute */
350
+ [data-jos_delay="0"] {
351
+ transition-delay: 0s !important;
352
+ }
365
353
  [data-jos_delay="0.1"] {
366
354
  transition-delay: 0.1s !important;
367
355
  }
package/dev/jos.js CHANGED
@@ -11,11 +11,12 @@ class jos {
11
11
  default_startVisible = undefined;
12
12
  default_scrolldirection = undefined;
13
13
  default_passive = true;
14
+ default_mirror = undefined;
14
15
 
15
16
  debug = false;
16
17
  disable = false;
17
18
 
18
- static version = "0.8.4 (Development)";
19
+ static version = "0.8.7 (Development)";
19
20
  static author = "Jesvi Jonathan";
20
21
  static github = "https://github.com/jesvijonathan/JOS-Animation-Library";
21
22
 
@@ -23,6 +24,7 @@ class jos {
23
24
  jos_stylesheet = undefined;
24
25
  boxes = undefined;
25
26
  observers = [];
27
+ scrollEnter = [];
26
28
 
27
29
  constructor() {}
28
30
 
@@ -108,6 +110,62 @@ class jos {
108
110
  });
109
111
  };
110
112
 
113
+ // var box = target;
114
+ // console.log(box);
115
+ // const rootmargin = " 0% 0% -30% 0%";
116
+ callbackScroller = (scl) => {
117
+ const defaultRootMargin = this.default_rootMargin;
118
+ let wh = window.innerHeight;
119
+
120
+ const updateBox = (box) => {
121
+ const rootMargin = box.dataset.jos_rootmargin || defaultRootMargin;
122
+ const rootMarginValues = rootMargin.split(" ").map(parseFloat);
123
+ const topMargin = (wh * rootMarginValues[0]) / 100;
124
+ const bottomMargin = (wh * rootMarginValues[2]) / 100;
125
+
126
+ box.jos = {
127
+ rootMargin,
128
+ rootMarginValues,
129
+ topMargin,
130
+ bottomMargin,
131
+ };
132
+ const elementRect = box.getBoundingClientRect();
133
+ const elementTop = elementRect.top - box.jos.topMargin;
134
+ const elementBottom = elementRect.bottom - box.jos.bottomMargin;
135
+
136
+ const windowScrollProgress = elementRect.top / wh;
137
+
138
+ const rootScrollProgress =
139
+ elementTop / (wh - box.jos.topMargin - box.jos.bottomMargin);
140
+
141
+ let scrollProgress = 0;
142
+
143
+ if (rootScrollProgress < 0) {
144
+ scrollProgress = 0;
145
+ } else if (rootScrollProgress > 100) {
146
+ scrollProgress = 1;
147
+ } else {
148
+ scrollProgress = rootScrollProgress;
149
+ }
150
+
151
+ box.jos = {
152
+ elementRect,
153
+ elementTop,
154
+ elementBottom,
155
+ windowScrollProgress,
156
+ rootScrollProgress,
157
+ scrollProgress,
158
+ };
159
+
160
+ window[box.dataset.jos_scroll](box);
161
+ };
162
+
163
+ document.onscroll = (e) => {
164
+ scl.forEach(updateBox);
165
+ };
166
+ };
167
+
168
+ // window["jos_scroll_" + box.id](obj);
111
169
  callbackRouter = (entries, observer, type = 1) => {
112
170
  if (this.disable == true) {
113
171
  return;
@@ -116,18 +174,31 @@ class jos {
116
174
  let target = entry.target;
117
175
  let target_jos_animation = target.dataset.jos_animation;
118
176
  let target_jos_animationinverse = target.dataset.jos_animationinverse;
177
+
119
178
  let scroll_dir = 1;
120
179
  if (entry.boundingClientRect.top < 0) {
121
180
  scroll_dir = 0;
122
181
  } else {
123
182
  scroll_dir = 1;
124
183
  }
184
+
125
185
  if (entry.isIntersecting) {
186
+ if (
187
+ target.dataset.jos_scroll != "false" &&
188
+ target.dataset.jos_scroll != undefined
189
+ ) {
190
+ this.scrollEnter.push(target);
191
+ this.callbackScroller(this.scrollEnter);
192
+ }
193
+
126
194
  if (target.dataset.jos_counter != undefined) {
127
195
  let counter_value = parseInt(target.dataset.jos_counter);
128
196
  counter_value++;
129
197
  target.dataset.jos_counter = counter_value;
130
198
  }
199
+ if (target.dataset.jos_mirror == "false") {
200
+ target.classList.remove("jos-no-mirror");
201
+ }
131
202
  if (target_jos_animation) {
132
203
  target.classList.remove("jos-" + target_jos_animation);
133
204
  if (target.dataset.jos_invoke != undefined) {
@@ -154,6 +225,11 @@ class jos {
154
225
  (scroll_dir === 0 && target.dataset.jos_scrolldirection === "up") ||
155
226
  target.dataset.jos_scrolldirection === "none"
156
227
  ) {
228
+ target.classList.toggle(
229
+ "jos-no-mirror",
230
+ target.dataset.jos_mirror == "false"
231
+ );
232
+
157
233
  target.classList.add("jos-" + target_jos_animation);
158
234
  if (target_jos_animationinverse != undefined) {
159
235
  target.classList.remove("jos-" + target_jos_animationinverse);
@@ -162,6 +238,15 @@ class jos {
162
238
  window[target.dataset.jos_invoke_out](target);
163
239
  }
164
240
  }
241
+ if (
242
+ target.dataset.jos_scroll != "false" &&
243
+ target.dataset.jos_scroll != undefined
244
+ ) {
245
+ this.scrollEnter = this.scrollEnter.filter(
246
+ (item) => item.id !== target.id
247
+ );
248
+ this.callbackScroller(this.scrollEnter);
249
+ }
165
250
  }
166
251
  };
167
252
 
@@ -175,6 +260,7 @@ class jos {
175
260
  let object_default_timingFunction = box.dataset.jos_timingFunction;
176
261
  let object_default_duration = box.dataset.jos_duration;
177
262
  let object_default_delay = box.dataset.jos_delay;
263
+ let object_default_mirror = box.dataset.jos_mirror || this.default_mirror;
178
264
  if (box.classList.contains("jos_disabled")) {
179
265
  box.classList.remove("jos_disabled");
180
266
  box.classList.add("jos");
@@ -200,6 +286,10 @@ class jos {
200
286
  object_default_timingFunction
201
287
  );
202
288
  }
289
+
290
+ if (object_default_mirror == "false") {
291
+ box.setAttribute("data-jos_mirror", object_default_mirror);
292
+ }
203
293
  if (object_default_duration) {
204
294
  box.setAttribute("data-jos_duration", object_default_duration);
205
295
  }
@@ -219,13 +309,21 @@ class jos {
219
309
  }
220
310
  let rootMargin = [
221
311
  box.dataset.jos_rootmargin_top || this.default_rootMargin.split(" ")[0],
222
- box.dataset.jos_rootmargin_left ||
223
- this.default_rootMargin.split(" ")[3],
312
+ box.dataset.jos_rootmargin_right ||
313
+ this.default_rootMargin.split(" ")[1],
224
314
  box.dataset.jos_rootmargin_bottom ||
225
315
  this.default_rootMargin.split(" ")[2],
226
316
  box.dataset.jos_rootmargin_left ||
227
- this.default_rootMargin.split(" ")[1],
228
- ].join(" ");
317
+ this.default_rootMargin.split(" ")[3],
318
+ ]
319
+ .map((value) => {
320
+ const isNegative = value.startsWith("-");
321
+ return isNegative ? value.substring(1) : `-${value}`;
322
+ })
323
+ .join(" ");
324
+
325
+ // let rootMargin = " 10% 0% -30% 0%";
326
+
229
327
  let box_observer = {
230
328
  rootMargin,
231
329
  threshold: this.default_threshold,
@@ -277,22 +375,31 @@ class jos {
277
375
  this.observers?.forEach((observer) => observer.disconnect());
278
376
  }
279
377
 
280
- getstylesheet() {
281
- if (!this.jos_stylesheet) {
282
- this.jos_stylesheet = document.getElementById("jos-stylesheet").sheet;
283
- }
284
- this.jos_stylesheet.insertRule(
378
+ getStylesheet() {
379
+ const styleElement = document.createElement("style");
380
+ document.head.appendChild(styleElement);
381
+
382
+ const styleSheet = styleElement.sheet;
383
+ styleSheet.insertRule(
384
+ ".jos-no-mirror" + " { transition: 0s forwards !important;}"
385
+ );
386
+
387
+ let s =
388
+ this.default_duration +
389
+ "s " +
390
+ this.default_timingFunction +
391
+ " " +
392
+ this.default_delay +
393
+ "s";
394
+
395
+ styleSheet.insertRule(
285
396
  ".jos {" +
286
- ("transition: " +
287
- this.default_duration +
288
- "s " +
289
- this.default_timingFunction +
290
- " " +
291
- this.default_delay +
292
- "s !important;") +
397
+ ("transition: opacity " + s + ", transform " + s) +
398
+ "display: block;" +
293
399
  "}"
294
400
  );
295
- return this.jos_stylesheet;
401
+
402
+ this.jos_stylesheet = styleSheet;
296
403
  }
297
404
 
298
405
  getBoxes() {
@@ -304,7 +411,7 @@ class jos {
304
411
  return this.boxes;
305
412
  }
306
413
 
307
- getdefault(options = {}) {
414
+ getDefault(options = {}) {
308
415
  let {
309
416
  once,
310
417
  animation,
@@ -315,6 +422,7 @@ class jos {
315
422
  scrollDirection,
316
423
  intersectionRatio,
317
424
  duration,
425
+ mirror,
318
426
  delay,
319
427
  debugMode,
320
428
  disable,
@@ -339,12 +447,13 @@ class jos {
339
447
  this.default_rootMargin =
340
448
  rootMargin ||
341
449
  `${rootMarginTop || "-10%"} 0% ${rootMarginBottom || "-40%"} 0%`;
450
+ this.default_mirror = mirror || this.default_mirror;
342
451
  }
343
452
 
344
453
  init(options = this.options) {
345
454
  this.options = options;
346
- this.getdefault(options);
347
- this.getstylesheet();
455
+ this.getDefault(options);
456
+ this.getStylesheet();
348
457
  this.getBoxes();
349
458
  if (this.debugMode) {
350
459
  this.debugger();
@@ -411,3 +520,7 @@ class jos {
411
520
  }
412
521
  }
413
522
  const JOS = new jos();
523
+
524
+ if (typeof module !== "undefined" && typeof module.exports !== "undefined") {
525
+ module.exports = JOS;
526
+ }
package/dist/jos.js CHANGED
@@ -306,4 +306,6 @@ class jos {
306
306
  }
307
307
  }
308
308
  const JOS = new jos();
309
+ export default JOS;
310
+
309
311
  // By Jesvi Jonathan
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "jos-animation",
3
- "version": "0.8.0",
3
+ "version": "0.8.7-beta.1",
4
4
  "description": "An animation library package to instantly add beautiful/professional looking animation to your website",
5
- "author": "jesvijonathan",
6
- "main": "./dist/jos.js",
5
+ "author": "Jesvi Jonathan",
6
+ "files": [
7
+ "dist/*.{css,js}",
8
+ "dev/*.{css,js}"
9
+ ],
10
+ "main": "dev/jos.js",
7
11
  "repository": {
8
12
  "type": "git",
9
13
  "url": "git+https://github.com/jesvijonathan/JOS-Animation-Library.git"
@@ -27,5 +31,5 @@
27
31
  "bugs": {
28
32
  "url": "https://github.com/jesvijonathan/JOS-Animation-Library/issues"
29
33
  },
30
- "homepage": "https://github.com/jesvijonathan/JOS-Animation-Library#readme"
34
+ "homepage": "https://jesvijonathan.github.io/JOS-Animation-Library/"
31
35
  }
@@ -1,13 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [jesvijonathan] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
- custom: # ['https://jesvi.pythonanywhere.com/', 'https://www.instagram.com/_jesvi_/', 'https://www.youtube.com/channel/UCle1DoWYu4gfKW3YQKezwsw', 'https://github.com/jesvijonathan/JOS-Animation-Library'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,38 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots**
24
- If applicable, add screenshots to help explain your problem.
25
-
26
- **Desktop (please complete the following information):**
27
- - OS: [e.g. iOS]
28
- - Browser [e.g. chrome, safari]
29
- - Version [e.g. 22]
30
-
31
- **Smartphone (please complete the following information):**
32
- - Device: [e.g. iPhone6]
33
- - OS: [e.g. iOS8.1]
34
- - Browser [e.g. stock browser, safari]
35
- - Version [e.g. 22]
36
-
37
- **Additional context**
38
- Add any other context about the problem here.
@@ -1,20 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
package/.prettierignore DELETED
@@ -1,8 +0,0 @@
1
- dist/jos.js
2
- dist/jos.debug.js
3
- dist/jos.min.js
4
- dist/jos.css
5
- dist/*
6
- dist/
7
- dist
8
- # development
@@ -1,128 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- .
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.0, available at
119
- https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
-
121
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
- enforcement ladder](https://github.com/mozilla/diversity).
123
-
124
- [homepage]: https://www.contributor-covenant.org
125
-
126
- For answers to common questions about this code of conduct, see the FAQ at
127
- https://www.contributor-covenant.org/faq. Translations are available at
128
- https://www.contributor-covenant.org/translations.