A banner to tell your website viewers about what they can do to protect themselves from the coronavirus.
<script type="text/javascript" src="https://TheCoolBlackCat.github.io/coronavirus-banner/loader.js"></script>
<script type="text/javascript" src="loader.js"></script>
Place the <script>
before your closing </body>
tag.
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).
You can see a working preview here.
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.
Any contributions are welcome! Whether you are a coder, bug-fixer, tester, translator, grammar-corrector, please raise an issue.