swap train times to get from traintimes site
This commit is contained in:
parent
0ab33e448b
commit
ca770e5dbb
@ -16,6 +16,7 @@ const TrainModel = Backbone.Model.extend({
|
||||
const url = `https://traintimes.silvrtree.co.uk/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`;
|
||||
const routeUrl = `https://traintimes.silvrtree.co.uk/gettrains?from=${ this.get('from') }&to=${ this.get('to')}`;
|
||||
const target = this.get('from') + this.get('to');
|
||||
|
||||
this.set('url', url);
|
||||
this.set('routeUrl', routeUrl);
|
||||
this.set('target', target);
|
||||
|
@ -60,11 +60,11 @@ const WView = Backbone.View.extend({
|
||||
'template': _.template(`
|
||||
<% _.each(data, function(item) {%>
|
||||
<div class="card mui--z1 mui-col-md-6 mui-col-lg-4">
|
||||
<div class="mui-col-md-3">
|
||||
<div class="mui-col-md-3 mui-col-xs-3">
|
||||
<div class="mui--text-accent mui--text-title day mui--text-center"><%= item.day %></div>
|
||||
<div class="mui--text-dark-secondary mui--text-subhead mui--text-center"><%= item.date %></div>
|
||||
</div>
|
||||
<div class="mui-col-md-7">
|
||||
<div class="mui-col-md-7 mui-col-xs-7">
|
||||
<div>
|
||||
<i class="mui--text-headline wi <%= item.icon %>"></i>
|
||||
<span class="mui--text-display1 temp<%=item.tempHigh %>"><%= item.tempHigh %>°</span> /
|
||||
@ -72,7 +72,7 @@ const WView = Backbone.View.extend({
|
||||
</div>
|
||||
<div class="mui--text-caption summary"><%= item.summary %></div>
|
||||
</div>
|
||||
<div class="mui-col-md-2">
|
||||
<div class="mui-col-md-2 mui-col-xs-2">
|
||||
<div class="mui--text-caption"><%= item.tempMorn %>°</div>
|
||||
<div class="mui--text-caption"><%= item.tempDay %>°</div>
|
||||
<div class="mui--text-caption"><%= item.tempEve %>°</div>
|
||||
|
Loading…
Reference in New Issue
Block a user