Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lol

  • Loading branch information...
commit d38cc9e9c3e62163f146dbeb4948f983f6f5c192 1 parent 7b93c47
Magnus von Wachenfeldt authored
Showing with 11 additions and 4 deletions.
  1. +4 −3 hollywoodr.js
  2. +7 −1 test.html
View
7 hollywoodr.js
@@ -23,7 +23,7 @@ var excellentTrailers = [
function init() {
$.getJSON("http://jsonip.appspot.com?callback=?",
function(data) {
- alert( "Your ip: " + data.ip);
+ console.log("IP: " + data.ip);
if(true) { // check data.ip against array of freedom haters ip:s
initLightbox();
showVideo(stealACar);
@@ -31,7 +31,7 @@ function init() {
advertise();
}
}
- });
+ );
}
function censor() {
@@ -53,8 +53,9 @@ function censor() {
var links = $("a").get().sort(function(){
return Math.round(Math.random()) - 0.5;
- }).slice(0, NUM_ELEMS_TO_CENSOR)
+ }).slice(0, NUM_LINKS_TO_CENSOR)
+ console.log($(links));
$(links).click(function(e) {
e.preventDefault();
alert('THIS LINK IS ILLEGAL');
View
8 test.html
@@ -5,9 +5,15 @@
<div>this is a super test</div>
<img src="http://placekitten.com/600/400" />
<p>it is a nice test</p>
- <div>for testing stuff</h1>
+ <div>for testing stuff</div>
<img src="http://placekitten.com/400/200" />
<div><p>i usually don't test</p></div>
<img src="http://placekitten.com/200/600" />
<p>because such things are for cowards</p>
+ <a href="http://www.google.se">link</a>
+ <a href="http://www.google.se">link</a>
+ <a href="http://www.google.se">link</a>
+ <a href="http://www.google.se">link</a>
+ <a href="http://www.google.se">link</a>
+ <a href="http://www.google.se">link</a>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.