forked from projecttouch/projecttouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.js
52 lines (41 loc) · 1.36 KB
/
application.js
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
/**
* Project Touch
*
* @date: 6/18/13
*/
/*global define, window, document, $, requirejs, require */
requirejs.config({
waitSeconds: 1,
paths: {
"backbone": ["//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min", "libs/backbone-1.0.0.min"],
"underscore": ["//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min", "libs/underscore-1.4.4.min"],
"jquery": ["//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min", "libs/jquery-2.0.2.min"],
"hammer": ["//cdnjs.cloudflare.com/ajax/libs/hammer.js/1.0.5/hammer.min", "libs/hammer-1.0.5.min"],
"stats": ["libs/stats.min"]
},
shim: {
"underscore": {
exports: "_"
},
"backbone": {
deps: ["underscore", "jquery"],
exports: "Backbone"
},
"stats": {
exports: "Stats"
}
}
});
require(['app/project-touch', 'hammer', 'stats'], function (PT) {
'use strict';
var stats = new Stats();
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.bottom = '0px';
document.body.appendChild( stats.domElement );
window.log = function () {
console.log.apply(console, arguments);
}
window.App = new PT({el: document.querySelector('.video')});
window.App.render();
});