-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFAQ.js
121 lines (101 loc) · 4.68 KB
/
FAQ.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/**
* @author : rishabh chanana
*
*/
var toggle = 0;
function answer(card) {
if(toggle == 0 ) {
toggle = 1;
switch (card) {
case 1:
$('#q1').animate( { opacity : '0' }, 400, function(){
//answer in double quotes
$(this).html("A Hackathon is an event that brings together computer programmers like software developers, graphic designers and user interface specialists or professionals to identify issues and create software solutions.").animate({'opacity': 1}, 400);
});
break;
case 2:
$('#q2').animate( { opacity : '0' }, 400, function(){
$(this).html("If you are enrolled in a high school or university, you are good to go!!").animate({'opacity': 1}, 400);
});
break;
case 3:
$('#q3').animate( { opacity : '0' }, 400, function(){
$(this).html("Your basic tools - Laptop and Charger. If you want to hack on Arduino, PI, Oculus Rift or any other hardware we recommend you to bring that too if you have one. You won't need food or drinks; we've got you covered there.").animate({'opacity': 1}, 400);
});
break;
case 4:
$('#q4').animate( { opacity : '0' }, 400, function(){
$(this).html("You can make anything you like. Most of the hacks revolve around web or phone apps, or working with hardware.").animate({'opacity': 1}, 400);
});
break;
case 5:
$('#q5').animate( { opacity : '0' }, 400, function(){
$(this).html("Once you apply, we will be informing you regarding the shortlisting and further details.").animate({'opacity': 1}, 400);
});
break;
case 6:
$('#q6').animate( { opacity : '0' }, 400, function(){
$(this).html("\"Have the passion, take the action and magic will happen !\"<br/> We don't care if you it's your first or sixteenth, show us what excites you or what drives you to start or develop real life application.").animate({'opacity': 1}, 400);
});
break;
case 7:
$('#q7').animate( { opacity : '0' }, 400, function(){
$(this).html("Zero! we won't charge a penny.").animate({'opacity': 1}, 400);
});
break;
case 8:
$('#q8').animate( { opacity : '0' }, 400, function(){
$(this).html("Yes! you can register as a team with a max of 3 members.").animate({'opacity': 1}, 400);
});
break;
}
}
}
function question(card) {
if(toggle == 1) {
toggle = 0;
switch (card) {
case 1:
$('#q1').animate( { opacity : '0' }, 400, function(){
// question in double quotes
$(this).html("What is a Hackathon ?").animate({'opacity': 1}, 400);
});
break;
case 2:
$('#q2').animate( { opacity : '0' }, 400, function(){
$(this).html("Who can apply?").animate({'opacity': 1}, 400);
});
break;
case 3:
$('#q3').animate( { opacity : '0' }, 400, function(){
$(this).html("What should I bring?").animate({'opacity': 1}, 400);
});
break;
case 4:
$('#q4').animate( { opacity : '0' }, 400, function(){
$(this).html("What do people normally make?").animate({'opacity': 1}, 400);
});
break;
case 5:
$('#q5').animate( { opacity : '0' }, 400, function(){
$(this).html("How and when will I hear back?").animate({'opacity': 1}, 400);
});
break;
case 6:
$('#q6').animate( { opacity : '0' }, 400, function(){
$(this).html("What are you looking for in an application?").animate({'opacity': 1}, 400);
});
break;
case 7:
$('#q7').animate( { opacity : '0' }, 400, function(){
$(this).html("How much does it cost to attend?").animate({'opacity': 1}, 400);
});
break;
case 8:
$('#q8').animate( { opacity : '0' }, 400, function(){
$(this).html("Can we apply as a team?").animate({'opacity': 1}, 400);
});
break;
}
}
}