Skip to content
Kilgaloon edited this page Dec 19, 2014 · 26 revisions

Sys

Sys is object which methods are based globally and have next methods and variables.

- lang

Used to get language client is running on.

@string

sys.lang


- os

Used to get platform client is running on.

@string

sys.os


- maxTouches

Store maximal amount of touches device is capable off. Used on devices with screentouch, normal screens have touches equal to 0.

@integer

sys.maxTouches


- plugins

Get list of all plugins running in your browser.

sys.plugins


- online

Check is browser online.

sys.online


- cookieEnabled

Check if cookies are enabled in browser.

sys.cookieEnabled


- log(log, name, store)

Print results to console log, also it can store all logs to local storage.

sys.log("Test log") This method will just print out results to console log.

sys.log("Test log", "Log Storage", true) This method print out and store results in local storage under "Log Storage" name.


Browser

- name()

This method is used to detect which browser client is using, and return name of browser Internet Explorer, Google Chrome, Opera, Mozzila Firefox.

@return string

sys.browser.name()


Server

- host

Store server host url.

sys.server.host

Clone this wiki locally