Skip to content

Commit

Permalink
kill seconds from the time, add percent precipitation, kill second we…
Browse files Browse the repository at this point in the history
…ather icon
  • Loading branch information
mgeraci committed Nov 7, 2015
1 parent d1ce587 commit 3667cbf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2986,7 +2986,7 @@ body {
.hud-section-time h2 {
margin-top: 10px;
color: #aaa;
font-size: 40px; }
font-size: 30px; }

.hud-section-weather .degree-symbol {
margin-left: -0.2em; }
Expand Down
2 changes: 1 addition & 1 deletion static/css/app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ body
h2
margin-top: $gutter / 5
color: $text-color-secondary
font-size: $text-size-tertiary
font-size: $text-size-quartiary

.hud-section-weather
.degree-symbol
Expand Down
1 change: 1 addition & 0 deletions static/js/AutoHUDController.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ window.AutoHUDController = {
summary: day.summary.replace(/\.$/, "")
icon: day.icon
tomorrow: tomorrow
precip: day.precipProbability * 100
}


Expand Down
3 changes: 2 additions & 1 deletion static/js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ window.AutoHUDController = {
high: this.formatTemperature(day.temperatureMax),
summary: day.summary.replace(/\.$/, ""),
icon: day.icon,
tomorrow: tomorrow
tomorrow: tomorrow,
precip: day.precipProbability * 100
};
},
subwayGetter: function() {
Expand Down
7 changes: 2 additions & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ <h1>
<%= d.time.hours %>
<span class="colon">:</span>
<%= d.time.minutes %>
<span class="colon">:</span>
<%= d.time.seconds %>
</h1>
<% } %>
<% if (d.date) { %>
Expand Down Expand Up @@ -54,9 +52,8 @@ <h2>
<br />
<% } %>
<%= d.weather.preview.summary %>
<% if (d.weather.preview.icon) { %>
<span class="wi wi-forecast-io-<%= d.weather.preview.icon %>"></span>
<% } %>
<br />
<%= d.weather.preview.precip %>% chance of rain
</li>
</div>
<% } %>
Expand Down

0 comments on commit 3667cbf

Please sign in to comment.