Created
May 3, 2019 22:30
-
-
Save joncancode/51784cf773a69556dc04d2e40276d1fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
/* | |
- Sign up for openweathermap.org and generate an API key. | |
- User either $.ajax or $.get to pull weather current data . | |
for Washington DC (hint: http://api.openweathermap.org/data/2.5/weather?q=...). | |
- Print the temperature in console. | |
- Bonus 1: add a form prompting user for the city and state. | |
- Bonus 2: convert answer from kelvin to fahrenheit. | |
*/ | |
'use strict'; | |
(function() { | |
var weatherUrl = "http://api.openweathermap.org/data/2.5/weather?q="; | |
var apiKey = ""; | |
}); | |
})(); | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment