Created
October 9, 2018 21:23
-
-
Save AaronMcCaughan/cc3e9aaf4ac397706def5cffb99c75dd to your computer and use it in GitHub Desktop.
weather widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*This widget provides the weather report for your specified area: | |
To implement following the instructions below | |
CSS - NONE REQUIRED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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