-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdef.js
More file actions
220 lines (159 loc) · 5.54 KB
/
def.js
File metadata and controls
220 lines (159 loc) · 5.54 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// document.getElementById(`checkboxItself`).addEventListener('change',function(){
// if (this.checked) {
// window.location = "scam.html"
// }
// })
// document.addEventListener('DOMContentLoaded', function () {
// // Get the Send Code link
// const sendCodeLink = document.getElementById('sendCodeLink');
// // Add a click event listener
// sendCodeLink.addEventListener('click', function(event) {
// // Call your function here
// sendCodeFunction();
// });
// });
// // Example function to run when Send Code is clicked
// function sendCodeFunction() {
// console.log('Send Code button clicked');
// // Add any code you want to run here
// }
// const numbers = [1,2,3,4,5];
// const squares = numbers.map(square);
// const cubes = numbers.map(cube);
// console.log(cubes)
// function square(element){
// return Math.pow(element,2)
// }
// function cube(element){
// return Math.pow(element,3)
// }
// const students = ["Spongebob","Patric","Squidward","Sandy"]
// const studentsUpper = students.map(upperCase);
// const stundetslower = students.map(lowerCase)
// // console.log(studentsUpper);
// console.log(stundetslower);
// function upperCase(element){
// return element.toUpperCase();
// }
// function lowerCase(element){
// return element.toLowerCase();
// }
// const dates = ["2024-1-10", "2025-2-20", "2026-3-30"];
// const formattedDates = dates.map(formatDates);
// console.log(formattedDates);
// function formatDates(element){
// const parts = element.split("-");
// return `${parts[1]}/${parts[2]}/${parts[0]}`;
// }
const payments = ["50-2024.04.30-Bob","60-2008.04.05-Julia","6-222.04.6-Alen","734-2023.05.07-Milan"];
const F = payments.map(formatPamynets);
console.log(F.join(""));
function formatPamynets(element){
const parts = element.split("-");
return `\nUser:${parts[2]} paid, ${parts[0]} $bucks,${parts[1]}<-- tis time`;
}
const Immigrants = [
"Migrant1-NH-Terrorist",
"Migrant2-NH-GoatFucker",
"Migrant3-NY-Thief",
"Migrant4-CA-Scammer",
"Migrant5-TX-Smuggler",
"Migrant6-FL-Spy",
"Migrant7-IL-CyberCriminal",
"Migrant8-PA-Fraudster",
"Migrant9-OH-HumanTrafficker",
"Migrant10-MI-DrugDealer",
"Migrant11-GA-Vandal",
"Migrant12-NC-Burglar",
"Migrant13-NJ-Kidnapper",
"Migrant14-VA-Terrorist",
"Migrant15-WA-GoatFucker",
"Migrant16-AZ-Arsonist",
"Migrant17-MA-Thief",
"Migrant18-IN-Fraudster",
"Migrant19-TN-Smuggler",
"Migrant20-MO-CyberCriminal",
"Migrant21-MD-DrugDealer",
"Migrant22-WI-Spy",
"Migrant23-CO-Burglar",
"Migrant24-MN-HumanTrafficker",
"Migrant25-SC-Kidnapper",
"Migrant26-AL-Fraudster",
"Migrant27-LA-Arsonist",
"Migrant28-KY-Smuggler",
"Migrant29-OR-Thief",
"Migrant30-OK-Terrorist",
"Migrant31-CT-Spy",
"Migrant32-IA-DrugDealer",
"Migrant33-MS-Burglar",
"Migrant34-AR-Vandal",
"Migrant35-NV-Kidnapper",
"Migrant36-NM-CyberCriminal",
"Migrant37-UT-HumanTrafficker",
"Migrant38-WV-Fraudster",
"Migrant39-HI-Smuggler",
"Migrant40-ID-Arsonist",
"Migrant41-ME-Thief",
"Migrant42-MT-Vandal"
];
// const Muslims = Immigrants.map(GoatFuckers);
// console.log(Muslims.join("|-xx-|"));
// function GoatFuckers(element){
// const parts = element.split("-");
// return `\nPeople :${parts[0]} Wantedfor: ${parts[2]} County${parts[1]}`;
// }
// // under me i will do Name religion Budget and pat
// const Niggers = ["Bob|Chirstian|50$|Dog","Sam|Atheist|90$|None","smith|Budhism|44$|Parrot","spongabob|Muslim|84$|Sark"];
// const niggermigger = Niggers.map(DeportNigger);
// console.log(niggermigger.join("|here|"))
// function DeportNigger(element){
// const Niglets = element.split("|");
// return `Name ${Niglets[0]} Pet ${Niglets[3]} Religion ${Niglets[1]}, Money ${Niglets[2]}`;
// }
document.addEventListener('DOMContentLoaded', function () {
const checkbox = document.getElementById('checkboxItself');
// Add an event listener for the 'change' event
checkbox.addEventListener('change', function () {
if (checkbox.checked) {
// Redirect to scam.html when the checkbox is checked
window.location.href = 'scam.html';
}
});
});
function Game(){
let Ongame = true;
window.alert("Rock ,Paper, Scissors\n Ready ? Set NOW");
while(Ongame){
let userinput = window.prompt("Enter Rock,Paper,Scissors");
userinput = userinput.toLowerCase();
if (userinput == "rock" || userinput == "paper" || userinput == "scissors") {
Ongame = false;
playgame(userinput)
}
else{
window.prompt(`You can't have ${userinput} must choose one \n Rock, Paper, Scissors`);
Ongame = true;
}
}
}
Game();
function playgame(userinput){
window.alert("implaying");
let Items = ["Rock","Paper","Scissors"];
Items = Items.map(item => item.toLowerCase());
let randomm = Math.floor(Math.random() * Items.length);
let machinechoice = Items[randomm];
window.alert(machinechoice);
window.alert(`user input waasssss ${userinput} ANNND machine chooice wasss ${machinechoice}`);
if (userinput === machinechoice) {
window.alert("It's a tie!");
} else if (
(userinput === "paper" && machinechoice === "rock") ||
(userinput === "rock" && machinechoice === "scissors") ||
(userinput === "scissors" && machinechoice === "paper")
) {
window.alert("You won!");
} else {
window.alert("You lost!");
}
}