Skip to content

Instantly share code, notes, and snippets.

@nfreear
Created February 18, 2021 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfreear/f9fbaa20d3623eda27f41f939d1580a5 to your computer and use it in GitHub Desktop.
Save nfreear/f9fbaa20d3623eda27f41f939d1580a5 to your computer and use it in GitHub Desktop.
COVID widget / banner
<!doctype html> <title> COVID widget / banner </title>
<style>
#covid-widget-nhs {
position: relative;
max-width: calc( 800px - ( 30px * 2 ) );
height: 450px;
}
#covid-widget-nhs iframe {
position: absolute; height: 100%; width: 100%; border: 2px solid #015eb8;
}
</style>
<h1> COVID widget / banner </h1>
<div
id="covid-widget-nhs"
data-X-style="position: relative; max-width: 500px; height: 400px"
>
<iframe
src="https://api-bridge.azurewebsites.net/conditions/?p=coronavirus-covid-19&aspect=name&tab=3&uid=nick.freear.org.uk"
data-src="https://api-bridge.azurewebsites.net/conditions/?p=coronavirus-covid-19&aspect=name,overview_short,symptoms_short,symptoms_long,treatments_overview_short,other_treatments_long,self_care_long,prevention_short,causes_short&tab=3&uid=nick.freear.org.uk"
title="NHS website - health a-z"
data-X-style="position: absolute; height: 100%; width: 100%; border: 2px solid #015eb8;"
>
</iframe>
</div>
<pre>
NDF / 18-Feb-2021.
* https://developer.api.nhs.uk/coronavirus/widget
* https://developer.api.nhs.uk/about/terms/latest
* https://coronavirusresources.phe.gov.uk/covid-19-vaccine/resources/additional-socialCovidVaccineConfidence/
* https://coronavirusresources.phe.gov.uk/covid-19-vaccine/resources/
* https://twitter.com/adilray/status/1353677950550495243
* ...?
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment