Skip to content

Commit

Permalink
Weather stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 6, 2013
1 parent 52095c6 commit 3335a55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion www/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,12 @@ h1,h2,h3,h4,h5 {
height: 60px;
}
#forecast-scroll .scroll {
width: 1150px;
width: 1480px;
}
.hourly-hour {
display: inline-block;
margin-right: 10px;
text-align: center;
}

/**
Expand Down
5 changes: 4 additions & 1 deletion www/js/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ angular.module('ionic.weather.filters', ['ionic.weather.services'])

.filter('hourFormat', function() {
return function(input) {
return input;
var h = parseInt(input);
var postfix = h >= 12 ? 'PM' : 'AM';
var h12 = (h % 12) || 12;
return h12 + postfix;
}
});

0 comments on commit 3335a55

Please sign in to comment.