Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="./jquery-3.2.1.min.js" type="text/javascript"></script>
- <script>
- $(document).ready(function(){
- var fry = $.ajax({
- url:"https://fcc-weather-api.glitch.me/api/current",
- type:"GET",
- data: {
- lat:35,
- lon:139
- }
- });
- console.log(fry);
- $("#data").html(fry["responseText"]);
- });
- </script>
- </head>
- <body>
- <h1>Previsão do Tempo</h1>
- <div id="data">
- </div>
- <h2>Super</h2>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement