API Docs for: 1.0.0
Show:

LADS.Layout.StartPage Class

The start page for TAG, which contains mueseum info, server preferences and credits.

Constructor

LADS.Layout.StartPage

(
  • options
  • startPageCallback
)
Object

Parameters:

Returns:

Object:

that collection of public methods and properties

Methods

expandInfo

(
  • event
)

animation of credits when user clicks

Parameters:

  • event Object

    the 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 Object

    contains all image paths and museum info

setImagePaths

(
  • main
)

gets the paths for all the images displayed on the splash screen

Parameters:

  • main Object

    contains 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 Object

    contains all the museum information

setUpMuseumInfo

(
  • main
)

Fills in all museum info including name and location

Parameters:

  • main Object

    contains all the museum information