Window Class
Global functions and properties.
Methods
d2h
(
Mixed
static
-
d
Converts decimal number to hexadecimal string.
Parameters:
-
d
Int
Returns:
Mixed:
if d is a number then return hexadecimal string else return d
getEl
(
HTMLElement
static
-
id
Wrapper for document.getElementById().
Parameters:
-
id
Stringthe element's id
Returns:
HTMLElement:
If the element exists then reference to it else null.
h2d
(
Mixed
static
-
h
Converts hexadecimal string to decimal number.
Parameters:
-
h
String
Returns:
Mixed:
if h can be parsed to int then return h as decimal int else return h
isBlank
(
Boolean
static
-
value
Tests string variable for content.
Parameters:
-
value
String
Returns:
Boolean:
isNumeric
(
Boolean
static
-
value
Tests whether string value is completely numeric (decimal: "14000" == true; "14,000" == false).
Parameters:
-
value
String
Returns:
Boolean: