uibinder.js 652 B

1234567891011121314151617181920212223
  1. /**
  2. * Initialize UI functions which depend on internal modules.
  3. * Loaded after core UI functions are initialized in uicore.js.
  4. */
  5. // Requirements
  6. const path = require('path')
  7. const ConfigManager = require(path.join(__dirname, 'assets', 'js', 'configmanager.js'))
  8. // Synchronous Listener
  9. document.addEventListener('readystatechange', function(){
  10. if (document.readyState === 'complete'){
  11. if(ConfigManager.isFirstLaunch()){
  12. $('#welcomeContainer').fadeIn(500)
  13. } else {
  14. $('#landingContainer').fadeIn(500)
  15. }
  16. }
  17. /*if (document.readyState === 'interactive'){
  18. }*/
  19. }, false)