The application container
springroll.Container
iframeSelector
[options]
iframeSelector
String
jQuery selector for application iframe container
[options]
Object
optional
Optional parameteres
[helpButton]
String
optional
jQuery selector for help button
[captionsButton]
String
optional
jQuery selector for captions button
[soundButton]
String
optional
jQuery selector for captions button
[voButton]
String
optional
jQuery selector for vo button
[sfxButton]
String
optional
jQuery selector for sounf effects button
[musicButton]
String
optional
jQuery selector for music button
[pauseButton]
String
optional
jQuery selector for pause button
[pauseFocusSelector='.pause-on-focus']
String
optional
The class to pause the application when focused on. This is useful for form elements which require focus and play better with Application's keepFocus option.
getCaptionsStyles
[prop]
Get the captions styles
[prop]
String
optional
The optional property, values are "size", "edge", "font", "background", "color"
The collection of styles, see setCaptionsStyles for more info.
initClient
Set up communication layer between site and application. May be called from subclasses if they create/destroy Bellhop instances.
openRemote
api
[options]
Open application based on an API Call to SpringRoll Connect
setCaptionsStyles
[styles]
[value]
Set the captions styles
[styles]
Object | String
optional
The style options or the name of the property (e.g., "color", "edge", "font", "background", "size")
[color='white']
String
optional
The text color, the default is white
[edge='none']
String
optional
The edge style, default is none
[font='arial']
String
optional
The font style, default is arial
[background='black-semi']
String
optional
The background style, black semi-transparent
[size='md']
String
optional
The font style default is medium
[align='top']
String
optional
The align style default is top of the window
[value]
String
optional
If setting styles parameter as a string, this is the value of the property.
_appBlurred
Whether the Game is currently "blurred" (not focused) - for pausing/unpausing
Default: false
_containerBlurred
Whether the Container is currently "blurred" (not focused) - for pausing/unpausing
Default: false
_focusTimer
Delays pausing of application to mitigate issues with asynchronous communication between Game and Container
_pageVisibility
Handle the page visiblity change events, like opening a new tab or blurring the current page.
CAPTIONS_MUTED
The name of the saved property if the captions are muted or not
SFX_MUTED
The name of the saved property if the effects are muted or not
userDataHandler
The external handler class, must include remove
, write
, read
methods
make it possible to use something else to handle the external, default
is to use cookies/localStorage. See springroll.SavedDataHandler
as an example.
Default: springroll.SavedDataHandler
VO_MUTED
The name of the saved property if the voice-over is muted or not
helpEnabled
Fired when the enabled status of the help button changes
enabled
Boolean
If the help button is enabled
localError
There was an uncaught iframe error destroying the game on closing
error
Error
The error triggered
pause
Fired when the pause state is toggled
paused
Boolean
If the application is now paused