This repository was archived by the owner on Nov 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (66 loc) · 1.95 KB
/
index.html
File metadata and controls
74 lines (66 loc) · 1.95 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Chaplin Example Application</title>
<link rel="stylesheet" href="css/main.css">
<!--[if lt IE 9]>
<script>
'abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})
</script>
<![endif]-->
<script>
document.documentElement.className += 'js';
</script>
</head>
<body>
<h1>Chaplin Example Application</h1>
<p>This example uses a client-side Facebook login to display your Facebook likes.</p>
<p id="startup-loading" class="accessible-fallback">Loading…</p>
<div id="page-container">
<nav id="navigation-container"></nav>
<div id="content-container"></div>
<aside id="sidebar-container"></aside>
</div>
<div id="fb-root"></div>
<script src="js/vendor/require-2.0.6.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.8.2',
underscore: 'vendor/underscore-1.3.3',
backbone: 'vendor/backbone-0.9.2',
handlebars: 'vendor/handlebars-1.0.rc.1',
text: 'vendor/require-text-2.0.3',
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: {
underscore: {
exports: '_'
},
backbone: {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
handlebars: {
exports: 'Handlebars'
}
}
// 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(['facebook_application'], function (FacebookApplication) {
var app = new FacebookApplication();
app.initialize();
});
</script>
</body>
</html>