Skip to content

LuzFaltex/Site-Red-Out

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

  1. Download redout.html
  2. Open redout.html in a text editor and change LuzFaltex.com to the domain of your site. Save your changes
  3. Upload redout.html to your root site directory

If your site is located at www.example.com, your redout.html should be located at www.example.com/redout.html

  1. 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}

About

Red out your site for Net Neutrality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages