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.
With configs via meta tags, you can easily use this lib by simply adding:
<script src="https://cdn.jsdelivr.net/gh/neruthes/pride.js@master/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.
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 Julyextended
: Display from May to Augustalways
: Literally, always.never
: Literally, never. // Who the hell will need this???
MIT License.
Inspired by rainbow logo of Medium in June 2015, which reminded me the movement to advocate for.