Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
17 lines
475 B
JavaScript
Executable file
17 lines
475 B
JavaScript
Executable file
/* global App, Settings, KeyNavigationAdapter */
|
|
'use strict';
|
|
|
|
window.addEventListener('load', function onLoad() {
|
|
window.removeEventListener('load', onLoad);
|
|
|
|
var app = new App('main-section');
|
|
|
|
var keyNav = new KeyNavigationAdapter();
|
|
keyNav.init();
|
|
keyNav.on('move', app.handleMove.bind(app));
|
|
keyNav.on('enter', app.handleClick.bind(app));
|
|
keyNav.on('back', app.handleBack.bind(app));
|
|
|
|
Settings.start();
|
|
Settings.once('ready', app.show.bind(app));
|
|
});
|