Skip to content

A javascript solution to add official Corona virus link to .za websites

License

Notifications You must be signed in to change notification settings

primediabroadcasting/za-covid19-js

Repository files navigation

za-covid19-js

za-covid19-js is a free solution for implementing a link to the www.sacoronavirus.co.za website, as legislated by the Minister of Communications and Digital Technologies.

This solution is based entirely on the cookieBAR code. CookieBAR is licensed under GNU General Public License v2.0, and as such, so is this code.

Background

On the 26th of March 2020, the Minister of Communications and Digital Technologies published the Disaster Management Act: Electronic Communications, Postal and Broadcasting Directions that directed

All Internet sites operating within .zaDNA top level domain name must have a landing page with a visible link to www.sacoronavirus.co.za

The full text PDF of the gazette is available here

Usage and configuration

Simply add this code to you page:

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/primediabroadcasting/za-covid19-js/covidbar-latest.min.js"></script>

This also works as a Custom HTML tag inside a Google Tag Manager container.

You can add optional URL parameters to control some elements of the bar:

forceLang will force the bar to use the language you specify. Currently only en and af are supported, more to follow.

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/primediabroadcasting/za-covid19-js/covidbar-latest.min.js?forceLang=af"></script>

Afrikaans

top=1 will make the bar appear at the top of the page as a header. Default is a footer.

theme controls how it looks. Choose one of altblack, grey, momh or white. Default (no theme specified) is black.

default theme=altblack theme=grey theme=momh theme=white

About

A javascript solution to add official Corona virus link to .za websites

Resources

License

Stars

Watchers

Forks

Packages

No packages published