1
0
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:
Dan Barber 2013-01-23 08:34:14 +00:00
parent 67871be78c
commit eaf6625fe7
11 changed files with 43 additions and 9 deletions

View File

@ -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>

View File

@ -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

File diff suppressed because one or more lines are too long

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
View 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();
});

View File

@ -1,4 +1,4 @@
require(['backbone',
define(['backbone',
'text',
'models/line',
'collections/lines',
@ -13,4 +13,6 @@ function(Backbone,
el: '#line-list'
});
return LineList;
});