This is a small JavaScript snippet that behaves similarly to the SOPA/PIPA snippets and plugins from a few years ago. Basically, this piece of code will blackout your website on November 5th, 2015 (Guy Fawkes day) between 8am and 8pm local time and instead, show your website's visitors a message about why it's important to support [H.R.2058] and…
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist/js
src/js
.gitattributes
.gitignore
README.md
gulpfile.js
index.html
package.json

README.md

Save Vapor Products - Support H.R.2058

This is a small JavaScript snippet that behaves similarly to the SOPA/PIPA snippets and plugins from a few years ago.

Basically, this piece of code will blackout your website on November 5th, 2015 (Guy Fawkes day) between 8am and 8pm local time and instead, show your website's visitors a message about why it's important to support H.R.2058 and how to go about doing so.

To briefly explain why this matters, supporting this bill would change the grandfather date for "deemed tobacco products". This makes it possible for all of the vapor products currently on the market, to stay on the market. Without this change, the vape industry as we know it will be decimated.

Details

Contributors: aleksblago
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Installation

Installing this plugin is super easy and has no admin settings at all. The plugin will show your website visitors the H.R.2058 redirect and message only on November 5, 2015 between the hours of 8am and 8pm local time.

Manual Install

Add the following script anywhere on your website:

<script type="text/javascript" src="https://shop.thevapekit.com/wp-content/themes/thevapekit/code/support-hr2058.min.js"></script>

Frequently Asked Questions

I installed and activated the plugin but nothing happened. What's wrong?

Nothing. This plugin will only redirect users between 8am and 8pm on November 5th, 2015. There is nothing to setup or change. The plugin will do everything for you.

How can I view the page the users will see?

Visit https://shop.thevapekit.com/support/example-page

How can I change the layout?

Sorry, you can't change the layout using the JavaScript version.

Live Demo of the Blackout Page

https://shop.thevapekit.com/support/example-page

WordPress Plugin

We have also created a WordPress plugin you can use to install this blackout code. You can download and install the code from here: https://wordpress.org/plugins/save-vapor-products/

Changelog

1.0 (2015/10/29) - Inital release