19
Jan

msd_sopablackout: Blackout your Textpattern site to protest SOPA.

With all the sites a crossed the web being blacked out on January 18th I wanted to show my disapproval of the SOPA and PIPA bills by blacking out my site as well.

I found that sopablackout.org had an easy and nice looking script so I built a Textpattern tag to implement it.

About SOPA/PIPA
Contact Your Representative

Use

<msd_sopablackout/>

The msd_sopablackout tag is used to add Sopablackout.org JavaScript to the “head” section of your Textpattern page. The tag will link to a local version of the sopablackout javascript file instead of going to their site for it.

Attributes

id=“dom element”
Target a specific element of the DOM.
Default: document.body
date=“YYYY,MM,DD”
The date that the script should be active. Should be provided in YYYY,MM,DD format.
Default: always active
clickthrough=‘boolean’
Allow visitors to clickthrough.
Default: false

Examples

<txp:msdsopablackout id="sopa" clickthrough="true" date="2012,1,18"/>
Adds the blackout script to the DOM element with the id of “sopa” on January 18th without allowing the visitor to clickthrough.

See it in action

Download

Download msd_sopablackout zip (14 downloads so far)

jump to the comment form ↓

Share your thoughts, leave a comment!

(get your own gravatar)