mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
26 lines
614 B
JavaScript
26 lines
614 B
JavaScript
define(['views/ios',
|
|
'text!templates/header.html',
|
|
'text!templates/footer.html'],
|
|
function(iOS, header, footer) {
|
|
|
|
var Chrome = Backbone.View.extend({
|
|
initialize: function() {
|
|
if (phonegap && (device.platform == "iOS" || device.platform == "iPhone Simulator")) {
|
|
new iOS({ collection: lines });
|
|
}
|
|
else if (phonegap && device.platform == "Android") {
|
|
new Android();
|
|
}
|
|
else {
|
|
// html5 app
|
|
$('#page').prepend(header);
|
|
$('#page').append(footer);
|
|
$('body').addClass('html5');
|
|
}
|
|
}
|
|
});
|
|
|
|
return Chrome;
|
|
|
|
});
|