Weather

' + '
'+ forecastCurrTemp +''+forecastCurr.weather+'
' + '
'; if (forecastCurrAlerts.length) { var forecastCurrAlert, alertStart, alertStop, alertDesc, alertMess; forecastCurrHTML += '
' + '
Weather Alert!
'; for (i in forecastCurrAlerts) { forecastCurrAlert = forecastCurrAlerts[i]; alertStart = formatWeatherDate(forecastCurrAlert.date_epoch, false, 2); alertStop = formatWeatherDate(forecastCurrAlert.expires_epoch, false, 2); alertDesc = ''+forecastCurrAlert.description+''; alertMess = $.trim(forecastCurrAlert.message).replace(/\n{2,}/g,"

"); forecastCurrHTML += '

'+alertDesc+alertMess+'

Effective '+alertStart+'-'+alertStop+'

'; } forecastCurrHTML += '
'; } forecastCurrHTML += '
' + '' + '' + '' + '' + '
Feels Like:'+forecastCurrTempFeels+'Sunrise:'+forecastCurrAstronomy.sunrise.hour +':'+ forecastCurrAstronomy.sunrise.minute +' AM
Humidity:'+forecastCurr.relative_humidity+'Sunset:'+forecastSunsetHour +':'+ forecastCurrAstronomy.sunset.minute +' PM
Wind:'+ forecastCurr.wind_mph +'mph '+ windABBR +'Barometer:'+forecastCurr.pressure_in +' in.
' + '
' + '
Updated: '+ forecastCurrDate +'
'+ forecastCurr.display_location.full +'
' + ''; // Next 36 Hours for (var i=0; i
' switch (i) { case 0: if (currTitlePatt.test(forecast36[i].title)) forecast36HTML += "Tonight"; else forecast36HTML += "Today"; break; case 1: if (currTitlePatt.test(forecast36[i].title)) forecast36HTML += "Tonight"; else forecast36HTML += "Tomorrow"; break; case 2: if (currTitlePatt.test(forecast36[i].title)) forecast36HTML += "Tomorrow Night"; else forecast36HTML += "Tomorrow"; break; } forecast36HTML += '
' + '
' + '
'; if (forecast36High && forecast36High[1] !== undefined && forecast36High[1] != "") forecast36HTML += '
High '+ forecast36High[1] +'
'; if (forecast36Low && forecast36Low[1] !== undefined && forecast36Low[1] != "") forecast36HTML += '
Low '+ forecast36Low[1] +'
'; forecast36HTML += '
' + '
Precip: '+ forecast36[i].pop +'%
'; if (forecast36Wind) { forecast36HTML += '
Winds: '; if (forecast36Wind[1] !== undefined) { forecast36HTML += forecast36Wind[1]; if (forecast36Wind[2] !== undefined) forecast36HTML += '-'; } else forecast36HTML += 'Under '; if (forecast36Wind[2] !== undefined) forecast36HTML += forecast36Wind[2]; forecast36HTML += ' mph
'; } forecast36HTML += ''; } // Hourly for (var i=0; i
' forecastHourHTML += forecastHour.civil; forecastHourHTML += '
' + '
' + '
'; forecastHourHTML += '
'+ forecastHourMisc.temp.english +'
'; + '
'; forecastHourHTML += '
Precip: '+ data.hourly_forecast[i].pop +'%
'; forecastHourHTML += '
Winds: '; forecastHourHTML += forecastHourMisc.wspd.english; forecastHourHTML += ' mph
'; forecastHourHTML += '
'; $('#forecast-hourly-list').append(forecastHourHTML); } var settings = { respondTo: "slider", arrows: true, infinite: false, speed: 300, slidesToShow: 6, slidesToScroll: 3, responsive: [ { breakpoint: 900, settings: { slidesToShow: 5, slidesToScroll: 3, } }, { breakpoint: 600, settings: { slidesToShow: 4, slidesToScroll: 3 } }, { breakpoint: 480, settings: { slidesToShow: 3, slidesToScroll: 2, infinite: true } }, { breakpoint: 360, settings: { slidesToShow: 2, slidesToScroll: 2, infinite: true } }, { breakpoint: 195, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true } } ] }; $('#forecast-hourly-list').slick(settings); }); /* nbc 10 */ // mobile if (jQuery.browser.mobile){ $("#nbc10-responsive").height(1110); $("#nbciframe").attr("src","http://www.nbcphiladelphia.com/templates/nbc_iframe_modules?t=weatherpage-mobile&iframepartner=phillydotcom"); } // desktop else { $("#nbc10-responsive").height(560); $("#nbciframe").attr("src","http://www.nbcphiladelphia.com/templates/nbc_iframe_modules?t=weatherpage-desktop&iframepartner=phillydotcom"); } });