Title

Global

Members

# aform

links new tab form submit

View Source js/utility.js, line 314

# AJAX

AJAX runner base

View Source js/ajaxJQuery.ts, line 6

# Base64

Base64 encode / decode

See:

View Source js/base64.js, line 7

# dumpAjax

Ajax dump base

View Source js/ajaxJQuery.ts, line 10

# elm

Progress bar

View Source js/utility.js, line 269

# formField

Element Indexer

View Source js/jQueryPlugin-formsaver.js, line 66

# indicatorAjax

Ajax indicator base

View Source js/ajaxJQuery.ts, line 14

# constant inputrp

Format Rupiah

View Source js/inputRupiah.ts, line 4

# constant isAppLoaded

Determine framework is loaded in browser

View Source src/compiler/core.ts, line 19

# isBrowser

check if running in browser

View Source js/jQueryPlugin-formsaver.js, line 71

# constant isoLangs

Author:
  • Phil Teare

View Source js/countries.ts, line 2187

# package salt

To Do:
  • CryptoJS

View Source js/CryptoJS.js, line 5

# socket

Don't miss data that changes even for a second

Author:
  • <p>Dimas Lanjaka &lt;dimaslanjaka[at]gmail.com</p>
See:
To Do:
  • Live Data

View Source js/websocket.js, line 8

# storageKey

Local Storage key

View Source js/jQueryPlugin-formsaver.js, line 54

# textAreas

To Do:
  • Auto replace placeholder textarea newLines

View Source js/utility.js, line 5

Methods

# ___call(functionName)

call_user_func

Parameters:
Name Type Description
functionName

function name

View Source js/aacaller.ts, line 51

# __call(func)

call_user_func

Parameters:
Name Type Description
func

function name

View Source js/aacaller.ts, line 125

# aesDecrypt(encrypted, key)

AES decrypt

Parameters:
Name Type Description
encrypted
key
See:
  • /src/shim/Cipher.php

View Source js/Cipher.ts, line 44

# aesEncrypt(text, key)

AES encrypt

Parameters:
Name Type Description
text
key
See:
  • /src/shim/Cipher.php

View Source js/Cipher.ts, line 31

# AjaxForm()

Handling form with ajax

View Source js/ajaxJQuery.ts, line 229

  • module:data-success
  • module:data-error
  • module:data-complete

# ajaxRun(method)

ajax request one by one

Parameters:
Name Type Description
method

POST, GET, HEAD, DELETE, OPTIONS, PATCH, PROPATCH

To Do:
  • scheduling any jquery ajax

View Source js/ajaxJQueryScheduler.ts, line 66

# ajx(settings)

Custom ajax

Parameters:
Name Type Description
settings

ajax settings object

View Source js/ajaxJQuery.ts, line 202

# analys(event_action, event_label, event_category, event_value, event_callback)

Google analystic reporter

Parameters:
Name Type Description
event_action String
event_label string
event_category string
event_value string
event_callback function | any

View Source js/analystics.ts, line 71

# array_keys(haystack)

get all keys

Parameters:
Name Type Description
haystack

string etc

View Source js/_Prototype-Array-Func.ts, line 111

# array_rand(arrays, unique)

pick random from array

Parameters:
Name Type Description
arrays Array.<any>
unique boolean

Unique the arrays

View Source js/_Prototype-Array-Func.ts, line 12

# array_remove(source, target)

Remove source sub elements array if exists in target array

// If I have this array:
var myArray = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
// and this one:
var toRemove = ['b', 'c', 'g'];
console.log(array_remove(myArray, toRemove)); // => ['a', 'd', 'e', 'f']
Parameters:
Name Type Description
source
target

View Source src/compiler/func.ts, line 381

# array_shuffle(a)

Shuffles array in place.

Parameters:
Name Type Description
a

items An array containing the items.

View Source js/_Prototype-Array-Func.ts, line 118

# array_unique(arrays)

Array unique

Parameters:
Name Type Description
arrays Array.<any>

View Source js/_Prototype-Array-Func.ts, line 26

# array_unset(arrayName, key)

Unset array

Parameters:
Name Type Description
arrayName Array.<any>
key String | number

View Source js/_Prototype-Array-Func.ts, line 37

# asset(file)

Locate asset file

Parameters:
Name Type Description
file

View Source src/compiler/func.ts, line 33

# async(callback)

Async current function

Parameters:
Name Type Description
callback

View Source src/compiler/func.ts, line 418

# async_exec(commands, callback)

Async execute commands

Parameters:
Name Type Description
commands
callback

callback for each command return

View Source src/compiler/func.ts, line 450

# async_process(source_cache)

process page asynchronously

Parameters:
Name Type Description
source_cache

url

View Source js/ajaxJQuery.ts, line 257

# async_this(callback)

Make function async

Parameters:
Name Type Description
callback

View Source js/aacaller.ts, line 104

# autoExpand(field)

Automatically expand a textarea as the user types (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com

Parameters:
Name Type Description
field

The textarea

View Source js/Helper-textarea.ts, line 8

# autoHeight_()

Auto height textarea

View Source js/jQueryPlugin-core.ts, line 5

# bannedebug()

Disable debugger

View Source js/devtools.js, line 6

# base64_decode(str)

base64 decoding

Parameters:
Name Type Description
str string

base64 string

View Source js/base64.js, line 164

# base64_encode(str)

base64 encoding

Parameters:
Name Type Description
str string

string raw

View Source js/base64.js, line 137

# base64_valid(str)

Check if base64 is valid

Parameters:
Name Type Description
str string

View Source js/base64.js, line 149

# binl2rstr(input) → {string}

Convert an array of little-endian words to a string

Parameters:
Name Type Description
input Array.<number>

MD5 Array

View Source js/md5.js, line 238

MD5 string

string

# binlMD5(x, len) → {Array.<number>}

Calculate the MD5 of an array of little-endian words, and a bit length.

Parameters:
Name Type Description
x Array

Array of little-endian words

len number

Bit length

View Source js/md5.js, line 135

MD5 Array

Array.<number>

# bitRotateLeft(num, cnt) → {number}

Bitwise rotate a 32-bit number to the left.

Parameters:
Name Type Description
num number

32-bit number

cnt number

Rotation count

View Source js/md5.js, line 45

Rotated number

number

# build(withoutApp)

Build Project

Parameters:
Name Type Description
withoutApp

View Source src/compiler/gulpfile.ts, line 29

# call_user_func(functionName, context, args)

call_user_func

Parameters:
Name Type Description
functionName
context
args

View Source js/aacaller.ts, line 85

# compileAssets(item)

compile and minify assets

Parameters:
Name Type Description
item

file full path

View Source src/compiler/gulpfile-compiler.ts, line 15

# config_builder()

Configuration builder

View Source src/compiler/func.ts, line 321

# count(objarr)

Array object counter

Parameters:
Name Type Description
objarr

View Source src/compiler/func.ts, line 390

# countNewLines(placeholder)

Count newLines

Parameters:
Name Type Description
placeholder String

View Source js/utility.js, line 138

# createAlert(title, summary, details, severity, dismissible, autoDismiss, options)

Bootstrap Alert Generator

Parameters:
Name Type Description
title
summary
details
severity
dismissible
autoDismiss
options

View Source js/alert.ts, line 13

Example
createAlert(
 "[title] Opps!",
 "[description] Something went wrong",
 "[details] Here is a bunch of text about some stuff that happened.",
 "[mode|bg-color] danger",
 true, false,
 { position: "fixed", bottom: "15px", right: "15px" });

# createApp(withoutView)

Create App.js

Parameters:
Name Type Description
withoutView

false to not compile views javascripts

View Source src/compiler/gulpfile-app.ts, line 17

# createElement(options)

Parameters:
Name Type Description
options createElementOpt

View Source js/HTML.js, line 4

# createJSON(jsObj, tabs)

Create JSON

Parameters:
Name Type Description
jsObj any
tabs boolean

View Source js/utility.js, line 362

# createStyle(css)

Create style css dynamic

Parameters:
Name Type Description
css

View Source js/alert.ts, line 160

Examples
css = 'h1 { background: red; }'
arributes = {id: 'customStyle', media: 'all'}

# CryptoD(passphrase, encryptedText, salt, iv)

Crypto decrypt

Parameters:
Name Type Description
passphrase String
encryptedText String
salt String
iv String

View Source js/CryptoJS.js, line 96

# CryptoE(passphrase, plainText, salt, iv)

Crypto encrypt

Parameters:
Name Type Description
passphrase String
plainText String
salt String
iv String

View Source js/CryptoJS.js, line 80

# CryptoK(passphrase, salt)

Crypto get key

Parameters:
Name Type Description
passphrase String
salt String

View Source js/CryptoJS.js, line 64

# datatables_colums_options(data, exclude)

Optimize Datatables Columns Options

Parameters:
Name Type Description
data
exclude

View Source js/requirejs.ts, line 273

# datatables_init()

Datatables init

To Do:
  • disable error warning
  • add refresh button

View Source js/requirejs.ts, line 176

# datatables_optimize(id, callback)

Optimize Material Datatables

Parameters:
Name Type Description
id

id table

callback

additional function to optimizer

View Source js/requirejs.ts, line 209

# datetimelocal()

Autofill datetime-local value

View Source js/Input.ts, line 5

# debug_detect()

Detect debugger using flooding loop

View Source js/devtools.js, line 22

# deepAssign(…objects)

Deep merge two or more objects into the first. (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com

Parameters:
Name Type Attributes Description
objects <repeatable>

The objects to merge together

View Source js/_Prototype-Array-Func.ts, line 134

Merged values of defaults and options

# disable_button(t)

Disabling button

Parameters:
Name Type Description
t

element of button

View Source js/button.ts, line 7

# doc(cb)

Better-Docs JSDoc

\\.(jsx|js|ts|tsx|js(doc|x)?)$
Parameters:
Name Type Description
cb

function callback

View Source src/compiler/gulpfile-doc.ts, line 15

# empty(str)

check empty

Parameters:
Name Type Description
str

View Source js/aacaller.ts, line 138

# enable_button(t)

Enabling button

Parameters:
Name Type Description
t

element of button

View Source js/button.ts, line 23

# execute(cmds, callback)

Execute command schedule

Parameters:
Name Type Description
cmds
callback

View Source src/compiler/func.ts, line 221

  • module:NodeJS

# extend_object(arg1, arg2)

Extend Object

Parameters:
Name Type Description
arg1
arg2

View Source js/_Prototype-Object.ts, line 66

# findDups(arr, callback)

find duplicate array

Parameters:
Name Type Description
arr Array.<any>
callback function

View Source js/utility.js, line 149

# fixDeps(pkg)

Fix dependencies and devDependencies

Parameters:
Name Type Description
pkg

View Source src/compiler/func.ts, line 187

# forceSSL()

Force HTTPS

View Source js/function.ts, line 45

# foreach(object, callback)

Loop key value of object

Parameters:
Name Type Description
object Object
callback function

View Source js/utility.js, line 490

# formatNewLines(placeholder)

format new lines

Parameters:
Name Type Description
placeholder String

View Source js/utility.js, line 123

# formsaver(show_debug)

Set all forms to be saved with method vanilla

Parameters:
Name Type Default Description
show_debug false

debug process saving and restoration

To Do:
  • save input fields into browser for reusable form

View Source js/jQueryPlugin-formsaver.js, line 499

# framework()

Framework object initializer

View Source js/app.ts, line 285

# generateRandomString(length)

Generate random string with length

Parameters:
Name Type Default Description
length 6

length to generate

See:

View Source js/aacaller.ts, line 189

# get_currency_symbol()

get currency symbol from navigator

View Source js/utility.js, line 335

# get_unique_id()

Get unique id of machine

View Source js/Helper-lp.ts, line 130

# getAnyClass(obj)

Class reflection

Parameters:
Name Type Description
obj
See:

View Source js/aacaller.ts, line 34

# getCheckedValue(el)

this will check the checked radio in a group, and return the value

Parameters:
Name Type Description
el
See:

View Source js/jQueryPlugin-formsaver.js, line 434

Example
var checkedbooking = getCheckedValue(document.getElementsByName('booking_type'));
console.log(checkedbooking); // {index: NumberIndexRadio, value: valueOfRadio}

# getFuncName()

Get current function name

View Source js/aacaller.ts, line 162

# getIsoCountries()

Get Countries ISO

View Source js/countries.ts, line 2953

# getIsoLangs()

Get ISO Langs

View Source js/countries.ts, line 2921

# getKey(passphrase, salt)

Get key

Parameters:
Name Type Description
passphrase string
salt string

View Source js/CryptoJS.js, line 14

# getLatestVersion(key)

Get latest version of packages

Parameters:
Name Type Description
key

View Source src/compiler/func.ts, line 433

# getLocationHash()

Query URL

View Source js/utility.js, line 249

# getNativeClass(obj)

Class reflection

Parameters:
Name Type Description
obj
See:

View Source js/aacaller.ts, line 22

# geToken()

Get token recaptcha

View Source js/utility.js, line 190

# getParameterByName(name, url)

get url parameter by name

Parameters:
Name Type Default Description
name

parameter name

url null

url target, null for current location.href

See:

View Source js/Helper-url.ts, line 17

Example
```js
// query string: ?foo=lorem&bar=&baz
var foo = getParameterByName('foo'); // "lorem"
var bar = getParameterByName('bar'); // "" (present with empty value)
var baz = getParameterByName('baz'); // "" (present with no value)
var qux = getParameterByName('qux'); // null (absent)
```

# getRandom(arr, n, callback)

Get multiple random element from array

Parameters:
Name Type Description
arr Array.<any>

array sources

n Number

maximum element to be in result

callback function

function to process result

View Source js/utility.js, line 514

# gexec()

load or refreshing google recaptcha

View Source js/utility.js, line 183

# guid()

Get current unique global page user id

View Source js/guid.ts, line 6

# hexHMACMD5(k, d) → {string}

Calculates the Hex encoded HMAC-MD5 for the given key and data

Parameters:
Name Type Description
k string

HMAC key

d string

Input string

View Source js/md5.js, line 370

Raw MD5 string

string

# hexMD5(s) → {string}

Encodes input string as Hex encoded string

Parameters:
Name Type Description
s string

Input string

View Source js/md5.js, line 348

Hex encoded string

string

# http_build_query(obj)

php equivalent http_build_query

Parameters:
Name Type Description
obj

View Source js/function.ts, line 8

# in_array(needle, haystack)

in_array PHP equivalent

Parameters:
Name Type Description
needle

string etc

haystack

View Source js/_Prototype-Array-Func.ts, line 104

# inArray(needle, haystack)

in_array PHP equivalent

Parameters:
Name Type Description
needle

string etc

haystack

View Source js/_Prototype-Array-Func.ts, line 85

# initCodeMirror(opt)

CodeMirror element initializer

Parameters:
Name Type Description
opt

View Source js/Codemirror.ts, line 52

# is_development()

Is Development Mode

View Source js/aacaller.ts, line 174

# is_localhost()

Check current framework running at localhost

View Source js/function.ts, line 22

# isJSON(str)

check validate json

Parameters:
Name Type Description
str string

View Source js/aaconflict.js, line 6

# isMobile()

Detect is mobile

View Source js/Helper-Device.ts, line 5

# isnode()

Is Node ?

View Source js/aacaller.ts, line 14

# isOffline()

Check connectivity

View Source src/compiler/func.ts, line 17

# jAjax(settings)

default ajax jquery request with unique ID

Parameters:
Name Type Description
settings

Jquery ajax settings

View Source js/ajaxJQuery.ts, line 282

# JavaScriptCaller(url, callback)

Javascript caller

Parameters:
Name Type Description
url String
callback function

View Source js/utility.js, line 199

# json_decode(obj)

json decode fails return false

Parameters:
Name Type Description
obj

View Source js/function.ts, line 55

# list_package()

Get list packages and fetch latest version

View Source src/compiler/func.ts, line 480

# load_datatables(callback)

Datatables loader

Parameters:
Name Type Description
callback

View Source js/requirejs.ts, line 126

# load_disqus(disqus_shortname)

Disqus loader which verifies the existence of #disqus_thread on the web page and then prepares the disqus embed script to hook in the document

Parameters:
Name Type Description
disqus_shortname

disqus username/shortname

View Source js/disqus.ts, line 8

# load_module(name, callback)

Load Modules From node_modules folder

Parameters:
Name Type Description
name
callback

View Source js/requirejs.ts, line 89

# load_requirejs()

Load requirejs

View Source js/requirejs.ts, line 75

# loadCodeMirrorScript(opt)

CodeMirror script and style loader

Parameters:
Name Type Description
opt

View Source js/Codemirror.ts, line 10

# loadCSS(href, callback)

Load CSS async

Parameters:
Name Type Description
href
callback

View Source js/function.ts, line 156

# loadingio(text, callback, mode)

Loading.io

Parameters:
Name Type Description
text string
callback function
mode "enable" | "enabled" | "disable" | "disabled"

View Source js/utility.js, line 376

# LoadScript(urls, callback)

Load script asynchronously

Parameters:
Name Type Description
urls
callback

View Source js/function.ts, line 72

# makeid(length)

unique id generator

Parameters:
Name Type Description
length

digit number string

View Source js/jQueryPlugin-formsaver.js, line 41

random string

# makeid(length)

Auto Generate ID

Parameters:
Name Type Description
length Number

View Source js/utility.js, line 169

# md5(string, keyopt, rawopt) → {string}

Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given.

Parameters:
Name Type Attributes Description
string string

Input string

key string <optional>

HMAC key

raw boolean <optional>

Raw output switch

View Source js/md5.js, line 384

MD5 output

string

# md5cmn(q, a, b, x, s, t) → {number}

Basic operation the algorithm uses.

Parameters:
Name Type Description
q number

q

a number

a

b number

b

x number

x

s number

s

t number

t

View Source js/md5.js, line 60

Result

number

# md5ff(a, b, c, d, x, s, t) → {number}

Basic operation the algorithm uses.

Parameters:
Name Type Description
a number

a

b number

b

c number

c

d number

d

x number

x

s number

s

t number

t

View Source js/md5.js, line 76

Result

number

# md5gg(a, b, c, d, x, s, t) → {number}

Basic operation the algorithm uses.

Parameters:
Name Type Description
a number

a

b number

b

c number

c

d number

d

x number

x

s number

s

t number

t

View Source js/md5.js, line 92

Result

number

# md5hh(a, b, c, d, x, s, t) → {number}

Basic operation the algorithm uses.

Parameters:
Name Type Description
a number

a

b number

b

c number

c

d number

d

x number

x

s number

s

t number

t

View Source js/md5.js, line 108

Result

number

# md5ii(a, b, c, d, x, s, t) → {number}

Basic operation the algorithm uses.

Parameters:
Name Type Description
a number

a

b number

b

c number

c

d number

d

x number

x

s number

s

t number

t

View Source js/md5.js, line 124

Result

number

# module_exists(tmodule)

check if module exists

Parameters:
Name Type Description
tmodule

View Source src/compiler/func.ts, line 285

  • module:node

# multiMinify(assets)

compileAssets multiple assets

Parameters:
Name Type Description
assets

View Source src/compiler/gulpfile-app.ts, line 97

# object_join(obj)

Join object to separated string

Parameters:
Name Type Description
obj

Object

View Source js/_Prototype-Object.ts, line 53

Joined string

# oddoreven(n, type)

Odd or Even (Ganjil Genap);

Parameters:
Name Type Description
n
type

odd or even

View Source js/_Prototype-Number.ts, line 22

# onlyUnique(value, index, self)

Get unique array

Parameters:
Name Type Description
value any
index any
self Array.<any>

View Source js/aacaller.ts, line 227

Example
dataArray.filter(onlyUnique)

# openInNewTab(url, name)

open in new tab

Parameters:
Name Type Description
url
name

View Source js/bootstrap-controller.ts, line 122

# pagination_up(target)

Scroll up after click pagination dt

Parameters:
Name Type Description
target

View Source js/requirejs.ts, line 257

# parse_proxy(str) → {Array.<any>}

parse proxy from string

Parameters:
Name Type Description
str string

View Source js/utility.js, line 425

proxy list filtered

Array.<any>

# parseNumber(total_amount_string)

Parse string to float/number

Parameters:
Name Type Description
total_amount_string

string including numbers

View Source js/aacaller.ts, line 234

# parsePackageString(packageString) → {PackageInfo}

Parses the given package string into a package name and version

Parameters:
Name Type Description
packageString string

a string representing a package name and version (e.g. package@1.0.0)

View Source src/compiler/helper.js, line 13

  • an object containing the package name and package version
PackageInfo

# prepEntities(str)

Encode HTML string to HTML entities

Parameters:
Name Type Description
str String

View Source js/entities.js, line 25

# pseudo_builder(string)

jQuery pseudo builder

Parameters:
Name Type Description
string string

View Source js/utility.js, line 479

# Queue()

Creates a new queue. A queue is a first-in-first-out (FIFO) data structure - items are added to the end of the queue and removed from the front.

View Source src/compiler/queue.ts, line 19

Example
// create a new queue
var queue = new Queue();
// enqueue an item
queue.enqueue('item');
// dequeue an item
var item = queue.dequeue();
// get the item at the front of the queue
var item = queue.peek();
// determine the number of items in the queue
var length = queue.getLength();
// determine whether the queue is empty
var isEmpty = queue.isEmpty();

# random_rgba()

Random RGB color

View Source src/compiler/func.ts, line 179

# randomHex()

Random HEX

View Source js/bootstrap-controller.ts, line 114

HEX number without HASH(#)

# rawHMACMD5(k, d) → {string}

Calculates the raw HMAC-MD5 for the given key and data

Parameters:
Name Type Description
k string

HMAC key

d string

Input string

View Source js/md5.js, line 359

Raw MD5 string

string

# rawMD5(s) → {string}

Encodes input string as raw MD5 string

Parameters:
Name Type Description
s string

Input string

View Source js/md5.js, line 338

Raw MD5 string

string

# readFile(file)

Smart read file

Parameters:
Name Type Description
file

View Source src/compiler/func.ts, line 49

# recaptcha()

Hidden reCaptcha v3 object initializer

View Source js/reCaptcha.ts, line 198

# resizeIFrameToFitContent(iFrame)

Resize iframe to fit content

Parameters:
Name Type Description
iFrame

View Source js/function.ts, line 196

# resolve_dir(path)

Resolve directory, create if not exists

Parameters:
Name Type Description
path

View Source src/compiler/func.ts, line 168

# restrict_mode(restrict)

restrict debug

Parameters:
Name Type Description
restrict Boolean

View Source js/devtools.js, line 44

# rp()

Rupiah currency auto format

View Source js/inputRupiah.ts, line 34

# rstr2binl(input) → {Array.<number>}

Convert a raw string to an array of little-endian words Characters >255 have their high-byte silently ignored.

Parameters:
Name Type Description
input string

Raw input string

View Source js/md5.js, line 255

Array of little-endian words

Array.<number>

# rstr2hex(input) → {string}

Convert a raw string to a hex string

Parameters:
Name Type Description
input string

Raw input string

View Source js/md5.js, line 310

Hex encoded string

string

# rstrHMACMD5(key, data) → {string}

Calculates the HMAC-MD5 of a key and some data (raw strings)

Parameters:
Name Type Description
key string

HMAC key

data string

Raw input string

View Source js/md5.js, line 286

Raw MD5 string

string

# rstrMD5(s) → {string}

Calculate the MD5 of a raw string

Parameters:
Name Type Description
s string

Input string

View Source js/md5.js, line 275

Raw MD5 string

string

# safeAdd(x, y) → {number}

Add integers, wrapping at 2^32. This uses 16-bit operations internally to work around bugs in interpreters.

Parameters:
Name Type Description
x number

First integer

y number

Second integer

View Source js/md5.js, line 32

Sum

number

# select2Country(selectCountry, select2Opt)

Select2 Country

Parameters:
Name Type Description
selectCountry
select2Opt

Select2 Options

View Source js/countries.ts, line 2964

  • module:jQuery
Example
select2Country($("#selectID"), {placeholder:"Select Your Country"})

# select2Langs()

Select2 Language Country

View Source js/countries.ts, line 2934

# serializeArray(form)

Serialize all form data into an array of key/value pairs (c) 2020 Chris Ferdinandi, MIT License, https://gomakethings.com

Parameters:
Name Type Description
form

The form to serialize

See:

View Source js/Helper-form.ts, line 15

The serialized form data

Example
var form = document.querySelector('#FormID');
var data = serializeArray(form);
console.log(data);

# serializeArray2Object(obj)

Transform serializeArray into object key value

Parameters:
Name Type Description
obj
See:

View Source js/Helper-form.ts, line 46

# setEventListener(element, eventNames, listener)

Add one or more listeners to an element

Parameters:
Name Type Description
element

DOM element to add listeners to

eventNames

space separated list of event names, e.g. 'click change'

listener

function to attach for each event as a listener

View Source js/Helper-Event.ts, line 7

# shuffle(array)

PHP shuffle array equivalent

Parameters:
Name Type Description
array

View Source js/_Prototype-Array-Func.ts, line 56

Example
var arr = [2, 11, 37, 42];
shuffle(arr);
console.log(arr); //return random

# single_tsCompile(target)

Single Typescript Compiler

Parameters:
Name Type Description
target
To Do:
  • universal-framework typescript compiler support

View Source src/compiler/gulpfile-compiler.ts, line 83

# stacktrace()

Get stacktrace

View Source js/_console.ts, line 119

# storage()

localStorage helper

View Source js/Helper-localstorage.ts, line 79

# str2rstrUTF8(input) → {string}

Encode a string as UTF-8

Parameters:
Name Type Description
input string

Input string

View Source js/md5.js, line 328

UTF8 string

string

# strpad(val)

strpad / startwith zero [0]

Parameters:
Name Type Description
val number

View Source js/_Prototype-Number.ts, line 40

# tafocus(id, placeholder)

textarea focus

Parameters:
Name Type Description
id String
placeholder String

View Source js/utility.js, line 101

# toogleClass(element, className)

Add class if not exists

Parameters:
Name Type Description
element Element

element from DOM

className string

class name

View Source js/utility.js, line 471

# trueTypeOf(obj) → {String}

More accurately check the type of a JavaScript object (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com

Parameters:
Name Type Description
obj Object

The object

See:

View Source js/__env.ts, line 11

The object type

String

# trycatch(callback)

Do trycatch

Parameters:
Name Type Description
callback

View Source src/compiler/func.ts, line 402

# typescriptCompiler(source, destination, callback)

Typescript compiler

Parameters:
Name Type Description
source
destination
callback

View Source src/compiler/gulpfile-app.ts, line 53

# uniqid(prefix, suffix)

Create uniqueid with prefix or suffix

Parameters:
Name Type Description
prefix
suffix

View Source js/aacaller.ts, line 200

# userClass()

User Class

View Source js/user.ts, line 108

# userJSDecrypt(passphrase, encryptedText)

Decrypt function

Parameters:
Name Type Description
passphrase string
encryptedText string

View Source js/CryptoJS.js, line 44

# userJSEncrypt(passphrase, plainText)

Encrypt function

Parameters:
Name Type Description
passphrase string
plainText string

View Source js/CryptoJS.js, line 29

# uuidv4()

Generate UUID v4

View Source js/guid.ts, line 25

# views()

List views folder

View Source src/compiler/gulpfile-app.ts, line 79

# writeFile(path, contents, cb)

Write file recursive

Parameters:
Name Type Description
path
contents
cb

View Source src/compiler/func.ts, line 140

# writenow(packageObject)

write package

Parameters:
Name Type Description
packageObject

View Source src/compiler/func.ts, line 59

Type Definitions

object

# ElementTagNameMap

Deprecated:
  • Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead.

View Source js/lib.dom.d.ts, line 7220