Skip to content

Commit

Permalink
add feels like temp conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorjr committed Jan 12, 2017
1 parent 471e699 commit 404fa54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ function geoLocation() {
window.tempFeel = tempFeel;
window.tempFeelCelsius = tempFeelCelsius;


console.log(data);

var current = document.getElementById(conditions);
var dataPoints = document.getElementById(variables);

conditions.innerHTML = "<p>It is currently " + Math.round(temp) + " °F" + " and " + description;

if (temp != tempFeel) {
variables.innerHTML = "<p> It feels like it is " + Math.round(tempFeel) + " °F.";

}



var hourly = document.getElementById(twentyfour);
Expand Down

0 comments on commit 404fa54

Please sign in to comment.