Working on binding each view together.

Separate views are stored in an ejs file. When the app starts, each file will be loaded, with the DOM elements hidden. Based on the state of the application, a specific view will be fadded in. Switching between views will use this principle.

Moved contents of index.ejs to landing.ejs to make it compatible with the new format. As a result, index.ejs is deprecated and will be removed once it is no longer needed for reference.
This commit is contained in:
Daniel Scalzi
2018-04-02 16:05:48 -04:00
parent 7fb33c6813
commit ec9e95c130
8 changed files with 197 additions and 17 deletions

View File

@@ -14,6 +14,15 @@ let launch_content, launch_details, launch_progress, launch_progress_label, laun
// Synchronous Listener
document.addEventListener('readystatechange', function(){
if (document.readyState === 'complete'){
if(ConfigManager.isFirstLaunch()){
$('#welcomeContainer').fadeIn(500)
} else {
$('#landingContainer').fadeIn(500)
}
}
if (document.readyState === 'interactive'){
// Save a reference to the launch elements.