STOP SOPA!

scottsigler.com is offline today because the US Senate is considering legislation that would impact not only this site and our business model, but also the businesses of thousands of websites and the people that run them. The legislation is called the PROTECT IP Act (PIPA), and would put us in legal jeopardy if we linked to a site anywhere online that had any links to copyright infringement. This would unmake the Web, just as proposed in the Stop Online Piracy Act (SOPA). We don't want that world. If you don't want it either, visit AmericanCensorship.org for instructions on contacting your Senator. Boycots of individual companies do little more than threaten the jobs of people just like you. If you want to make an impact, call your legislators. Your legislators only listen to the people if they know votes are on the line. Do not count on others to act for you -- learn about the legislation and act.

<script type="text/javascript" language="javascript" charset="utf-8"> /** * Zachary Johnson * http://www.zachstronaut.com * I place the following code in the public domain. * * Fork it on GitHub: https://github.com/zachstronaut/stop-sopa */ var text = null; var spot = null; var box = null; var boxProperty = ''; init(); function init() { text = document.getElementById('tsb-text'); spot = document.getElementById('tsb-spot'); box = document.getElementById('tsb-box'); if (typeof box.style.webkitBoxShadow == 'string') { boxProperty = 'webkitBoxShadow'; } else if (typeof box.style.MozBoxShadow == 'string') { boxProperty = 'MozBoxShadow'; } else if (typeof box.style.boxShadow == 'string') { boxProperty = 'boxShadow'; } if (text && spot && box) { document.getElementById('text-shadow-box').onmousemove = onMouseMove; document.getElementById('text-shadow-box').ontouchmove = function (e) {e.preventDefault(); e.stopPropagation(); onMouseMove({clientX: e.touches[0].clientX, clientY: e.touches[0].clientY});}; } } function onMouseMove(e) { if (typeof e === 'undefined' || typeof e.clientX === 'undefined') { return; } var xm = (e.clientX - Math.floor(window.innerWidth / 2)) * 0.4; var ym = (e.clientY - Math.floor(window.innerHeight / 3)) * 0.4; var d = Math.round(Math.sqrt(xm*xm + ym*ym) / 5); text.style.textShadow = -xm + 'px ' + -ym + 'px ' + (d + 10) + 'px black'; if (boxProperty) { box.style[boxProperty] = '0 ' + -ym + 'px ' + (d + 30) + 'px black'; } xm = e.clientX - Math.floor(window.innerWidth / 2); ym = e.clientY - Math.floor(window.innerHeight / 2); spot.style.backgroundPosition = xm + 'px ' + ym + 'px'; } </script>

0 Comments

Add a Comment