-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (85 loc) · 3.5 KB
/
index.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<script>
window.appStartTime = (new Date()).getTime();
</script>
<link rel="stylesheet" type="text/css" href="./static/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/fonts.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/shared.css"/>
<link rel="stylesheet" type="text/css" href="./static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./static/guiders-js/guiders.css">
<script src="./static/js/raven-1.1.15.min.js"></script>
<script>
Raven.config('https://[email protected]/29791', {}).install();
</script>
<script src="./static/js/jquery-2.0.0.js"></script>
<script src="./static/js/jquery-ui-1.10.3.js"></script>
<script src="./node_modules/underscore/underscore.js"></script>
<script src="./node_modules/backbone/backbone.js"></script>
<script src="./static/js/Tween.js"></script>
<script src="./static/notifications/nw-desktop-notifications.js"></script>
<script src="./static/js/jquery.parallax.js"></script>
<script src="./static/js/konami.js"></script>
<script src="./static/guiders-js/guiders.js"></script>
<script src="./static/js/leap-0.6.2.min.js"></script>
</head>
<body class="startup">
<script>
(function() {
process.env.LEAPHOME_ENV = process.env.LEAPHOME_ENV || 'production';
var path = require('path');
global.$ = window.$;
global._ = window._;
global.guiders = window.guiders;
global.LeapHomeDir = path.resolve('.');
global.nwGui = window.nwGui = require('nw.gui');
global.document = window.document;
var uiGlobals = global.uiGlobals = require('./app/ui-globals.js');
global.checkForGPUSupport = function() {
$('<iframe>').css({
position: 'absolute',
width: '100%',
height: '100%'
})
.attr('src', 'http://get.webgl.org')
.appendTo($('body'));
};
global.leapController = new Leap.Controller({'enableGestures': true});
// disable the focus loop so as not to conflict with OS control apps.
global.leapController.connection.startFocusLoop = function(){};
global.leapController.connect();
window.document.title = global.uiGlobals.appName;
require('./app/utils/logging.js');
var appCrashDumpDir = require('./config/config.js').CrashReportingDirs[require('os').platform()]
console.log("Setting app crash dump dir: " + appCrashDumpDir)
nwGui.App.setCrashDumpDir(appCrashDumpDir);
var bootstrapScriptPath = process.env.BOOTSTRAP_SCRIPT_PATH || './app/airspace.js'; // a hook primarily used for testing
var airspace = require(bootstrapScriptPath);
console.log('Starting ' + uiGlobals.appName + ' v' + uiGlobals.appVersion + ' on node-webkit v' + process.versions['node-webkit']);
window.onload = function() {
airspace.run();
};
})();
</script>
<ul id="scene">
<li class="layer background" data-depth="0.0"></li>
<li class="layer midground" data-depth="0.12"></li>
<li class="layer foreground" data-depth="0.2"></li>
</ul>
<script>
var win = nwGui.Window.get();
//$('#scene').parallax();
new Konami(function() {
win.showDevTools();
});
win.on('focus', function() {
global.uiGlobals.hasFocus = true;
});
win.on('blur', function() {
global.uiGlobals.hasFocus = false;
});
</script>
</body>
</html>