mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
Got everything organised.
This commit is contained in:
parent
67871be78c
commit
eaf6625fe7
@ -4,9 +4,7 @@
|
||||
<title>Tube Status</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.min.css" />
|
||||
<script src="http://code.jquery.com/jquery.min.js"></script>
|
||||
<script src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.min.js"></script>
|
||||
<script src="javascripts/require.js" data-main="javascripts/app"></script>
|
||||
<script src="javascripts/libs/require.js" data-main="javascripts/main"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
require(['underscore',
|
||||
'backbone',
|
||||
'mustache',
|
||||
'views/line_list'],
|
||||
function(_, Backbone, Mustache, LineList) {
|
||||
define(['jquery',
|
||||
'underscore',
|
||||
'jquerymobile',
|
||||
'backbone',
|
||||
'mustache'],
|
||||
function($, _, a, Backbone, Mustache) {
|
||||
return {
|
||||
initialize: function() {
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
4
javascripts/libs/jquery.min.js
vendored
Normal file
4
javascripts/libs/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
javascripts/libs/jquery.mobile.min.js
vendored
Normal file
2
javascripts/libs/jquery.mobile.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
23
javascripts/main.js
Normal file
23
javascripts/main.js
Normal file
@ -0,0 +1,23 @@
|
||||
require.config({
|
||||
paths: {
|
||||
jquery: 'libs/jquery.min',
|
||||
jquerymobile: 'libs/jquery.mobile.min',
|
||||
underscore: 'libs/underscore',
|
||||
backbone: 'libs/backbone',
|
||||
mustache: 'libs/mustache',
|
||||
text: 'libs/text'
|
||||
},
|
||||
shim: {
|
||||
underscore: {
|
||||
exports: '_'
|
||||
},
|
||||
backbone: {
|
||||
deps: ["underscore", "jquery"],
|
||||
exports: "Backbone"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require(['app'], function(App) {
|
||||
App.initialize();
|
||||
});
|
||||
@ -1,4 +1,4 @@
|
||||
require(['backbone',
|
||||
define(['backbone',
|
||||
'text',
|
||||
'models/line',
|
||||
'collections/lines',
|
||||
@ -13,4 +13,6 @@ function(Backbone,
|
||||
el: '#line-list'
|
||||
});
|
||||
|
||||
return LineList;
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user