granci / proroci-korony

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Covidology

A simple static HTML project which tries to summarize quotes about corona pandemic that didn't age well. The idea came from this FB post). The page is deployed here).

Technology

  • Bootstrap 4
  • jQuery 3

Embeding to your website

The chart can be embeded to your website as a iframe:

<iframe src="http://covidology.granci.com/chart/?country=sr&lang=sk&overlap=false" ></iframe>

In the src you can use these parameters:

  • country - allowed values: us, sr, cr (default sr)
  • lang - allowed values: en, sk, cz (default sk)
  • filter - comma-separated tag property of the quote type as defined in quotes folder (default displays all the quotes)
  • search - string to be searched in name, quote or link properties as defined in quotes folder (default displays all the quotes)
  • overlap - boolean, if false, some quotes will be hidden to prevent overlapping (default is true, so all the quotes are displayed in the chart regardless overlapping)

Additional development

As you can see, the project is not very advanced yet. You can help to make it better:

  1. add more relevant quotes by adding more objects to the files in quotes folder
  2. connect to live corona data (I've failed with CORS on the static website)
  3. tune up UX (chart, menu, etc.)

About


Languages

Language:JavaScript 86.5%Language:HTML 11.5%Language:CSS 2.0%