• window.janus.getavatar()- Returns the current userid avatar code.
• window.janus.setavatar(string)- Replaces the current userid avatar code with the given string.
• window.janus.currenturl()- A function that returns the current URL of the room as a string.
• window.janus.tricount()- A function that returns the triangle count of the room as an integer.
• window.janus.locked()- A function that returns 0 if the room isn't locked, and 1 if it is.
• window.janus.getsetting(setting)- A function that returns the value of one of the settings located inside the settings.json file in the JanusVR settings folder.
• window.janus.setsetting(setting,value)- A function that submits a value to one of the settings located inside the settings.json file in the JanusVR settings folder.
• window.janus.roomprogress()- A function that returns the loading progress of the room you're standing in as a float from 0 to 1.
• window.janus.launchurl(value,useportal)- A function that, when useportal is set to 0, teleports the player to a room whose url is the specified value, and when useportal is set to 1 spawns a portal to that url.
• window.janus.navback()- Navigates back a room.
• window.janus.navforward()- Navigates forward a room.
• window.janus.navhome()- Navigates to your specified landing space.
• window.janus.chatsend(string)- Sends the string out to other people in the room as a chat message.
• window.janus.sync()- Synchronizes everyone in the room with your room state.
• window.janus.reset()- Resets JanusVR.
• window.janus.quit()- Quits JanusVR.
• window.janus.focus()- Focuses the JanusVR UI.
• window.janus.unfocus()- Unfocuses the JanusVR UI.
• window.janus.saveroom()- Saves the room you are standing in to your workspaces folder and clipboard, and returns the relative file path to the output as a string.
• window.janus.roomcode()- Returns the current room's markup as a string.
• window.janus.setroomcode(string)- Sets the current room's markup to the string provided.
• window.janus.setuserid(string)- Sets the user's userid to the string provided.
• window.janus.getuserid()- Returns the user's userid as a string.
• window.janus.setavatarlighting()- Sets whether or not the user's avatar uses the built in JanusVR lighting system (true), or is full bright (false).
• window.janus.getavatarlighting()- Returns whether or not the user's avatar uses the built in JanusVR lighting system (true), or is full bright (false).
• window.janus.resetavatar()- Resets the user's avatar to a generated default with a random name, random colour and generic user model.
• window.janus.hasFocus()- Returns a boolean of whether or not the JanusVR UI is in focus.
• window.janus.createasset(type,parameters,dosync )- Allocates an asset of the given type ("image" or "object" or "sound" etc.) with the given parameters. If dosync is true, asset will be synchronized with other users.
EXAMPLE:
window.janus.createasset('object', {id:'debugthing', src:'asset.obj'});• window.janus.createobject(type,parameters,do_sync)- Places an object in the room of the given type ("image" or "object" or "sound" etc.) with the given parameters. If do_sync is true, asset will be synchronized with other users.
EXAMPLE:
window.janus.createobject('object', {id:'debugthing'});• window.janus.saveworkspace(dirname)- A function that uses a string (dirname) to create a new workspace. Immediately spawns a portal to the mentioned space.
• window.janus.removeobject(objecttodelete)- Deletes the specified object out of the room.
• window.janus.roompartymode()- Returns a boolean of whether or not the webspace developer has force-disabled partymode broadcasting for users who visit.