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.
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
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>
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.