Namespace: CrossBrowdy

CB_Configuration. CrossBrowdy

Property that contains an object with the options for the main script.

Source:

Members


<static, constant> CB_console_ALLOW_ALERTS :boolean

Defines whether to allow the use of alert()'s as a fallback when using CB_console and neither the console object nor a DOM element with "CB_console" ID are found.

Type:
  • boolean
Default Value:
  • true
Source:

<static, constant> CB_includeJSFile_TIMEOUT_MS_DEFAULT :int

Default milliseconds before firing the timeout callback for the CB_includeJSFile function.

Type:
  • int
Default Value:
  • 90000
Source:

<static, constant> SCRIPT_PATH_DEFAULT :string

Default path of the script (path can be changed when CB_init is called)

Type:
  • string
Default Value:
Source:

<static, constant> SHOW_SPLASH_SCREEN_DEFAULT :boolean

Defines whether to show the splash screen in the beginning by default or not.

Type:
  • boolean
Default Value:
  • true
Source:

<static, constant> STATS :boolean

Defines whether to register statistics or not. If it is enabled, the URL defined in CB_Configuration.CrossBrowdy.STATS_URL will be called (by including it as a JavaScript file) as soon as CrossBrowdy gets called (might not be ready yet).
This parameter do not do anything else, just includes your desired URL (defined in CB_Configuration.CrossBrowdy.STATS_URL) as a JavaScript file when CrossBrowdy is called.

Type:
  • boolean
Default Value:
  • false
Source:

<static, constant> STATS_URL :string

URL to register the statistics if CB_Configuration.CrossBrowdy.STATS is enabled. When CB_Configuration.CrossBrowdy.STATS is enabled, this URL will be included as a JavaScript file as soon as CrossBrowdy gets called (might not be ready yet).
The URL will be called (included in the document as a JavaScript file) adding three parameters: "cb" parameter with the CrossBrowdy version as the value, "time" with a timestamp which belongs to the current time of the client and "url" parameter with the current URL visited by the user as the value.

Type:
  • string
Default Value:
  • https://crossbrowdy.com/_stats/CB_stats.php
Source: