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"
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url | string |
<optional> |
document.location |
an optional params string or URL containing fragment (hash) params to be parsed |
Type | Description |
---|---|
object |
an object representing the deserialized params string. |
Summary
Properties from getUriFragment
boolean |
|
string |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
Public Properties
static debugToggleKey: string = "s"
string
show/hide the debug panel (if preloaded)
static hitbox: boolean = false
boolean
draw the hitbox in the debug panel (if enabled)
static quadtree: boolean = false
boolean
draw the quadtree in the debug panel (if enabled)
static velocity: boolean = false
boolean
draw the entities velocity in the debug panel (if enabled)