Skip to content

Instantly share code, notes, and snippets.

@joncancode
Created May 3, 2019 22:30
Show Gist options
  • Save joncancode/51784cf773a69556dc04d2e40276d1fa to your computer and use it in GitHub Desktop.
Save joncancode/51784cf773a69556dc04d2e40276d1fa to your computer and use it in GitHub Desktop.
<!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