A Pen by Michael Vieth

Thumbnail
This awesome code was written by mavieth, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright mavieth ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Michael Vieth</title>
  
  
  
  
  
</head>

<body>

  <div id="ptrc-stock"></div>
<div id="ptrc-price"></div>

<script src="https://query.yahooapis.com/v1/public/yql?q=select wind from weather.forecast where woeid in (select woeid from geo.places(1) where text='chicago, il')&format=json&callback=yqlCallback"></script>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/mavieth/a-pen-by-michael-vieth-wgYzNE */
  var yqlCallback = function(data) {
    var wind = data.query.results.channel.wind;
    alert(wind.chill);
  };

Comments