Advertisement
davidgaf

weather

Dec 15th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <script src="./jquery-3.2.1.min.js" type="text/javascript"></script>
  4.         <script>
  5.             $(document).ready(function(){
  6.                 var fry = $.ajax({
  7.                     url:"https://fcc-weather-api.glitch.me/api/current",
  8.                     type:"GET",
  9.                     data: {
  10.                         lat:35,
  11.                         lon:139
  12.                         }
  13.                     });
  14.                 console.log(fry);
  15.                 $("#data").html(fry["responseText"]);
  16.             });
  17.         </script>
  18.     </head>
  19.     <body>
  20.         <h1>Previsão do Tempo</h1>
  21.         <div id="data">
  22.  
  23.         </div>
  24.         <h2>Super</h2>
  25.     </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement