Skip to content

Commit

Permalink
Some cleanup and color of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tswartz committed Apr 6, 2016
1 parent 3a9163b commit aac054c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/main.js
Expand Up @@ -20,7 +20,8 @@ function getWeather(searchQuery) {
}
$.ajax(url + $.param(params), {
success: function (data) {
$('.city').text(`${data.name}, ${getCountryName(data.sys.country)}`);
var countryName = getCountryName(data.sys.country);
$('.city').text(`${data.name}, ${countryName}`);
$('.temp').text(`${data.main.temp} °F`);
$('.summary').html(parseSummary(data));
},
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/main.css
Expand Up @@ -26,4 +26,8 @@ h1 {

.search-wrapper {
padding: 20px 0;
}

.error-message {
color: red;
}

0 comments on commit aac054c

Please sign in to comment.