LADS.Layout.StartPage Class
The start page for TAG, which contains mueseum info, server preferences and credits.
Constructor
Item Index
Methods
expandInfo
-
event
animation of credits when user clicks
Parameters:
-
event
Objectthe trigger event for animation, in this case a click
fixText
()
adjusts the text to fit the screen size
getBrowserVersion
()
Finds the current browser version. Code from http://stackoverflow.com/questions/5916900/detect-version-of-browser
Returns:
Browser name followed by version e.g. "Chrome 34.0.1847.116"
getRoot
()
Returns:
the root of the splash screen DOM
handleIncompatibleBrowser
()
Displays a dialog box indicating that the user is using an incompatible browser. Points them to links to download the latest version of supported browsers such as IE, Chrome, Safari and Firefox.
initializeHandlers
()
initializes the handlers for various 'click' functions including setting up a server
isBrowserCompatible
()
Checks if TAG is compatible with the current browser.
Returns:
true if the browser is compatible with TAG, false if it isn't
loadHelper
-
main
sets up the entire visual layout and images of the splash screen
Parameters:
-
main
Objectcontains all image paths and museum info
setImagePaths
-
main
gets the paths for all the images displayed on the splash screen
Parameters:
-
main
Objectcontains all the image links
setUpCredits
()
Sets up the credits box with its content including text and images. Also includes function for animation of credits.
setUpInfo
-
main
sets up the info div which contains all the museum information
Parameters:
-
main
Objectcontains all the museum information
setUpMuseumInfo
-
main
Fills in all museum info including name and location
Parameters:
-
main
Objectcontains all the museum information