Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/colorcode-alerts-v1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwsmith committed Dec 1, 2015
2 parents 912a4de + c88921c commit ebbcb56
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ config.php
.idea
/vendor/
index.html
*.vim
.swp
48 changes: 47 additions & 1 deletion inc/css/responsive-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,58 @@ ul#others {
margin-top: 10px;
border: 1px solid #DDD;
background-color: #FFF;
color: #000;
}

#advisories li.alert ul {
display: none;
}

/* Color-code certain alerts. */

#advisories li.alert.vtec-phen-TO.vtec-sig-W span.alert-timing,
#advisories li.alert.vtec-phen-TO.vtec-sig-A span.alert-timing,
#advisories li.alert.vtec-phen-FF.vtec-sig-A span.alert-timing {
color: #FFF;
}

/* TO/SV/FF watches */

#advisories li.alert.vtec-phen-TO.vtec-sig-A {
border-color: rgb(220,0,0);
background-color: rgb(255,97,99);
color: #FFF;
}

#advisories li.alert.vtec-phen-SV.vtec-sig-A {
border-color: rgb(255,194,5);
background-color: rgb(255,236,69);
}

#advisories li.alert.vtec-phen-FF.vtec-sig-A {
border-color: rgb(0,128,0);
background-color: rgb(3,155,11);
color: #FFF;
}

/* TO/SV/FF Warnings */

#advisories li.alert.vtec-phen-TO.vtec-sig-W {
border-color: rgb(128,0,0);
background-color: rgb(192,0,0);
color: #FFF;
}

#advisories li.alert.vtec-phen-SV.vtec-sig-W {
border-color: rgb(198,151,4);
background-color: rgb(255,176,14);
}

#advisories li.alert.vtec-phen-FF.vtec-sig-W {
border-color: rgb(0,192,0);
background-color: rgb(5,237,17);
}

#forecast ul {
list-style: none;
margin: 0;
Expand Down Expand Up @@ -242,4 +288,4 @@ ul#others {
#temp {
font-size: 7em;
}
}
}
19 changes: 9 additions & 10 deletions template.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>#chswx</title>
<link rel="stylesheet" type="text/css" href="inc/css/responsive-style.css" />
</head>
<!DOCTYPE html> <html> <head> <title>#chswx</title> <link rel="stylesheet" type="text/css" href="inc/css/responsive-style.css" /> </head>
<body>
<h1 class="main-title"><span class="city" title="Charleston Weather">#chswx</span></h1>
<div id="wrapper">
Expand All @@ -23,11 +18,15 @@ <h2>Currently</h2>
<div id="advisories">
<h2>Alerts <span>from the National Weather Service</span></h2>
<ul>
<li class="alert ws-a vtec-a" id="WS-A-1392088260"><span class="alert-name">Winter Storm Watch</span> <span class="alert-timing">until 10:00 AM EST on February 13, 2014</span><ul><li>...Winter Storm Watch remains in effect from late Tuesday night<br />through Thursday morning...<br /><br />* ice accumulations...as high as one tenth to two tenths of an<br /> inch possible.<br /><br />* Timing...rain is forecast to mix with or change to freezing rain<br /> for a period late Tuesday night through Wednesday morning...before<br /> changing back to rain Wednesday afternoon. Additional freezing<br /> rain or freezing drizzle is possible late Wednesday night into<br /> Thursday morning.<br /><br />* Impacts...significant ice accumulation could create dangerous <br /> driving conditions...mainly on bridges...overpasses and <br /> untreated roads. Some damage to trees and power lines is <br /> possible as well as sporadic power outages across the area.<br /><br />Precautionary/preparedness actions...<br /><br />Now is the time to prepare for this winter storm. Once the storm<br />begins...conditions will deteriorate rapidly and travel will<br />become dangerous. Prepare to remain in a safe shelter without<br />electricity for a few hours. Obtain vital supplies such as<br />potable water...non-perishable food...medicine...batteries...<br />flashlights and a battery powered radio.</li></ul></li>
<li class="alert ws-a vtec-a" id="WS-A-1392088260"><span class="alert-name">Winter Storm Watch</span> <span class="alert-timing">until 10:00 AM EST on February 13, 2014</span><ul><li>...Winter Storm Watch remains in effect from late Tuesday night<br />through Thursday morning...<br /><br />* ice accumulations...as high as one tenth to two tenths of an<br /> inch possible.<br /><br />* Timing...rain is forecast to mix with or change to freezing rain<br /> for a period late Tuesday night through Wednesday morning...before<br /> changing back to rain Wednesday afternoon. Additional freezing<br /> rain or freezing drizzle is possible late Wednesday night into<br /> Thursday morning.<br /><br />* Impacts...significant ice accumulation could create dangerous <br /> driving conditions...mainly on bridges...overpasses and <br /> untreated roads. Some damage to trees and power lines is <br /> possible as well as sporadic power outages across the area.<br /><br />Precautionary/preparedness actions...<br /><br />Now is the time to prepare for this winter storm. Once the storm<br />begins...conditions will deteriorate rapidly and travel will<br />become dangerous. Prepare to remain in a safe shelter without<br />electricity for a few hours. Obtain vital supplies such as<br />potable water...non-perishable food...medicine...batteries...<br />flashlights and a battery powered radio.</li></ul></li></div>
<li class="alert vtec-phen-TO vtec-sig-W" id="WS-A-1392088260"><span class="alert-name">Tornado Warning</span> <span class="alert-timing">until 10:00 AM EST on February 13, 2014</span><ul><li>...Tornado Warning remains in effect from late Tuesday night<br />through Thursday morning...<br /><br />* ice accumulations...as high as one tenth to two tenths of an<br /> inch possible.<br /><br />* Timing...rain is forecast to mix with or change to freezing rain<br /> for a period late Tuesday night through Wednesday morning...before<br /> changing back to rain Wednesday afternoon. Additional freezing<br /> rain or freezing drizzle is possible late Wednesday night into<br /> Thursday morning.<br /><br />* Impacts...significant ice accumulation could create dangerous <br /> driving conditions...mainly on bridges...overpasses and <br /> untreated roads. Some damage to trees and power lines is <br /> possible as well as sporadic power outages across the area.<br /><br />Precautionary/preparedness actions...<br /><br />Now is the time to prepare for this winter storm. Once the storm<br />begins...conditions will deteriorate rapidly and travel will<br />become dangerous. Prepare to remain in a safe shelter without<br />electricity for a few hours. Obtain vital supplies such as<br />potable water...non-perishable food...medicine...batteries...<br />flashlights and a battery powered radio.</li></ul></li>
<li class="alert vtec-phen-SV vtec-sig-W" id="WS-A-1392088260"><span class="alert-name">Severe Thunderstorm Warning</span> <span class="alert-timing">until 10:00 AM EST on February 13, 2014</span><ul><li>...Severe Thunderstorm Warning remains in effect from late Tuesday night<br />through Thursday morning...<br /><br />* ice accumulations...as high as one tenth to two tenths of an<br /> inch possible.<br /><br />* Timing...rain is forecast to mix with or change to freezing rain<br /> for a period late Tuesday night through Wednesday morning...before<br /> changing back to rain Wednesday afternoon. Additional freezing<br /> rain or freezing drizzle is possible late Wednesday night into<br /> Thursday morning.<br /><br />* Impacts...significant ice accumulation could create dangerous <br /> driving conditions...mainly on bridges...overpasses and <br /> untreated roads. Some damage to trees and power lines is <br /> possible as well as sporadic power outages across the area.<br /><br />Precautionary/preparedness actions...<br /><br />Now is the time to prepare for this winter storm. Once the storm<br />begins...conditions will deteriorate rapidly and travel will<br />become dangerous. Prepare to remain in a safe shelter without<br />electricity for a few hours. Obtain vital supplies such as<br />potable water...non-perishable food...medicine...batteries...<br />flashlights and a battery powered radio.</li></ul></li>
<li class="alert vtec-phen-FF vtec-sig-W" id="WS-A-1392088260"><span class="alert-name">Flash Flood Warning</span> <span class="alert-timing">until 10:00 AM EST on February 13, 2014</span><ul><li>...Flash Flood Warning remains in effect from late Tuesday night<br />through Thursday morning...<br /><br />* ice accumulations...as high as one tenth to two tenths of an<br /> inch possible.<br /><br />* Timing...rain is forecast to mix with or change to freezing rain<br /> for a period late Tuesday night through Wednesday morning...before<br /> changing back to rain Wednesday afternoon. Additional freezing<br /> rain or freezing drizzle is possible late Wednesday night into<br /> Thursday morning.<br /><br />* Impacts...significant ice accumulation could create dangerous <br /> driving conditions...mainly on bridges...overpasses and <br /> untreated roads. Some damage to trees and power lines is <br /> possible as well as sporadic power outages across the area.<br /><br />Precautionary/preparedness actions...<br /><br />Now is the time to prepare for this winter storm. Once the storm<br />begins...conditions will deteriorate rapidly and travel will<br />become dangerous. Prepare to remain in a safe shelter without<br />electricity for a few hours. Obtain vital supplies such as<br />potable water...non-perishable food...medicine...batteries...<br />flashlights and a battery powered radio.</li></ul></li>

</ul>

</div>
<div id="forecast">
<h2>Forecast</h2>
<div class="updated-time"><a href="http://weather.gov/chs" target="_blank">NWS forecast</a> for Charleston updated at 10:05 PM EST</div>
<ul>
<li><span class="day">Tonight</span> <span class="forecast_text">Cloudy. A chance of rain late. Lows in the lower 40s. Northeast winds 15 to 20 mph with gusts up to 30 mph. Chance of rain 20 percent.</span></li>
<li><span class="day">Tuesday</span> <span class="forecast_text">Rain. Highs in the mid 40s. Northeast winds 15 to 20 mph. Chance of rain 90 percent. </span></li>
Expand All @@ -44,4 +43,4 @@ <h2>Forecast</h2>
<h2>About @chswx</h2><div id="footer-wrapper">Follow Charleston Weather updates on <a href="http://twitter.com/chswx">Twitter</a> and <a href="http://facebook.com/chswx">Facebook</a> / Data by <a href="http://www.wunderground.com/US/SC/Charleston.html">Weather Underground</a><br /><br /><strong>Important!</strong> Use this page at your own risk. Not intended for use for life-or-death decisions. Refer to official statements from the National Weather Service/local emergency management in case of severe weather.</div>
</div>
</body>
</html>
</html>

0 comments on commit ebbcb56

Please sign in to comment.