Skip to content

Banner to inform your website's users about the ongoing COVID-19 pandemic

License

Notifications You must be signed in to change notification settings

TheCoolBlackCat/coronavirus-banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COVID-19 Banner

A banner to tell your website viewers about what they can do to protect themselves from the coronavirus.

Installing on your webpage

Using GitHub.io

<script type="text/javascript" src="https://TheCoolBlackCat.github.io/coronavirus-banner/loader.js"></script>

Or, download locally

<script type="text/javascript" src="loader.js"></script>

Place the <script> before your closing </body> tag.

Usage

Include the following code after the </script>:

<script>
    _cvLoader.load("en"); // Change to desired language/country (see below)
</script>

Note that the banner uses a cookie to store the user dismssing it, retained for 15 days after they press the close button (x).

Preview

You can see a working preview here.

Languages Supported

The program currently supports the following languages:

  • en-GB (default)
  • en-US

Please feel free to add more languages/countries into _cv.info object, found at the top of cv-banner.js, please use their ISO Language Code as the key.

Contributions

Any contributions are welcome! Whether you are a coder, bug-fixer, tester, translator, grammar-corrector, please raise an issue.

About

Banner to inform your website's users about the ongoing COVID-19 pandemic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published