Skip to content

Instantly share code, notes, and snippets.

@thiagosilr
Last active April 18, 2018 23:04
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 thiagosilr/f504924601c1acaf5785 to your computer and use it in GitHub Desktop.
Save thiagosilr/f504924601c1acaf5785 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Weather BR - Demo</title>
<!-- jQuery Weather CSS -->
<link href="plugin/jquery.weather.br.min.css" media="all" rel="stylesheet" />
<style type="text/css">
#weather {
margin: auto;
width: 300px;
}
</style>
</head>
<body>
<!-- Element to be applied jquery.weather -->
<div id="weather"></div>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- jQuery Weather -->
<script src="plugin/jquery.weather.br.min.js"></script>
<!-- Start jQuery Weather -->
<script>
$(function() {
$('#weather').weather({
locationLat: -19.9267427,
locationLon: -43.9601151
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment