utils.getUriFragment

getUriFragment(url: string) → {object}

parse the fragment (hash) from a URL and returns them into

// http://www.example.com/index.html#debug&hitbox=true&mytag=value
let UriFragment = me.utils.getUriFragment();
console.log(UriFragment["mytag"]); //> "value"
Parameters:
Name Type Attributes Default Description
url string

<optional>

document.location

an optional params string or URL containing fragment (hash) params to be parsed

Returns:
Type Description
object

an object representing the deserialized params string.

Summary


Public Properties


debug utils.js:39
static debug: boolean = false

boolean

display the debug panel (if preloaded)

debugToggleKey utils.js:39
static debugToggleKey: string = "s"

string

show/hide the debug panel (if preloaded)

hitbox utils.js:39
static hitbox: boolean = false

boolean

draw the hitbox in the debug panel (if enabled)

quadtree utils.js:39
static quadtree: boolean = false

boolean

draw the quadtree in the debug panel (if enabled)

velocity utils.js:39
static velocity: boolean = false

boolean

draw the entities velocity in the debug panel (if enabled)

webgl utils.js:39
static webgl: boolean = false

boolean

force the renderer to WebGL


Powered by webdoc!