-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
40 lines (33 loc) · 700 Bytes
/
Copy pathindex.js
File metadata and controls
40 lines (33 loc) · 700 Bytes
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
$('.kale-radio').click(function(event) {
var response = event.target.value;
if(response){
alert("You like kale.");
} else {
alert("You are not a huge fan of kale.");
}
});
var testFuncTwo = function(bool) {
alert("Awesome job!");
}
var testFuncThree = function(bool) {
alert("Yey, test function three");
}
var testFuncOne = function(bool) {
if(bool) {
testFuncTwo();
} else {
testFuncThree();
}
}
var pickRandomBoolean = function() {
var randomNumber = Math.random();
if(randomNumber < 0.50){
return true;
} else {
return false;
}
}
// $('#debug-button').click(function(event) {
// var randomBoolean = pickRandomBoolean();
// testFuncOne(randomBoolean);
// });