Difference between revisions of "User:Svip/common.js"
Jump to navigation
Jump to search
(User:Svip/Common.js has been moved, it is now a redirect to User:Svip/monobook.js) |
m |
||
Line 1: | Line 1: | ||
# | addOnloadHook(function() { | ||
var blackout = document.createElement('div'); | |||
blackout.setAttribute('style', 'position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; color: #fff; text-align: center;'); | |||
var h1 = document.createElement('h1'); | |||
h1.setAttribute('style', 'text-decoration: line-through;'); | |||
h1.appendChild(document.createTextNode('The Infosphere')); | |||
var p = document.createElement('p'); | |||
p.appendChild(document.createTextNode('There are currently pending legislation in the U.S. Congress (SOPA and PIPA) that would severely damage the freedom of the Internet, and would also hurt the independence of The Infosphere.')); | |||
var p2 = document.createElement('p'); | |||
p2.appendChild(document.createTextNode('This legislation could at best force us to block access from American origin to avoid possible censorship of our site.')); | |||
var p3 = document.createElement('p'); | |||
p3.appendChild(document.createTextNode('If you are a U.S. citizen, write your Congressman. Tell them that truly beneficial sites like this could be severely limited or entirely removed by the pending legislation.')); | |||
var a = document.createElement('a'); | |||
a.setAttribute('href', 'http://sopastrike.com'); | |||
a.appendChild(document.createTextNode('Learn more.')); | |||
blackout.appendChild(h1); | |||
blackout.appendChild(p); | |||
blackout.appendChild(p2); | |||
blackout.appendChild(p3); | |||
blackout.appendChild(a); | |||
}); |
Revision as of 16:16, 18 January 2012
addOnloadHook(function() { var blackout = document.createElement('div'); blackout.setAttribute('style', 'position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; color: #fff; text-align: center;'); var h1 = document.createElement('h1'); h1.setAttribute('style', 'text-decoration: line-through;'); h1.appendChild(document.createTextNode('The Infosphere')); var p = document.createElement('p'); p.appendChild(document.createTextNode('There are currently pending legislation in the U.S. Congress (SOPA and PIPA) that would severely damage the freedom of the Internet, and would also hurt the independence of The Infosphere.')); var p2 = document.createElement('p'); p2.appendChild(document.createTextNode('This legislation could at best force us to block access from American origin to avoid possible censorship of our site.')); var p3 = document.createElement('p'); p3.appendChild(document.createTextNode('If you are a U.S. citizen, write your Congressman. Tell them that truly beneficial sites like this could be severely limited or entirely removed by the pending legislation.')); var a = document.createElement('a'); a.setAttribute('href', 'http://sopastrike.com'); a.appendChild(document.createTextNode('Learn more.')); blackout.appendChild(h1); blackout.appendChild(p); blackout.appendChild(p2); blackout.appendChild(p3); blackout.appendChild(a); });