-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.js
More file actions
39 lines (33 loc) · 796 Bytes
/
loader.js
File metadata and controls
39 lines (33 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Create namespace
var app = {
/* Namespaces */
screens : {},
/* settings */
settings : {
rows : 8,
cols : 8,
}
};
window.addEventListener("load", function() {
console.log("DOM has finished loading.");
// Start dynamic loading
Modernizr.load([
{
load : [
"scripts/lib/sizzle.js",
"scripts/dom.js",
"scripts/main.js",
"scripts/screen.main-menu.js",
"scripts/display.js",
"scripts/screen.viewer.js",
],
// Complete callback that happens after scripts are loaded and executed.
complete : function () {
console.log("All files loaded");
app.main.setup();
//app.main.showScreen("main-menu");
app.main.showScreen("viewer-screen");
}
}
]);
}, false);