<script type="text/javascript"><!-- [et_pb_line_break_holder] --> var defaultzip = ':auto';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> $(document).ready(function(){<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if(localStorage.getItem('deerfieldag_weatherzipcode')){<!-- [et_pb_line_break_holder] --> defaultzip = localStorage.getItem('deerfieldag_weatherzipcode');<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> aerisWeather();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> $("#changeZipBtn").click(function(){<!-- [et_pb_line_break_holder] --> defaultzip = $(".aw_locationChanger input[name=zipcode]").val();<!-- [et_pb_line_break_holder] --> if(defaultzip == ""){<!-- [et_pb_line_break_holder] --> defaultzip = ':auto';<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> localStorage.setItem('deerfieldag_weatherzipcode', defaultzip);<!-- [et_pb_line_break_holder] --> aerisWeather();<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> $(".aw_locationChanger input[name=zipcode]").val(defaultzip);<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --></script><!-- [et_pb_line_break_holder] -->
<div class="aw_locationChanger"><!-- [et_pb_line_break_holder] --> <h3>Zipcode: <input type="tel" name="zipcode" /><!-- [et_pb_line_break_holder] --> <button id="changeZipBtn" class="button">Change</button></h3><!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> </div><!-- [et_pb_line_break_holder] -->
<div id="local-forecast"></div>
<script src="https://cdn.aerisapi.com/wxblox/aeris-wxblox.min.js"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script type="text/javascript"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function aerisWeather(){ <!-- [et_pb_line_break_holder] -->// Configure Aeris API access keys<!-- [et_pb_line_break_holder] -->Aeris.wxblox.setAccess('nWVqwHxIlheiUHUpyI0Ui', 'qEEYClyPgVK2vzIdq9iiykEHzl3vb8BT3rCQfNG9');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->// Set widget variable<!-- [et_pb_line_break_holder] -->var normals = new Aeris.wxblox.views.Normals('#local-forecast');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->// Set API request parameters to be used when requesting data<!-- [et_pb_line_break_holder] -->var params = { <!-- [et_pb_line_break_holder] --> p: defaultzip<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->// Load and render the view<!-- [et_pb_line_break_holder] -->normals.load(params);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] --></script>