Namespace: Utils

OSH. Utils

OSH.Utils

Methods

staticOSH.Utils.addCss(div, css)

Add a css class to a the div given as argument.

Name Type Description
div

the div to add the class to

css

the css class to add

staticOSH.Utils.GetResultObject(resultStructure){Object}

Name Type Description
resultStructure
Returns:
Type Description
Object

staticOSH.Utils.getXCursorPosition(){*}

Returns:
Type Description
*

staticOSH.Utils.getYCursorPosition(){*}

Returns:
Type Description
*

staticOSH.Utils.isArrayIntersect(a, b){boolean}

Name Type Description
a
b
Returns:
Type Description
boolean
Returns:
Type Description
* | boolean

staticOSH.Utils.isChrome(){boolean}

Returns:
Type Description
boolean

staticOSH.Utils.isElement(o){boolean}

Name Type Description
o
Returns:
Type Description
boolean

staticOSH.Utils.isFirefox(){boolean}

Returns:
Type Description
boolean

staticOSH.Utils.isIE(){boolean}

Returns:
Type Description
boolean

staticOSH.Utils.isOpera(){boolean}

Returns:
Type Description
boolean

staticOSH.Utils.isSafari(){boolean}

Returns:
Type Description
boolean

staticOSH.Utils.isWebWorker(){*}

Returns:
Type Description
*

staticOSH.Utils.jsonix_XML2JSON(xmlStr){*}

Name Type Description
xmlStr
Returns:
Type Description
*

staticOSH.Utils.ParseBytes(buffer, offset, type){*}

Name Type Description
buffer
offset
type
Returns:
Type Description
*

staticOSH.Utils.randomUUID(){string}

Returns:
Type Description
string

staticOSH.Utils.ReadData(struct, data, offsetBytes){*}

Name Type Description
struct
data
offsetBytes
Returns:
Type Description
*

staticOSH.Utils.removeCss(div, css)

Remove a css class from a the div given as argument.

Name Type Description
div

the div to remove the class from

css

the css class to remove

staticOSH.Utils.stampUUID(){string}

This function stamps/embeds a UUID into an object and returns the UUID generated for it

Returns:
Type Description
string

staticOSH.Utils.takeScreeshot(div)

Name Type Description
div