-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
81 lines (73 loc) · 2.19 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Chaplin Boilerplate Application</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<section id="nav-head" class="navbar navbar-fixed-top"></section>
<div class="row-fluid">
<section id="links-section" class="span5"></section>
<section id="tags-section" class="span3"></section>
</div>
<script src="js/vendor/require-2.0.4.js"></script>
<script>
// Configure the AMD module loader
requirejs.config({
// The path where your JavaScripts are located
baseUrl: './js/',
// Specify the paths of vendor libraries
paths: {
jquery: 'vendor/jquery-1.7.2',
tooltip: 'vendor/bootstrap-tooltip',
underscore: 'vendor/underscore-1.3.3',
backbone: 'vendor/backbone-0.9.2',
local_storage: 'vendor/backbone.localStorage',
syphon: 'vendor/backbone.syphon',
handlebars: 'vendor/handlebars-1.0.0.beta.6',
text: 'vendor/require-text-2.0.1',
chaplin: 'vendor/chaplin-1.0.0-pre-59cac06'
},
// Underscore and Backbone are not AMD-capable per default,
// so we need to use the AMD wrapping of RequireJS
shim: {
tooltip: {
deps: ['jquery'],
exports: 'jquery'
},
backbone: {
deps: ['jquery'],
exports: 'Backbone'
},
underscore: {
exports: '_'
},
local_storage: {
deps: ['underscore', 'backbone'],
exports: 'LocalStorage'
},
syphon: {
deps: ['underscore', 'jquery', 'backbone'],
exports: 'Backbone.Syphon'
}
}
// For easier development, disable browser caching
// Of course, this should be removed in a production environment
, urlArgs: 'bust=' + (new Date()).getTime()
});
// Bootstrap the application
require(['chaplin_links_application'], function (LinksApplication) {
var app = new LinksApplication();
app.initialize();
});
</script>
</body>
</html>