YaWK  24.1
Yet another WebKit
adultCheck.js
Go to the documentation of this file.
1 /* signUp Check JS
2  * ask a question and show registration form
3  * or send user to contact form otherwise
4  *
5  * */
6 $(document).ready(function () {
7  // first of all, hide the reg form
8  $("#form").hide();
9  // hide the alternative too
10  $("#alt").hide();
11  // if user answers question with yes
12  $( "#yes" ).css('cursor', 'pointer').click(function() {
13  // hide question
14  $("#adultCheck").fadeOut(420);
15  // show the registration form
16  $("#form").delay(420).fadeIn(1240);
17  });
18  // if user answers question with no
19  $( "#no" ).css('cursor', 'pointer').click(function() {
20  // hide question
21  $("#adultCheck").fadeOut(420);
22  // hide form - just to be sure
23  $("#form").fadeOut(420);
24  // show alternative
25  $("#alt").delay(420).fadeIn(1240);
26  });
27  // if user clicked on further contact
28  $("#contact").css('cursor', 'pointer').click(function () {
29  // send him to contact page
30  window.location.replace("index.html");
31  // window.location.replace("http://www.goodconnect.net");
32  });
33  // if user is not interestet, send him to index page
34  $("#home").css('cursor', 'pointer').click(function () {
35  // send him to home page
36  window.location.replace("index.html");
37  // window.location.replace("http://www.goodconnect.net/");
38  });
39 
40 }); /* end document ready */
document ready(function() { $("#form").hide();$("#alt").hide();$("#yes").css('cursor', 'pointer').click(function() { $("#adultCheck").fadeOut(420);$("#form").delay(420).fadeIn(1240);});$("#no").css('cursor', 'pointer').click(function() { $("#adultCheck").fadeOut(420);$("#form").fadeOut(420);$("#alt").delay(420).fadeIn(1240);});$("#contact").css('cursor', 'pointer').click(function() { window.location.replace("index.html");});$("#home").css('cursor', 'pointer').click(function() { window.location.replace("index.html");});})
function window
Definition: fuckAdBlock.js:8