Advertisement
Guest User

weather.txt

a guest
Dec 15th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <style type="text/css">
  2. p.markdown-html.panel-text-content {
  3. overflow: hidden;
  4. }
  5. p.markdown-html.panel-text-content iframe {
  6. height:225px;
  7. }
  8. </style>
  9.  
  10. <script type="text/javascript">
  11. var weatherProperties = 'lat=NN.NNNNNN&lon=NN.NNNNNN&color=#FFFFFF&text-color=#FFFFFF';
  12.  
  13. // initial load
  14. document.getElementById('embedweather').src = 'http://forecast.io/embed/?ts=' + (Date.now()) + '#' + weatherProperties;
  15.  
  16. // refresh
  17. var weatherRefresh = setInterval(function() { document.getElementById('embedweather').src = 'http://forecast.io/embed/?ts=' + (Date.now()) + '#' + weatherProperties; }, 1800000);
  18.  
  19. </script>
  20. <iframe id="embedweather" height="100%" src="#" style="margin: 0; padding: 0; border: none; width:100%; position:relative; top:-50px; overflow:hidden; margin-bottom: -70px;"></iframe>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement