Last active
November 10, 2016 00:11
-
-
Save ronanj/a8d43518df9ae22235230b758074d8df to your computer and use it in GitHub Desktop.
Manchester Piccadilly Air Quality
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mcr Piccadilly Air Quality</title> | |
<!-- BEGIN AQI --> | |
<!-- AQI script --> | |
<script type="text/javascript" charset="utf-8"> | |
(function(w,d,t,f){ w[f]=w[f]||function(c,k,n){s=w[f],k=s['k']=(s['k']||(k?('&k='+k):''));s['c']= c=(c instanceof Array)?c:[c];s['n']=n=n||0;L=d.createElement(t),e=d.getElementsByTagName(t)[0]; L.async=1;L.src='//feed.aqicn.org/feed/'+(c[n].city)+'/'+(c[n].lang||'')+'/feed.v1.js?n='+n+k; e.parentNode.insertBefore(L,e); }; })( window,document,'script','_aqiFeed' ); | |
</script> | |
<!-- END AQI --> | |
</head> | |
<body> | |
<!-- AQI City:Container specification --> | |
<script type="text/javascript" charset="utf-8"> | |
_aqiFeed({ | |
display: "%cityname AQI is %aqi<br><small>on %date</small>", | |
container: "city-aqi-container", | |
city: "united-kingdom/manchester-piccadilly" | |
}); | |
//display: "%details", | |
</script> | |
<p>This page should display a widget showing air quality data | |
for Manchester Piccadilly, England.</p> | |
<div style='border: solid 1px black; max-width:50%'> | |
<span id="city-aqi-container"></span> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment