-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
83 lines (77 loc) · 3.38 KB
/
main.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
const rizzData = {
"illegal_rizz": "Your in your bed, I am in mine. \n One of us is in the wrong place.",
"awesome_rizz": "Before I came there was no d in you. That will change.",
"arab_rizz": "Do you want to make some twin towers?",
"evil_rizz": "Are you a crime scene? \n Because I can't resist leaving my DNA all over you.",
"legal_rizz": "Are you an artist? \n Because you're really good at drawing me in ;)",
"other_rizz": "Are you a light switch? \n Because you turn me on!!"
};
function getRizz(type) {
switch (type) {
case 'illegal_rizz':
window.alert(rizzData.illegal_rizz);
break;
case 'awesome_rizz':
window.alert(rizzData.awesome_rizz);
break;
case 'arab_rizz':
window.alert(rizzData.arab_rizz);
break;
case 'evil_rizz':
window.alert(rizzData.evil_rizz);
break;
case 'legal_rizz':
window.alert(rizzData.legal_rizz);
break;
case 'other_rizz':
window.alert(rizzData.other_rizz);
break;
default:
window.alert('Rizz type not found');
}
}
function changeTheme(filename) {
var stylesheet = document.getElementById('theme-stylesheet');
stylesheet.href = filename;
}
function randomRizzler() {
var randomRizz = '';
let randomNumber = Math.floor(Math.random() * 10);
switch (randomNumber) {
case 0:
document.getElementById('randomrizz').textContent = 'You\'re in your bed, I\'m in mine.\nOne of us is in the wrong place';
break;
case 1:
document.getElementById('randomrizz').textContent = 'Before I came there was no D in you. That will change'
break;
case 2:
document.getElementById('randomrizz').textContent = 'Do you want to make some twin towers?'
break;
case 3:
document.getElementById('randomrizz').textContent = 'Are you a crime scene?? Because I can\'t resist leaving my DNA all over you.'
break;
case 4:
document.getElementById('randomrizz').textContent = 'Are you an artist? Because you\'re really good at drawing me in ;)'
break;
case 5:
document.getElementById('randomrizz').textContent = 'Are you a light switch? Because you turn me on!'
break;
case 6:
document.getElementById('randomrizz').textContent = 'Are you a time traveler? Because I can see you in my future.'
break;
case 7:
document.getElementById('randomrizz').textContent = 'Are you Google? Because you\'re everything I\'ve been searching for.'
break;
case 8:
document.getElementById('randomrizz').textContent = 'If you were a vegetable, you\'d be a CUTEcumber!'
break;
case 9:
document.getElementById('randomrizz').textContent = 'Are you a bank loan? Because you have got my intrest!'
break;
case 10:
document.getElementById('randomrizz').textContent = 'Are you a camera? Because every time I look at you, I smile.'
break;
case 11:
document.getElementById('randomrizz').textContent = 'Are you a dictionary? Cause you\'re adding meaning to my life.'
}
}