Skip to content

Instantly share code, notes, and snippets.

@georules
Created February 10, 2016 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georules/6c2f143f20d1f5465b12 to your computer and use it in GitHub Desktop.
Save georules/6c2f143f20d1f5465b12 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://code.jquery.com/jquery-1.12.0.min.js">
</script>
<script>
url = "http://api.openweathermap.org/data/2.5/weather"
function getData(loc) {
$.ajax({
url:url,
data: {q:loc,appid:"44db6a862fba0b067b1930da0d769e98"},
success: function(data){
console.log(data)
}
})
}
getData("Tallahasse,FL")
getData("Atlanta,GA")
getData("London,UK")
getData("Tallahasse,FL")
</script>
</head>
<body>
put something on here
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment