-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
285 lines (284 loc) · 11.7 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
import { inertiaTo } from 'aftc-modules/src/animation/inertiaTo.js';
import { arrayClear } from 'aftc-modules/src/array/arrayClear.js';
import { arrayContains } from 'aftc-modules/src/array/arrayContains.js';
import { arrayEmpty } from 'aftc-modules/src/array/arrayEmpty.js';
import { arrayGetMax } from 'aftc-modules/src/array/arrayGetMax.js';
import { arrayGetMin } from 'aftc-modules/src/array/arrayGetMin.js';
import { arrayRemoveIndex } from 'aftc-modules/src/array/arrayRemoveIndex.js';
import { arrayRemoveValue } from 'aftc-modules/src/array/arrayRemoveValue.js';
import { arrayShuffle } from 'aftc-modules/src/array/arrayShuffle.js';
import { arrayShuffle2 } from 'aftc-modules/src/array/arrayShuffle2.js';
import { isArrayInString } from 'aftc-modules/src/array/isArrayInString.js';
import { isInArray } from 'aftc-modules/src/array/isInArray.js';
import { isStringInArray } from 'aftc-modules/src/array/isStringInArray.js';
import { getBrowser } from 'aftc-modules/src/browser/getBrowser.js';
import { getBrowserX } from 'aftc-modules/src/browser/getBrowserX.js';
import { getBrowserY } from 'aftc-modules/src/browser/getBrowserY.js';
import { isInViewport } from 'aftc-modules/src/browser/isInViewport.js';
import { argsToObject } from 'aftc-modules/src/conversion/argsToObject.js';
import { boolToInt } from 'aftc-modules/src/conversion/boolToInt.js';
import { boolToString } from 'aftc-modules/src/conversion/boolToString.js';
import { boolToYesNo } from 'aftc-modules/src/conversion/boolToYesNo.js';
import { degToRad } from 'aftc-modules/src/conversion/degToRad.js';
import { hexToRgb } from 'aftc-modules/src/conversion/hexToRgb.js';
import { numToHex } from 'aftc-modules/src/conversion/numToHex.js';
import { objectToObject } from 'aftc-modules/src/conversion/objectToObject.js';
import { radToDeg } from 'aftc-modules/src/conversion/radToDeg.js';
import { rgbToHex } from 'aftc-modules/src/conversion/rgbToHex.js';
import { rgbToHex2 } from 'aftc-modules/src/conversion/rgbToHex2.js';
import { rgbToHex3 } from 'aftc-modules/src/conversion/rgbToHex3.js';
import { stringToBool } from 'aftc-modules/src/conversion/stringToBool.js';
import { toFloat } from 'aftc-modules/src/conversion/toFloat.js';
import { toInt } from 'aftc-modules/src/conversion/toInt.js';
import { CookieManager } from 'aftc-modules/src/cookies/CookieManager.js';
import { getCookie } from 'aftc-modules/src/cookies/getCookie.js';
import { listCookies } from 'aftc-modules/src/cookies/listCookies.js';
import { setCookie } from 'aftc-modules/src/cookies/setCookie.js';
import { getDaysBetween } from 'aftc-modules/src/datetime/getDaysBetween.js';
import { getMySQLDateTimeString } from 'aftc-modules/src/datetime/getMySQLDateTimeString.js';
import { getUKDate } from 'aftc-modules/src/datetime/getUKDate.js';
import { getUKDateFromDbDateTime } from 'aftc-modules/src/datetime/getUKDateFromDbDateTime.js';
import { getUKDateTime } from 'aftc-modules/src/datetime/getUKDateTime.js';
import { getUKDateTimeFromDbDateTime } from 'aftc-modules/src/datetime/getUKDateTimeFromDbDateTime.js';
import { getUSDate } from 'aftc-modules/src/datetime/getUSDate.js';
import { Logger } from 'aftc-modules/src/debug/Logger.js';
import { VisualDebug } from 'aftc-modules/src/debug/VisualDebug.js';
import { appendTo } from 'aftc-modules/src/debug/appendTo.js';
import { attachDebug } from 'aftc-modules/src/debug/attachDebug.js';
import { debugTo } from 'aftc-modules/src/debug/debugTo.js';
import { log } from 'aftc-modules/src/debug/log.js';
import { logDisable } from 'aftc-modules/src/debug/log.js';
import { logEnable } from 'aftc-modules/src/debug/log.js';
import { logTo } from 'aftc-modules/src/debug/logTo.js';
import { warn } from 'aftc-modules/src/debug/warn.js';
import { getDeviceType } from 'aftc-modules/src/detection/getDeviceType.js';
import { getOS } from 'aftc-modules/src/detection/getOS.js';
import { isAndroid } from 'aftc-modules/src/detection/isAndroid.js';
import { isChrome } from 'aftc-modules/src/detection/isChrome.js';
import { isEdge } from 'aftc-modules/src/detection/isEdge.js';
import { isFireFox } from 'aftc-modules/src/detection/isFireFox.js';
import { isIOS } from 'aftc-modules/src/detection/isIOS.js';
import { isMobile } from 'aftc-modules/src/detection/isMobile.js';
import { isOpera } from 'aftc-modules/src/detection/isOpera.js';
import { isSafari } from 'aftc-modules/src/detection/isSafari.js';
import { isTouchDevice } from 'aftc-modules/src/detection/isTouchDevice.js';
import { getElementOffsetTop } from 'aftc-modules/src/dom/getElementOffsetTop.js';
import { getElementPosition } from 'aftc-modules/src/dom/getElementPosition.js';
import { getElementPos } from 'aftc-modules/src/dom/getElementPosition.js';
import { hasClass } from 'aftc-modules/src/dom/hasClass.js';
import { isDom } from 'aftc-modules/src/dom/isDom.js';
import { isElement } from 'aftc-modules/src/dom/isElement.js';
import { isElement2 } from 'aftc-modules/src/dom/isElement2.js';
import { setHTML } from 'aftc-modules/src/dom/setHTML.js';
import { onReady } from 'aftc-modules/src/events/onReady.js';
import { limitNoOfWords } from 'aftc-modules/src/form/limitNoOfWords.js';
import { setOptionSelectedIndex } from 'aftc-modules/src/form/setOptionSelectedIndex.js';
import { imageToCanvas } from 'aftc-modules/src/image/imageToCanvas.js';
import { ApiRequest } from 'aftc-modules/src/io/ApiRequest.js';
import { XHR } from 'aftc-modules/src/io/XHR.js';
import { fetchHtml } from 'aftc-modules/src/io/fetchHtml.js';
import { getJson } from 'aftc-modules/src/io/fetchJson.js';
import { loadAndAttachImage } from 'aftc-modules/src/io/loadAndAttachImage.js';
import { promiseLoadCss } from 'aftc-modules/src/io/loadCss.js';
import { loadHTML } from 'aftc-modules/src/io/loadHTML.js';
import { loadJson } from 'aftc-modules/src/io/loadJson.js';
import { loadScript } from 'aftc-modules/src/io/loadScript.js';
import { promiseLoadCss } from 'aftc-modules/src/io/promiseLoadCss.js';
import { promiseLoadImage } from 'aftc-modules/src/io/promiseLoadImage.js';
import { promiseLoadJson } from 'aftc-modules/src/io/promiseLoadJson.js';
import { promiseLoadScript } from 'aftc-modules/src/io/promiseLoadScript.js';
import { getRandomBoolean } from 'aftc-modules/src/math/getRandomBoolean.js';
import { getRandomFloat } from 'aftc-modules/src/math/getRandomFloat.js';
import { getRandomInt } from 'aftc-modules/src/math/getRandomInt.js';
import { getRandomThatIsNot } from 'aftc-modules/src/math/getRandomThatIsNot.js';
import { getRange } from 'aftc-modules/src/math/getRange.js';
import { getWeightedRandom } from 'aftc-modules/src/math/getWeightedRandom.js';
import { isEven } from 'aftc-modules/src/math/isEven.js';
import { isOdd } from 'aftc-modules/src/math/isOdd.js';
import { normaliseRange } from 'aftc-modules/src/math/normaliseRange.js';
import { parseArrayToFloat } from 'aftc-modules/src/math/parseArrayToFloat.js';
import { parseArrayToInt } from 'aftc-modules/src/math/parseArrayToInt.js';
import { roundTo } from 'aftc-modules/src/math/roundTo.js';
import { FPSMonitor } from 'aftc-modules/src/misc/FPSMonitor.js';
import { getGUID } from 'aftc-modules/src/misc/getGUID.js';
import { getUID } from 'aftc-modules/src/misc/getUID.js';
import { isAlphaNumeric } from 'aftc-modules/src/misc/isAlphaNumeric.js';
import { isArray } from 'aftc-modules/src/misc/isArray.js';
import { isBool } from 'aftc-modules/src/misc/isBool.js';
import { isBoolean } from 'aftc-modules/src/misc/isBoolean.js';
import { isNumber } from 'aftc-modules/src/misc/isNumber.js';
import { isNumeric } from 'aftc-modules/src/misc/isNumeric.js';
import { sleep } from 'aftc-modules/src/misc/sleep.js';
import { MouseScrollHandler } from 'aftc-modules/src/mouse/MouseScrollHandler.js';
import { getObjectPropByKey } from 'aftc-modules/src/object/getObjectEntryByKey.js';
import { cutStringTo } from 'aftc-modules/src/string/cutStringTo.js';
import { escapeHTML } from 'aftc-modules/src/string/escapeHTML.js';
import { getAnchor } from 'aftc-modules/src/string/getAnchor.js';
import { getCleanJSONString } from 'aftc-modules/src/string/getCleanJSONString.js';
import { getFileExtension } from 'aftc-modules/src/string/getFileExtension.js';
import { getLastPartOfUrl } from 'aftc-modules/src/string/getLastPartOfUrl.js';
import { getRandomString } from 'aftc-modules/src/string/getRandomString.js';
import { getStringBetween } from 'aftc-modules/src/string/getStringBetween.js';
import { getStringBetween2 } from 'aftc-modules/src/string/getStringBetween2.js';
import { getWordCount } from 'aftc-modules/src/string/getWordCount.js';
import { inString } from 'aftc-modules/src/string/inString.js';
import { isInString } from 'aftc-modules/src/string/isInString.js';
import { lTrimBy } from 'aftc-modules/src/string/lTrimBy.js';
import { rTrimBy } from 'aftc-modules/src/string/rTrimBy.js';
import { regExReplaceAll } from 'aftc-modules/src/string/regExReplaceAll.js';
import { removeFileFromPath } from 'aftc-modules/src/string/removeFileFromPath.js';
import { replaceAll } from 'aftc-modules/src/string/replaceAll.js';
import { replaceDoubleBackSlash } from 'aftc-modules/src/string/replaceDoubleBackSlash.js';
import { replaceDoubleForwardSlash } from 'aftc-modules/src/string/replaceDoubleForwardSlash.js';
import { trimStringBy } from 'aftc-modules/src/string/trimStringBy.js';
import { ucFirst } from 'aftc-modules/src/string/ucFirst.js';
import { SwipeHandler } from 'aftc-modules/src/touch/SwipeHandler.js';
import { doesUrlKeyExist } from 'aftc-modules/src/url/doesUrlKeyExist.js';
import { getRoute } from 'aftc-modules/src/url/getRoute.js';
import { getUrlKeyValue } from 'aftc-modules/src/url/getUrlKeyValue.js';
import { isEmail } from 'aftc-modules/src/validation/isEmail.js';
import { promiseAttachVideo } from 'aftc-modules/src/video/promiseAttachVideo.js';
import { promiseVideoEnd } from 'aftc-modules/src/video/promiseVideoEnd.js';
export {
inertiaTo,
arrayClear,
arrayContains,
arrayEmpty,
arrayGetMax,
arrayGetMin,
arrayRemoveIndex,
arrayRemoveValue,
arrayShuffle,
arrayShuffle2,
isArrayInString,
isInArray,
isStringInArray,
getBrowser,
getBrowserX,
getBrowserY,
isInViewport,
argsToObject,
boolToInt,
boolToString,
boolToYesNo,
degToRad,
hexToRgb,
numToHex,
objectToObject,
radToDeg,
rgbToHex,
rgbToHex2,
rgbToHex3,
stringToBool,
toFloat,
toInt,
CookieManager,
getCookie,
listCookies,
setCookie,
getDaysBetween,
getMySQLDateTimeString,
getUKDate,
getUKDateFromDbDateTime,
getUKDateTime,
getUKDateTimeFromDbDateTime,
getUSDate,
Logger,
VisualDebug,
appendTo,
attachDebug,
debugTo,
log,
logDisable,
logEnable,
logTo,
warn,
getDeviceType,
getOS,
isAndroid,
isChrome,
isEdge,
isFireFox,
isIOS,
isMobile,
isOpera,
isSafari,
isTouchDevice,
getElementOffsetTop,
getElementPosition,
getElementPos,
hasClass,
isDom,
isElement,
isElement2,
setHTML,
onReady,
limitNoOfWords,
setOptionSelectedIndex,
imageToCanvas,
ApiRequest,
XHR,
fetchHtml,
getJson,
loadAndAttachImage,
promiseLoadCss,
loadHTML,
loadJson,
loadScript,
promiseLoadCss,
promiseLoadImage,
promiseLoadJson,
promiseLoadScript,
getRandomBoolean,
getRandomFloat,
getRandomInt,
getRandomThatIsNot,
getRange,
getWeightedRandom,
isEven,
isOdd,
normaliseRange,
parseArrayToFloat,
parseArrayToInt,
roundTo,
FPSMonitor,
getGUID,
getUID,
isAlphaNumeric,
isArray,
isBool,
isBoolean,
isNumber,
isNumeric,
sleep,
MouseScrollHandler,
getObjectPropByKey,
cutStringTo,
escapeHTML,
getAnchor,
getCleanJSONString,
getFileExtension,
getLastPartOfUrl,
getRandomString,
getStringBetween,
getStringBetween2,
getWordCount,
inString,
isInString,
lTrimBy,
rTrimBy,
regExReplaceAll,
removeFileFromPath,
replaceAll,
replaceDoubleBackSlash,
replaceDoubleForwardSlash,
trimStringBy,
ucFirst,
SwipeHandler,
doesUrlKeyExist,
getRoute,
getUrlKeyValue,
isEmail,
promiseAttachVideo,
promiseVideoEnd,
}