Site Red-Out
Red out your site for Net Neutrality.
The HTML and CSS code included in this guide is mobile friendly, does not include trackers of any sort, is open source, and is licensed under the MIT License. If you notice any mistakes, please feel free to make a PR and I will get it merged as quickly as possible. Oh, and quick note: I am not affiliated with Reddit or their similar-looking protest. This is my code from the ground up, though their CSS was helpful for reference.
Thank you for defending Net Neutrality! -- Foxtrek_64, Owner of LuzFaltex
Previews: Raw | Live
Getting started
- Download redout.html
- Open
redout.html
in a text editor and changeLuzFaltex.com
to the domain of your site. Save your changes - Upload
redout.html
to your root site directory
If your site is located at
www.example.com
, yourredout.html
should be located atwww.example.com/redout.html
- Insert the following code into the header of your site:
<style>
.redout {
width: 100%;
height: 100%;
}
</style>
<iframe class="redout" src="https://www.luzfaltex.com/redout.html"></iframe>
PHP version with time-sensitivity:
<?php if (new DateTime() > new DateTime("2017-12-12")) { ?>
<iframe class="redout" src="https://www.luzfaltex.com/redout.html"></iframe>
<?php } ?>
WoltLab version with time-sensitivity
.redout {
width: 100%;
height: 100%;
display: none;
}
body[data-page-id="1000"] .redout{
display: flex;
}
Replace 1000
with the ID of your page (pull open your F12 editor to find it easily)
Place the following in the header
template above the #top
element
{if TIME_NOW|date:'Y m j' >= '2017 12 12'}<iframe class="redout" src="https://www.luzfaltex.com/redout.html"></iframe>{/if}