Skip to content

Instantly share code, notes, and snippets.

@AaronMcCaughan
Created October 9, 2018 21:23
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 AaronMcCaughan/cc3e9aaf4ac397706def5cffb99c75dd to your computer and use it in GitHub Desktop.
Save AaronMcCaughan/cc3e9aaf4ac397706def5cffb99c75dd to your computer and use it in GitHub Desktop.
weather widget
/*This widget provides the weather report for your specified area:
To implement following the instructions below
CSS - NONE REQUIRED */
/*Copy this snippet of code into the html section of the widget editor*/
<div class="user-info-tooltip">
<div class="user-info-wrapper">
<div class="user-info-top">
<div class="user-location"><span>Sydney, Australia</span></div>
<div class="user-weather"><span class="icon-weather"></span><span class="degree"></span><span class="unit">℃</span></div>
</div>
</div>
</div>
/*Copy this snippet of code into the html section of the widget editor and replace 'Sydney' with the name of your area*/
<script>
$(document).ready(function() {
setTimeout(function () {
_formBuilder.getWeatherInfo('Sydney');
}, 500);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment