at-wr / pride.js

Home Page:https://en.wikipedia.org/wiki/Gay_pride

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pride.js

This micro script displays a rainbow bar at the top of the page, when it's June or July.

And the rainbow links to Gay pride on Wikipedia.

Usage

With configs via meta tags, you can easily use this lib by simply adding:

<script src="https://cdn.neop.me/gay-pride.js/pride.js"></script>
<!-- But notice Content-Security-Policy may prevent this script being run. -->

For live demo, visit the author's website in June or July.

Config

Duration

You may add <meta name="pridejs-config-duration" content="regular" /> in <head>. The meta tag is supposed to be placed before pride.js gets included.

Available options:

  • regular: Display from June to July
  • extended: Display from May to August
  • always: Literally, always.
  • never: Literally, never. // Who the hell will need this???

License

MIT License.

Credits

Inspired by rainbow logo of Medium in June 2015, which reminded me the movement to advocate for.

About

https://en.wikipedia.org/wiki/Gay_pride


Languages

Language:JavaScript 100.0%