Giter VIP home page Giter VIP logo

coronavirus-banner's Introduction

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.

coronavirus-banner's People

Contributors

thecoolblackcat avatar

Stargazers

Sunset Mikoto avatar

Watchers

James Cloos avatar  avatar

Forkers

lwd-temp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.