@k37z3r/jbase 2.0.1 → 2.0.3

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 (167) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +59 -43
  3. package/dist/browser.d.ts +5 -6
  4. package/dist/browser.d.ts.map +1 -1
  5. package/dist/core.d.ts +9 -14
  6. package/dist/core.d.ts.map +1 -1
  7. package/dist/index.cjs +577 -452
  8. package/dist/index.cjs.map +7 -0
  9. package/dist/index.d.ts +304 -603
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.mjs +575 -452
  12. package/dist/index.mjs.map +7 -0
  13. package/dist/jbase.browser.js +338 -281
  14. package/dist/jbase.browser.js.map +7 -0
  15. package/dist/jbase.min.js +3 -2
  16. package/dist/jbase.min.js.map +7 -0
  17. package/dist/modules/css/classes.d.ts +15 -29
  18. package/dist/modules/css/classes.d.ts.map +1 -1
  19. package/dist/modules/css/index.d.ts +5 -9
  20. package/dist/modules/css/index.d.ts.map +1 -1
  21. package/dist/modules/css/styles.d.ts +7 -13
  22. package/dist/modules/css/styles.d.ts.map +1 -1
  23. package/dist/modules/data/arrays.d.ts +96 -64
  24. package/dist/modules/data/arrays.d.ts.map +1 -1
  25. package/dist/modules/data/index.d.ts +5 -9
  26. package/dist/modules/data/index.d.ts.map +1 -1
  27. package/dist/modules/data/objects.d.ts +86 -54
  28. package/dist/modules/data/objects.d.ts.map +1 -1
  29. package/dist/modules/data/types.d.ts +3 -22
  30. package/dist/modules/data/types.d.ts.map +1 -1
  31. package/dist/modules/dom/attributes.d.ts +10 -19
  32. package/dist/modules/dom/attributes.d.ts.map +1 -1
  33. package/dist/modules/dom/content.d.ts +9 -17
  34. package/dist/modules/dom/content.d.ts.map +1 -1
  35. package/dist/modules/dom/index.d.ts +8 -15
  36. package/dist/modules/dom/index.d.ts.map +1 -1
  37. package/dist/modules/dom/manipulation.d.ts +41 -81
  38. package/dist/modules/dom/manipulation.d.ts.map +1 -1
  39. package/dist/modules/dom/states.d.ts +12 -23
  40. package/dist/modules/dom/states.d.ts.map +1 -1
  41. package/dist/modules/dom/traversal.d.ts +64 -127
  42. package/dist/modules/dom/traversal.d.ts.map +1 -1
  43. package/dist/modules/effects/fade.d.ts +13 -31
  44. package/dist/modules/effects/fade.d.ts.map +1 -1
  45. package/dist/modules/effects/index.d.ts +15 -23
  46. package/dist/modules/effects/index.d.ts.map +1 -1
  47. package/dist/modules/effects/slide.d.ts +13 -31
  48. package/dist/modules/effects/slide.d.ts.map +1 -1
  49. package/dist/modules/effects/types.d.ts +33 -0
  50. package/dist/modules/effects/types.d.ts.map +1 -0
  51. package/dist/modules/effects/vertical.d.ts +13 -31
  52. package/dist/modules/effects/vertical.d.ts.map +1 -1
  53. package/dist/modules/events/binding.d.ts +11 -21
  54. package/dist/modules/events/binding.d.ts.map +1 -1
  55. package/dist/modules/events/form.d.ts +18 -35
  56. package/dist/modules/events/form.d.ts.map +1 -1
  57. package/dist/modules/events/index.d.ts +9 -17
  58. package/dist/modules/events/index.d.ts.map +1 -1
  59. package/dist/modules/events/keyboard.d.ts +16 -31
  60. package/dist/modules/events/keyboard.d.ts.map +1 -1
  61. package/dist/modules/events/lifecycle.d.ts +6 -11
  62. package/dist/modules/events/lifecycle.d.ts.map +1 -1
  63. package/dist/modules/events/mouse.d.ts +30 -59
  64. package/dist/modules/events/mouse.d.ts.map +1 -1
  65. package/dist/modules/events/touch.d.ts +15 -29
  66. package/dist/modules/events/touch.d.ts.map +1 -1
  67. package/dist/modules/http/get.d.ts +18 -25
  68. package/dist/modules/http/get.d.ts.map +1 -1
  69. package/dist/modules/http/index.d.ts +11 -15
  70. package/dist/modules/http/index.d.ts.map +1 -1
  71. package/dist/modules/http/post.d.ts +13 -19
  72. package/dist/modules/http/post.d.ts.map +1 -1
  73. package/dist/server.d.ts +15 -0
  74. package/dist/server.d.ts.map +1 -0
  75. package/dist/server.js +2246 -0
  76. package/dist/server.js.map +7 -0
  77. package/dist/types.d.ts +11 -21
  78. package/dist/types.d.ts.map +1 -1
  79. package/dist/utils.d.ts +20 -23
  80. package/dist/utils.d.ts.map +1 -1
  81. package/package.json +14 -4
  82. package/wiki/CSS-Classes-&-Styles.md +128 -0
  83. package/wiki/DATA-Utilities-(Arrays).md +332 -0
  84. package/wiki/DATA-Utilities-(Objects).md +263 -0
  85. package/wiki/DOM-Attributes.md +56 -0
  86. package/wiki/DOM-Content.md +48 -0
  87. package/wiki/DOM-Manipulation.md +272 -0
  88. package/wiki/DOM-States.md +73 -0
  89. package/wiki/DOM-Traversal.md +529 -0
  90. package/wiki/EFFECTS-Fade.md +76 -0
  91. package/wiki/EFFECTS-Slide-(horizontal).md +70 -0
  92. package/wiki/EFFECTS-Slide-(vertical).md +75 -0
  93. package/wiki/EVENTS-Bindings.md +55 -0
  94. package/wiki/EVENTS-Form.md +122 -0
  95. package/wiki/EVENTS-Keyboard.md +98 -0
  96. package/wiki/EVENTS-Lifecycle.md +25 -0
  97. package/wiki/EVENTS-Mouse.md +218 -0
  98. package/wiki/EVENTS-Touch.md +98 -0
  99. package/wiki/HTTP-Requests.md +93 -0
  100. package/wiki/Home.md +118 -0
  101. package/wiki/Installation.md +44 -0
  102. package/wiki/Quick-Start.md +139 -0
  103. package/dist/browser.js +0 -29
  104. package/dist/browser.js.map +0 -1
  105. package/dist/core.js +0 -78
  106. package/dist/core.js.map +0 -1
  107. package/dist/index.js +0 -100
  108. package/dist/index.js.map +0 -1
  109. package/dist/jbase.js +0 -1898
  110. package/dist/modules/css/classes.js +0 -88
  111. package/dist/modules/css/classes.js.map +0 -1
  112. package/dist/modules/css/index.js +0 -33
  113. package/dist/modules/css/index.js.map +0 -1
  114. package/dist/modules/css/styles.js +0 -49
  115. package/dist/modules/css/styles.js.map +0 -1
  116. package/dist/modules/data/arrays.js +0 -177
  117. package/dist/modules/data/arrays.js.map +0 -1
  118. package/dist/modules/data/index.js +0 -33
  119. package/dist/modules/data/index.js.map +0 -1
  120. package/dist/modules/data/objects.js +0 -168
  121. package/dist/modules/data/objects.js.map +0 -1
  122. package/dist/modules/data/types.js +0 -43
  123. package/dist/modules/data/types.js.map +0 -1
  124. package/dist/modules/dom/attributes.js +0 -69
  125. package/dist/modules/dom/attributes.js.map +0 -1
  126. package/dist/modules/dom/content.js +0 -63
  127. package/dist/modules/dom/content.js.map +0 -1
  128. package/dist/modules/dom/index.js +0 -48
  129. package/dist/modules/dom/index.js.map +0 -1
  130. package/dist/modules/dom/manipulation.js +0 -343
  131. package/dist/modules/dom/manipulation.js.map +0 -1
  132. package/dist/modules/dom/states.js +0 -89
  133. package/dist/modules/dom/states.js.map +0 -1
  134. package/dist/modules/dom/traversal.js +0 -527
  135. package/dist/modules/dom/traversal.js.map +0 -1
  136. package/dist/modules/effects/fade.js +0 -104
  137. package/dist/modules/effects/fade.js.map +0 -1
  138. package/dist/modules/effects/index.js +0 -38
  139. package/dist/modules/effects/index.js.map +0 -1
  140. package/dist/modules/effects/slide.js +0 -103
  141. package/dist/modules/effects/slide.js.map +0 -1
  142. package/dist/modules/effects/vertical.js +0 -118
  143. package/dist/modules/effects/vertical.js.map +0 -1
  144. package/dist/modules/events/binding.js +0 -60
  145. package/dist/modules/events/binding.js.map +0 -1
  146. package/dist/modules/events/form.js +0 -106
  147. package/dist/modules/events/form.js.map +0 -1
  148. package/dist/modules/events/index.js +0 -53
  149. package/dist/modules/events/index.js.map +0 -1
  150. package/dist/modules/events/keyboard.js +0 -83
  151. package/dist/modules/events/keyboard.js.map +0 -1
  152. package/dist/modules/events/lifecycle.js +0 -40
  153. package/dist/modules/events/lifecycle.js.map +0 -1
  154. package/dist/modules/events/mouse.js +0 -172
  155. package/dist/modules/events/mouse.js.map +0 -1
  156. package/dist/modules/events/touch.js +0 -74
  157. package/dist/modules/events/touch.js.map +0 -1
  158. package/dist/modules/http/get.js +0 -65
  159. package/dist/modules/http/get.js.map +0 -1
  160. package/dist/modules/http/index.js +0 -42
  161. package/dist/modules/http/index.js.map +0 -1
  162. package/dist/modules/http/post.js +0 -54
  163. package/dist/modules/http/post.js.map +0 -1
  164. package/dist/types.js +0 -15
  165. package/dist/types.js.map +0 -1
  166. package/dist/utils.js +0 -71
  167. package/dist/utils.js.map +0 -1
@@ -0,0 +1,75 @@
1
+
2
+ * [`slideDown`](#usage-slideDown) | [`slideUp`](#usage-slideUp) | [`slideToggleBox`](#usage-slideToggleBox)
3
+
4
+ ---
5
+
6
+ ## <a id="usage-slideDown"></a>.slideDown
7
+
8
+ **Description**
9
+ Display the matched elements with a sliding motion (expanding height downwards).
10
+
11
+ **Parameters**
12
+
13
+ * `duration` (Number, optional): Duration in milliseconds.
14
+ * `callback` (Function, optional): A function to call once the animation is complete.
15
+
16
+ **Returns**
17
+
18
+ * (jBase): Current instance.
19
+
20
+ **Example**
21
+
22
+ ```javascript
23
+ // Reveal a dropdown menu
24
+ $('.dropdown-menu').slideDown(200);
25
+
26
+ ```
27
+
28
+ ---
29
+
30
+ ## <a id="usage-slideUp"></a>.slideUp
31
+
32
+ **Description**
33
+ Hide the matched elements with a sliding motion (collapsing height upwards).
34
+
35
+ **Parameters**
36
+
37
+ * `duration` (Number, optional): Duration in milliseconds.
38
+ * `callback` (Function, optional): A function to call once the animation is complete.
39
+
40
+ **Returns**
41
+
42
+ * (jBase): Current instance.
43
+
44
+ **Example**
45
+
46
+ ```javascript
47
+ $('.dropdown-menu').slideUp(200);
48
+
49
+ ```
50
+
51
+ ---
52
+
53
+ ## <a id="usage-slideToggleBox"></a>.slideToggleBox
54
+
55
+ **Description**
56
+ Display or hide the matched elements with a vertical sliding motion. Ideal for accordions or collapsible boxes.
57
+
58
+ **Parameters**
59
+
60
+ * `duration` (Number, optional): Duration in milliseconds.
61
+ * `callback` (Function, optional): A function to call once the animation is complete.
62
+
63
+ **Returns**
64
+
65
+ * (jBase): Current instance.
66
+
67
+ **Example**
68
+
69
+ ```javascript
70
+ $('.accordion-header').click(function() {
71
+ // Slide toggle the next element (the body)
72
+ $(this).next().slideToggleBox(300);
73
+ });
74
+
75
+ ```
@@ -0,0 +1,55 @@
1
+ * [`on`](#usage-on) | [`off`](#usage-off)
2
+
3
+ ---
4
+
5
+ ## <a id="usage-on"></a>.on
6
+
7
+ **Description**
8
+ Attach an event handler function for one or more events to the selected elements.
9
+
10
+ **Parameters**
11
+
12
+ * `event` (String): One or more event types separated by space (e.g., "click" or "click keydown").
13
+ * `handler` (Function): A function to execute when the event is triggered.
14
+
15
+ **Returns**
16
+
17
+ * (jBase): Current instance.
18
+
19
+ **Example**
20
+
21
+ ```javascript
22
+ $('button').on('click', function(e) {
23
+ console.log('Button clicked!', e);
24
+ });
25
+
26
+ ```
27
+
28
+ ---
29
+
30
+ ## <a id="usage-off"></a>.off
31
+
32
+ **Description**
33
+ Remove an event handler.
34
+
35
+ **Parameters**
36
+
37
+ * `event` (String): The event type.
38
+ * `handler` (Function, optional): The specific handler function to remove. If omitted, all handlers for that event type might be removed (depending on implementation).
39
+
40
+ **Returns**
41
+
42
+ * (jBase): Current instance.
43
+
44
+ **Example**
45
+
46
+ ```javascript
47
+ function handleClick() { console.log('Clicked'); }
48
+
49
+ // Bind
50
+ $('button').on('click', handleClick);
51
+
52
+ // Unbind
53
+ $('button').off('click', handleClick);
54
+
55
+ ```
@@ -0,0 +1,122 @@
1
+ * [`submit`](#usage-submit) | [`change`](#usage-change) | [`input`](#usage-input) | [`focus`](#usage-focus) | [`blur`](#usage-blur)
2
+
3
+ ---
4
+
5
+ ## <a id="usage-submit"></a>.submit
6
+
7
+ **Description**
8
+ Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
9
+
10
+ **Parameters**
11
+
12
+ * `handler` (Function, optional): A function to execute when the event is triggered. If omitted, the event is triggered manually.
13
+
14
+ **Returns**
15
+
16
+ * (jBase): Current instance.
17
+
18
+ **Example**
19
+
20
+ ```js
21
+ $('#myForm').submit(function(e) {
22
+ e.preventDefault();
23
+ // Validate form...
24
+ });
25
+
26
+ ```
27
+
28
+ ---
29
+
30
+ ## <a id="usage-change"></a>.change
31
+
32
+ **Description**
33
+ Bind an event handler to the "change" JavaScript event (fires when value is committed), or trigger it.
34
+
35
+ **Parameters**
36
+
37
+ * `handler` (Function, optional): Function to execute.
38
+
39
+ **Returns**
40
+
41
+ * (jBase): Current instance.
42
+
43
+ **Example**
44
+
45
+ ```js
46
+ $('select').change(function() {
47
+ console.log('New selection: ' + $(this).val());
48
+ });
49
+
50
+ ```
51
+
52
+ ---
53
+
54
+ ## <a id="usage-input"></a>.input
55
+
56
+ **Description**
57
+ Bind an event handler to the "input" JavaScript event (fires immediately when value changes), or trigger it.
58
+
59
+ **Parameters**
60
+
61
+ * `handler` (Function, optional): Function to execute.
62
+
63
+ **Returns**
64
+
65
+ * (jBase): Current instance.
66
+
67
+ **Example**
68
+
69
+ ```js
70
+ $('#search').input(function() {
71
+ console.log('Typing: ' + $(this).val());
72
+ });
73
+
74
+ ```
75
+
76
+ ---
77
+
78
+ ## <a id="usage-focus"></a>.focus
79
+
80
+ **Description**
81
+ Bind an event handler to the "focus" JavaScript event, or trigger it.
82
+
83
+ **Parameters**
84
+
85
+ * `handler` (Function, optional): Function to execute.
86
+
87
+ **Returns**
88
+
89
+ * (jBase): Current instance.
90
+
91
+ **Example**
92
+
93
+ ```js
94
+ $('input').focus(function() {
95
+ $(this).addClass('focused');
96
+ });
97
+
98
+ ```
99
+
100
+ ---
101
+
102
+ ## <a id="usage-blur"></a>.blur
103
+
104
+ **Description**
105
+ Bind an event handler to the "blur" JavaScript event (lost focus), or trigger it.
106
+
107
+ **Parameters**
108
+
109
+ * `handler` (Function, optional): Function to execute.
110
+
111
+ **Returns**
112
+
113
+ * (jBase): Current instance.
114
+
115
+ **Example**
116
+
117
+ ```js
118
+ $('input').blur(function() {
119
+ $(this).removeClass('focused');
120
+ });
121
+
122
+ ```
@@ -0,0 +1,98 @@
1
+ * [`keydown`](#usage-keydown) | [`keyup`](#usage-keyup) | [`keypress`](#usage-keypress) | [`pressedKey`](#usage-pressedKey)
2
+
3
+ ---
4
+
5
+ ## <a id="usage-keydown"></a>.keydown
6
+
7
+ **Description**
8
+ Bind an event handler to the "keydown" event, or trigger it.
9
+
10
+ **Parameters**
11
+
12
+ * `handler` (Function, optional): Function to execute.
13
+
14
+ **Returns**
15
+
16
+ * (jBase): Current instance.
17
+
18
+ **Example**
19
+
20
+ ```javascript
21
+ $(document).keydown(function(e) {
22
+ console.log('Key pressed:', e.key);
23
+ });
24
+
25
+ ```
26
+
27
+ ---
28
+
29
+ ## <a id="usage-keyup"></a>.keyup
30
+
31
+ **Description**
32
+ Bind an event handler to the "keyup" event, or trigger it.
33
+
34
+ **Parameters**
35
+
36
+ * `handler` (Function, optional): Function to execute.
37
+
38
+ **Returns**
39
+
40
+ * (jBase): Current instance.
41
+
42
+ **Example**
43
+
44
+ ```javascript
45
+ $('#input').keyup(function() {
46
+ console.log('Key released');
47
+ });
48
+
49
+ ```
50
+
51
+ ---
52
+
53
+ ## <a id="usage-keypress"></a>.keypress
54
+
55
+ **Description**
56
+ Bind an event handler to the "keypress" event, or trigger it.
57
+
58
+ **Parameters**
59
+
60
+ * `handler` (Function, optional): Function to execute.
61
+
62
+ **Returns**
63
+
64
+ * (jBase): Current instance.
65
+
66
+ **Example**
67
+
68
+ ```javascript
69
+ $(document).keypress(function(e) {
70
+ // Logic here
71
+ });
72
+
73
+ ```
74
+
75
+ ---
76
+
77
+ ## <a id="usage-pressedkey"></a>.pressedkey
78
+
79
+ **Description**
80
+ A specialized helper method. It attaches a listener that only executes the handler if a specific key matches.
81
+
82
+ **Parameters**
83
+
84
+ * `key` (String): The key value to check for (e.g., 'Enter', 'Escape').
85
+ * `handler` (Function): Function to execute if the key matches.
86
+
87
+ **Returns**
88
+
89
+ * (jBase): Current instance.
90
+
91
+ **Example**
92
+
93
+ ```javascript
94
+ $('#search').pressedkey('Enter', function() {
95
+ console.log('Enter key was pressed, submitting search...');
96
+ });
97
+
98
+ ```
@@ -0,0 +1,25 @@
1
+ * [`ready`](#usage-ready)
2
+
3
+ ---
4
+
5
+ ## <a id="usage-ready"></a>.ready
6
+
7
+ **Description**
8
+ Specify a function to execute when the DOM is fully loaded.
9
+
10
+ **Parameters**
11
+
12
+ * `handler` (Function): A function to execute after the DOM is ready.
13
+
14
+ **Returns**
15
+
16
+ * (jBase): Current instance.
17
+
18
+ **Example**
19
+
20
+ ```javascript
21
+ $(document).ready(function() {
22
+ console.log('DOM is ready!');
23
+ });
24
+
25
+ ```
@@ -0,0 +1,218 @@
1
+ * [`click`](#usage-click) | [`dblclick`](#usage-dblclick)
2
+ * [`mouseenter`](#usage-mouseenter) | [`mouseleave`](#usage-mouseleave) | [`mousemove`](#usage-mousemove) | [`mousedown`](#usage-mousedown) | [`mouseup`](#usage-mouseup)
3
+
4
+ ---
5
+
6
+ ## <a id="usage-click"></a>.click
7
+
8
+ **Description**
9
+ Bind an event handler to the "click" event, or trigger it.
10
+
11
+ **Parameters**
12
+
13
+ * `handler` (Function, optional): Function to execute.
14
+
15
+ **Returns**
16
+
17
+ * (jBase): Current instance.
18
+
19
+ **Example**
20
+
21
+ ```javascript
22
+ $('#btn').click(function() {
23
+ alert('Clicked!');
24
+ });
25
+
26
+ ```
27
+
28
+ ---
29
+
30
+ ## <a id="usage-dblclick"></a>.dblclick
31
+
32
+ **Description**
33
+ Bind an event handler to the "dblclick" event, or trigger it.
34
+
35
+ **Parameters**
36
+
37
+ * `handler` (Function, optional): Function to execute.
38
+
39
+ **Returns**
40
+
41
+ * (jBase): Current instance.
42
+
43
+ **Example**
44
+
45
+ ```javascript
46
+ $('.item').dblclick(function() {
47
+ $(this).toggleClass('expanded');
48
+ });
49
+
50
+ ```
51
+
52
+ ---
53
+
54
+ ## <a id="usage-mousedown"></a>.mousedown
55
+
56
+ **Description**
57
+ Bind an event handler to the "mousedown" event (mouse button is pressed), or trigger it.
58
+
59
+ **Parameters**
60
+
61
+ * `handler` (Function, optional): Function to execute.
62
+
63
+ **Returns**
64
+
65
+ * (jBase): Current instance.
66
+
67
+ **Example**
68
+
69
+ ```javascript
70
+ $('.btn').mousedown(function() {
71
+ $(this).addClass('active-state');
72
+ });
73
+
74
+ ```
75
+
76
+ ---
77
+
78
+ ## <a id="usage-mouseup"></a>.mouseup
79
+
80
+ **Description**
81
+ Bind an event handler to the "mouseup" event (mouse button is released), or trigger it.
82
+
83
+ **Parameters**
84
+
85
+ * `handler` (Function, optional): Function to execute.
86
+
87
+ **Returns**
88
+
89
+ * (jBase): Current instance.
90
+
91
+ **Example**
92
+
93
+ ```javascript
94
+ $('.btn').mouseup(function() {
95
+ $(this).removeClass('active-state');
96
+ });
97
+
98
+ ```
99
+
100
+ ---
101
+
102
+ ## <a id="usage-mouseenter"></a>.mouseenter
103
+
104
+ **Description**
105
+ Bind an event handler to be fired when the mouse enters an element. This event does not bubble (unlike `mouseover`).
106
+
107
+ **Parameters**
108
+
109
+ * `handler` (Function): Function to execute.
110
+
111
+ **Returns**
112
+
113
+ * (jBase): Current instance.
114
+
115
+ **Example**
116
+
117
+ ```javascript
118
+ $('.card').mouseenter(function() {
119
+ $(this).addClass('hover-effect');
120
+ });
121
+
122
+ ```
123
+
124
+ ---
125
+
126
+ ## <a id="usage-mouseleave"></a>.mouseleave
127
+
128
+ **Description**
129
+ Bind an event handler to be fired when the mouse leaves an element. This event does not bubble (unlike `mouseout`).
130
+
131
+ **Parameters**
132
+
133
+ * `handler` (Function): Function to execute.
134
+
135
+ **Returns**
136
+
137
+ * (jBase): Current instance.
138
+
139
+ **Example**
140
+
141
+ ```javascript
142
+ $('.card').mouseleave(function() {
143
+ $(this).removeClass('hover-effect');
144
+ });
145
+
146
+ ```
147
+
148
+ ---
149
+
150
+ ## <a id="usage-mousemove"></a>.mousemove
151
+
152
+ **Description**
153
+ Bind an event handler to the "mousemove" event, or trigger it.
154
+
155
+ **Parameters**
156
+
157
+ * `handler` (Function, optional): Function to execute.
158
+
159
+ **Returns**
160
+
161
+ * (jBase): Current instance.
162
+
163
+ **Example**
164
+
165
+ ```javascript
166
+ $(document).mousemove(function(e) {
167
+ console.log('Coords: ', e.pageX, e.pageY);
168
+ });
169
+
170
+ ```
171
+
172
+ ---
173
+
174
+ ## <a id="usage-mouseover"></a>.mouseover
175
+
176
+ **Description**
177
+ Bind an event handler to the "mouseover" event. This event bubbles (triggers if mouse enters a child element).
178
+
179
+ **Parameters**
180
+
181
+ * `handler` (Function, optional): Function to execute.
182
+
183
+ **Returns**
184
+
185
+ * (jBase): Current instance.
186
+
187
+ **Example**
188
+
189
+ ```javascript
190
+ $('.container').mouseover(function() {
191
+ // Handle bubbling mouseover
192
+ });
193
+
194
+ ```
195
+
196
+ ---
197
+
198
+ ## <a id="usage-mouseout"></a>.mouseout
199
+
200
+ **Description**
201
+ Bind an event handler to the "mouseout" event. This event bubbles.
202
+
203
+ **Parameters**
204
+
205
+ * `handler` (Function, optional): Function to execute.
206
+
207
+ **Returns**
208
+
209
+ * (jBase): Current instance.
210
+
211
+ **Example**
212
+
213
+ ```javascript
214
+ $('.container').mouseout(function() {
215
+ // Handle bubbling mouseout
216
+ });
217
+
218
+ ```
@@ -0,0 +1,98 @@
1
+ * [`touchstart`](#usage-touchstart) | [`touchend`](#usage-touchend) | [`touchmove`](#usage-touchmove) | [`touchcancel`](#usage-touchcancel)
2
+
3
+ ---
4
+
5
+ ## <a id="usage-touchstart"></a>.touchstart
6
+
7
+ **Description**
8
+ Bind an event handler to the "touchstart" event (finger is placed on a touch surface).
9
+
10
+ **Parameters**
11
+
12
+ * `handler` (Function, optional): Function to execute.
13
+
14
+ **Returns**
15
+
16
+ * (jBase): Current instance.
17
+
18
+ **Example**
19
+
20
+ ```javascript
21
+ $('.swipe-area').touchstart(function(e) {
22
+ console.log('Touch started');
23
+ });
24
+
25
+ ```
26
+
27
+ ---
28
+
29
+ ## <a id="usage-touchend"></a>.touchend
30
+
31
+ **Description**
32
+ Bind an event handler to the "touchend" event (finger is removed from a touch surface).
33
+
34
+ **Parameters**
35
+
36
+ * `handler` (Function, optional): Function to execute.
37
+
38
+ **Returns**
39
+
40
+ * (jBase): Current instance.
41
+
42
+ **Example**
43
+
44
+ ```javascript
45
+ $('.swipe-area').touchend(function(e) {
46
+ console.log('Touch ended');
47
+ });
48
+
49
+ ```
50
+
51
+ ---
52
+
53
+ ## <a id="usage-touchmove"></a>.touchmove
54
+
55
+ **Description**
56
+ Bind an event handler to the "touchmove" event (finger is dragged across the surface).
57
+
58
+ **Parameters**
59
+
60
+ * `handler` (Function, optional): Function to execute.
61
+
62
+ **Returns**
63
+
64
+ * (jBase): Current instance.
65
+
66
+ **Example**
67
+
68
+ ```javascript
69
+ $('.swipe-area').touchmove(function(e) {
70
+ // prevent scrolling while swiping
71
+ e.preventDefault();
72
+ });
73
+
74
+ ```
75
+
76
+ ---
77
+
78
+ ## <a id="usage-touchcancel"></a>.touchcancel
79
+
80
+ **Description**
81
+ Bind an event handler to the "touchcancel" event (system cancels the touch event).
82
+
83
+ **Parameters**
84
+
85
+ * `handler` (Function, optional): Function to execute.
86
+
87
+ **Returns**
88
+
89
+ * (jBase): Current instance.
90
+
91
+ **Example**
92
+
93
+ ```javascript
94
+ $('.swipe-area').touchcancel(function() {
95
+ console.log('Touch cancelled');
96
+ });
97
+
98
+ ```