Musssaa commited on
Commit
8394860
·
verified ·
1 Parent(s): 89c95f3

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +977 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Https Scamshield Com
3
- emoji: 🦀
4
- colorFrom: pink
5
  colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: https-scamshield-com
3
+ emoji: 🐳
4
+ colorFrom: green
5
  colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,977 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="de">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ScamShield</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .slide-in {
11
+ animation: slideIn 0.3s forwards;
12
+ }
13
+
14
+ .slide-out {
15
+ animation: slideOut 0.3s forwards;
16
+ }
17
+
18
+ @keyframes slideIn {
19
+ from { transform: translateX(100%); opacity: 0; }
20
+ to { transform: translateX(0); opacity: 1; }
21
+ }
22
+
23
+ @keyframes slideOut {
24
+ from { transform: translateX(0); opacity: 1; }
25
+ to { transform: translateX(100%); opacity: 0; }
26
+ }
27
+
28
+ .risk-0 { background-color: #4ade80; }
29
+ .risk-1 { background-color: #a3e635; }
30
+ .risk-2 { background-color: #facc15; }
31
+ .risk-3 { background-color: #fb923c; }
32
+ .risk-4 { background-color: #f87171; }
33
+
34
+ .tab-active {
35
+ border-bottom: 3px solid #3b82f6;
36
+ color: #3b82f6;
37
+ font-weight: 600;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body class="bg-gray-100 font-sans">
42
+ <!-- App Container -->
43
+ <div class="max-w-md mx-auto bg-white min-h-screen shadow-lg overflow-hidden relative">
44
+ <!-- Screen: Onboarding -->
45
+ <div id="onboarding-screen" class="h-full w-full">
46
+ <div class="p-6">
47
+ <div class="flex justify-center mb-8">
48
+ <div class="bg-blue-100 p-4 rounded-full">
49
+ <i class="fas fa-shield-alt text-blue-500 text-4xl"></i>
50
+ </div>
51
+ </div>
52
+
53
+ <h1 class="text-2xl font-bold text-center mb-4">Willkommen bei ScamShield</h1>
54
+ <p class="text-gray-600 text-center mb-8">Ihr persönlicher Schutz gegen Betrugsanrufe und -SMS</p>
55
+
56
+ <div class="bg-blue-50 rounded-lg p-4 mb-6">
57
+ <h2 class="font-semibold text-blue-800 mb-2">So funktioniert's:</h2>
58
+ <ul class="list-disc pl-5 text-gray-700 space-y-1">
59
+ <li>Erkennung verdächtiger Anrufe in Echtzeit</li>
60
+ <li>Analyse von SMS auf Betrugsversuche</li>
61
+ <li>Community-basierte Warnungen</li>
62
+ <li>Einfache Meldung von Betrugsversuchen</li>
63
+ </ul>
64
+ </div>
65
+
66
+ <div class="bg-yellow-50 rounded-lg p-4 mb-8">
67
+ <h2 class="font-semibold text-yellow-800 mb-2">Benötigte Berechtigungen:</h2>
68
+ <div class="space-y-3">
69
+ <div class="flex items-center">
70
+ <input type="checkbox" id="permission1" class="mr-3 h-5 w-5">
71
+ <label for="permission1" class="text-gray-700">Zugriff auf Anrufliste</label>
72
+ </div>
73
+ <div class="flex items-center">
74
+ <input type="checkbox" id="permission2" class="mr-3 h-5 w-5">
75
+ <label for="permission2" class="text-gray-700">Zugriff auf SMS</label>
76
+ </div>
77
+ <div class="flex items-center">
78
+ <input type="checkbox" id="permission3" class="mr-3 h-5 w-5">
79
+ <label for="permission3" class="text-gray-700">Benachrichtigungen</label>
80
+ </div>
81
+ </div>
82
+ </div>
83
+
84
+ <button onclick="showScreen('home-screen')" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium">
85
+ Schutz aktivieren
86
+ </button>
87
+ </div>
88
+ </div>
89
+
90
+ <!-- Screen: Home -->
91
+ <div id="home-screen" class="h-full w-full hidden">
92
+ <div class="p-4">
93
+ <div class="flex justify-between items-center mb-6">
94
+ <h1 class="text-xl font-bold">ScamShield</h1>
95
+ <button onclick="showScreen('settings-screen')" class="text-gray-500">
96
+ <i class="fas fa-cog text-xl"></i>
97
+ </button>
98
+ </div>
99
+
100
+ <div class="bg-white rounded-xl shadow p-4 mb-6">
101
+ <div class="flex justify-between items-center mb-2">
102
+ <span class="font-medium">Schutzstatus</span>
103
+ <label class="relative inline-flex items-center cursor-pointer">
104
+ <input type="checkbox" id="protection-toggle" class="sr-only peer" checked>
105
+ <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
106
+ <span class="ml-2 text-sm font-medium" id="protection-status">Aktiv</span>
107
+ </label>
108
+ </div>
109
+ <p class="text-sm text-gray-500">Letzte Aktualisierung: heute, 14:32</p>
110
+ </div>
111
+
112
+ <div class="grid grid-cols-2 gap-4 mb-6">
113
+ <button onclick="showScreen('report-number-screen')" class="bg-red-100 p-4 rounded-xl flex flex-col items-center">
114
+ <div class="bg-red-200 p-3 rounded-full mb-2">
115
+ <i class="fas fa-phone-slash text-red-600 text-xl"></i>
116
+ </div>
117
+ <span class="font-medium">Nummer melden</span>
118
+ </button>
119
+
120
+ <button onclick="showScreen('sms-check-screen')" class="bg-blue-100 p-4 rounded-xl flex flex-col items-center">
121
+ <div class="bg-blue-200 p-3 rounded-full mb-2">
122
+ <i class="fas fa-sms text-blue-600 text-xl"></i>
123
+ </div>
124
+ <span class="font-medium">SMS prüfen</span>
125
+ </button>
126
+ </div>
127
+
128
+ <div class="bg-white rounded-xl shadow p-4">
129
+ <div class="flex justify-between items-center mb-3">
130
+ <h2 class="font-medium">Letzte Anrufe</h2>
131
+ <button onclick="showScreen('call-log-screen')" class="text-blue-500 text-sm">Alle anzeigen</button>
132
+ </div>
133
+
134
+ <div class="space-y-3">
135
+ <div class="flex items-center justify-between p-2 border-b">
136
+ <div class="flex items-center">
137
+ <div class="risk-3 w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold mr-3">75</div>
138
+ <div>
139
+ <p class="font-medium">+49 123 456789</p>
140
+ <p class="text-xs text-gray-500">Heute, 13:45</p>
141
+ </div>
142
+ </div>
143
+ <i class="fas fa-chevron-right text-gray-400"></i>
144
+ </div>
145
+
146
+ <div class="flex items-center justify-between p-2 border-b">
147
+ <div class="flex items-center">
148
+ <div class="risk-1 w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold mr-3">25</div>
149
+ <div>
150
+ <p class="font-medium">Mama</p>
151
+ <p class="text-xs text-gray-500">Heute, 12:30</p>
152
+ </div>
153
+ </div>
154
+ <i class="fas fa-chevron-right text-gray-400"></i>
155
+ </div>
156
+
157
+ <div class="flex items-center justify-between p-2">
158
+ <div class="flex items-center">
159
+ <div class="risk-4 w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold mr-3">95</div>
160
+ <div>
161
+ <p class="font-medium">Unbekannt</p>
162
+ <p class="text-xs text-gray-500">Heute, 11:15</p>
163
+ </div>
164
+ </div>
165
+ <i class="fas fa-chevron-right text-gray-400"></i>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ <!-- Bottom Navigation -->
172
+ <div class="absolute bottom-0 left-0 right-0 bg-white border-t flex justify-around py-3">
173
+ <button onclick="showScreen('home-screen')" class="text-blue-500 flex flex-col items-center">
174
+ <i class="fas fa-home"></i>
175
+ <span class="text-xs mt-1">Home</span>
176
+ </button>
177
+ <button onclick="showScreen('call-log-screen')" class="text-gray-500 flex flex-col items-center">
178
+ <i class="fas fa-phone"></i>
179
+ <span class="text-xs mt-1">Anrufe</span>
180
+ </button>
181
+ <button onclick="showScreen('reports-screen')" class="text-gray-500 flex flex-col items-center">
182
+ <i class="fas fa-flag"></i>
183
+ <span class="text-xs mt-1">Meldungen</span>
184
+ </button>
185
+ <button onclick="showScreen('settings-screen')" class="text-gray-500 flex flex-col items-center">
186
+ <i class="fas fa-cog"></i>
187
+ <span class="text-xs mt-1">Einstellungen</span>
188
+ </button>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Screen: Call Log -->
193
+ <div id="call-log-screen" class="h-full w-full hidden">
194
+ <div class="p-4 pb-16">
195
+ <div class="flex justify-between items-center mb-6">
196
+ <button onclick="showScreen('home-screen')" class="text-gray-500">
197
+ <i class="fas fa-arrow-left"></i>
198
+ </button>
199
+ <h1 class="text-xl font-bold">Anrufliste</h1>
200
+ <div class="w-6"></div> <!-- Spacer -->
201
+ </div>
202
+
203
+ <div class="flex border-b mb-4">
204
+ <button id="tab-all" class="tab-active px-4 py-2" onclick="switchTab('all')">Alle</button>
205
+ <button id="tab-high-risk" class="px-4 py-2" onclick="switchTab('high-risk')">Hochrisiko</button>
206
+ <button id="tab-blocked" class="px-4 py-2" onclick="switchTab('blocked')">Geblockt</button>
207
+ </div>
208
+
209
+ <div class="space-y-3" id="call-log-content">
210
+ <!-- Calls will be loaded here -->
211
+ </div>
212
+ </div>
213
+ </div>
214
+
215
+ <!-- Screen: SMS Check -->
216
+ <div id="sms-check-screen" class="h-full w-full hidden">
217
+ <div class="p-4">
218
+ <div class="flex justify-between items-center mb-6">
219
+ <button onclick="showScreen('home-screen')" class="text-gray-500">
220
+ <i class="fas fa-arrow-left"></i>
221
+ </button>
222
+ <h1 class="text-xl font-bold">SMS prüfen</h1>
223
+ <div class="w-6"></div> <!-- Spacer -->
224
+ </div>
225
+
226
+ <div class="mb-4">
227
+ <label class="block text-gray-700 mb-2">SMS-Text eingeben oder einfügen:</label>
228
+ <textarea id="sms-text" class="w-full p-3 border rounded-lg h-32" placeholder="Fügen Sie hier den SMS-Text ein..."></textarea>
229
+ </div>
230
+
231
+ <button onclick="checkSms()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium mb-4">
232
+ SMS analysieren
233
+ </button>
234
+
235
+ <div id="sms-result" class="hidden">
236
+ <div class="bg-white rounded-xl shadow p-4">
237
+ <h2 class="font-bold text-lg mb-3">Analyseergebnis</h2>
238
+
239
+ <div class="flex items-center mb-4">
240
+ <span class="font-medium mr-2">Betrugswahrscheinlichkeit:</span>
241
+ <div class="risk-4 px-3 py-1 rounded-full text-white text-sm font-bold">85%</div>
242
+ </div>
243
+
244
+ <div class="mb-4">
245
+ <h3 class="font-medium mb-1">Erkannte Merkmale:</h3>
246
+ <ul class="list-disc pl-5 text-gray-700 space-y-1">
247
+ <li>Dringender Handlungsaufruf</li>
248
+ <li>Links zu unbekannter Website</li>
249
+ <li>Angebliche Banknachricht</li>
250
+ <li>Rechtschreibfehler</li>
251
+ </ul>
252
+ </div>
253
+
254
+ <div>
255
+ <h3 class="font-medium mb-1">Empfehlung:</h3>
256
+ <p class="text-gray-700">Diese SMS nicht beantworten und keine Links anklicken. Falls Sie unsicher sind, kontaktieren Sie Ihre Bank direkt über die offizielle Website oder Telefonnummer.</p>
257
+ </div>
258
+ </div>
259
+
260
+ <button onclick="reportSms()" class="w-full bg-red-500 text-white py-3 rounded-lg font-medium mt-4">
261
+ SMS als Betrug melden
262
+ </button>
263
+ </div>
264
+ </div>
265
+ </div>
266
+
267
+ <!-- Screen: Report Number -->
268
+ <div id="report-number-screen" class="h-full w-full hidden">
269
+ <div class="p-4">
270
+ <div class="flex justify-between items-center mb-6">
271
+ <button onclick="showScreen('home-screen')" class="text-gray-500">
272
+ <i class="fas fa-arrow-left"></i>
273
+ </button>
274
+ <h1 class="text-xl font-bold">Nummer melden</h1>
275
+ <div class="w-6"></div> <!-- Spacer -->
276
+ </div>
277
+
278
+ <div class="mb-4">
279
+ <label class="block text-gray-700 mb-2">Telefonnummer:</label>
280
+ <input type="tel" id="report-number" class="w-full p-3 border rounded-lg" placeholder="+49 123 456789">
281
+ </div>
282
+
283
+ <div class="mb-4">
284
+ <label class="block text-gray-700 mb-2">Grund:</label>
285
+ <select id="report-reason" class="w-full p-3 border rounded-lg">
286
+ <option value="">-- Bitte auswählen --</option>
287
+ <option value="scam">Betrugsversuch</option>
288
+ <option value="spam">Werbung/Spam</option>
289
+ <option value="threat">Bedrohung/Belästigung</option>
290
+ <option value="other">Anderer Grund</option>
291
+ </select>
292
+ </div>
293
+
294
+ <div class="mb-4 hidden" id="report-notes-container">
295
+ <label class="block text-gray-700 mb-2">Weitere Details (optional):</label>
296
+ <textarea id="report-notes" class="w-full p-3 border rounded-lg h-20" placeholder="Beschreiben Sie den Vorfall..."></textarea>
297
+ </div>
298
+
299
+ <button onclick="submitReport()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium">
300
+ Meldung absenden
301
+ </button>
302
+ </div>
303
+ </div>
304
+
305
+ <!-- Screen: Number Detail -->
306
+ <div id="number-detail-screen" class="h-full w-full hidden">
307
+ <div class="p-4">
308
+ <div class="flex justify-between items-center mb-6">
309
+ <button onclick="showPreviousScreen()" class="text-gray-500">
310
+ <i class="fas fa-arrow-left"></i>
311
+ </button>
312
+ <h1 class="text-xl font-bold">Nummerndetails</h1>
313
+ <div class="w-6"></div> <!-- Spacer -->
314
+ </div>
315
+
316
+ <div class="bg-white rounded-xl shadow p-4 mb-6">
317
+ <div class="flex items-center justify-between mb-4">
318
+ <div>
319
+ <h2 class="font-bold text-lg" id="detail-number">+49 123 456789</h2>
320
+ <p class="text-gray-500" id="detail-name">Unbekannt</p>
321
+ </div>
322
+ <div class="risk-4 px-4 py-2 rounded-full text-white text-sm font-bold" id="detail-risk">95% Risiko</div>
323
+ </div>
324
+
325
+ <div class="mb-4">
326
+ <h3 class="font-medium mb-1">Letzter Anruf:</h3>
327
+ <p class="text-gray-700" id="detail-last-call">Heute, 11:15</p>
328
+ </div>
329
+
330
+ <div>
331
+ <h3 class="font-medium mb-1">Community-Bewertung:</h3>
332
+ <div class="flex items-center">
333
+ <div class="w-full bg-gray-200 rounded-full h-2.5 mr-2">
334
+ <div class="bg-red-500 h-2.5 rounded-full" style="width: 90%"></div>
335
+ </div>
336
+ <span class="text-sm text-gray-700">90% melden Betrug</span>
337
+ </div>
338
+ </div>
339
+ </div>
340
+
341
+ <div class="grid grid-cols-2 gap-4 mb-6">
342
+ <button onclick="addToWhitelist()" class="bg-green-100 text-green-800 p-3 rounded-lg font-medium flex items-center justify-center">
343
+ <i class="fas fa-check-circle mr-2"></i> Whitelist
344
+ </button>
345
+ <button onclick="addToBlacklist()" class="bg-red-100 text-red-800 p-3 rounded-lg font-medium flex items-center justify-center">
346
+ <i class="fas fa-ban mr-2"></i> Blacklist
347
+ </button>
348
+ </div>
349
+
350
+ <div class="bg-white rounded-xl shadow p-4">
351
+ <h2 class="font-bold text-lg mb-3">Letzte Aktivitäten</h2>
352
+
353
+ <div class="space-y-3">
354
+ <div class="border-b pb-2">
355
+ <p class="font-medium">Anruf</p>
356
+ <p class="text-sm text-gray-500">Heute, 11:15 - Risiko: 95%</p>
357
+ </div>
358
+ <div class="border-b pb-2">
359
+ <p class="font-medium">SMS gesendet</p>
360
+ <p class="text-sm text-gray-500">Gestern, 16:30 - Risiko: 88%</p>
361
+ </div>
362
+ <div>
363
+ <p class="font-medium">Anruf</p>
364
+ <p class="text-sm text-gray-500">Gestern, 10:45 - Risiko: 82%</p>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </div>
369
+ </div>
370
+
371
+ <!-- Screen: Reports -->
372
+ <div id="reports-screen" class="h-full w-full hidden">
373
+ <div class="p-4 pb-16">
374
+ <div class="flex justify-between items-center mb-6">
375
+ <button onclick="showScreen('home-screen')" class="text-gray-500">
376
+ <i class="fas fa-arrow-left"></i>
377
+ </button>
378
+ <h1 class="text-xl font-bold">Meine Meldungen</h1>
379
+ <div class="w-6"></div> <!-- Spacer -->
380
+ </div>
381
+
382
+ <div class="space-y-3" id="reports-list">
383
+ <div class="bg-white rounded-xl shadow p-4">
384
+ <div class="flex justify-between items-start mb-2">
385
+ <div>
386
+ <p class="font-medium">+49 123 456789</p>
387
+ <p class="text-sm text-gray-500">Heute, 14:20</p>
388
+ </div>
389
+ <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Betrug</span>
390
+ </div>
391
+ <p class="text-gray-700">Angeblicher Bankanruf mit Aufforderung zur Kontobestätigung</p>
392
+ </div>
393
+
394
+ <div class="bg-white rounded-xl shadow p-4">
395
+ <div class="flex justify-between items-start mb-2">
396
+ <div>
397
+ <p class="font-medium">Unbekannte SMS</p>
398
+ <p class="text-sm text-gray-500">Gestern, 18:45</p>
399
+ </div>
400
+ <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Betrug</span>
401
+ </div>
402
+ <p class="text-gray-700">"Ihr Paket konnte nicht zugestellt werden. Bitte öffnen Sie den Link zur Neuplanung"</p>
403
+ </div>
404
+
405
+ <div class="bg-white rounded-xl shadow p-4">
406
+ <div class="flex justify-between items-start mb-2">
407
+ <div>
408
+ <p class="font-medium">+49 987 654321</p>
409
+ <p class="text-sm text-gray-500">Montag, 10:30</p>
410
+ </div>
411
+ <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Spam</span>
412
+ </div>
413
+ <p class="text-gray-700">Werbung für Versicherungen trotz Widerspruch</p>
414
+ </div>
415
+ </div>
416
+ </div>
417
+ </div>
418
+
419
+ <!-- Screen: Settings -->
420
+ <div id="settings-screen" class="h-full w-full hidden">
421
+ <div class="p-4 pb-16">
422
+ <div class="flex justify-between items-center mb-6">
423
+ <button onclick="showScreen('home-screen')" class="text-gray-500">
424
+ <i class="fas fa-arrow-left"></i>
425
+ </button>
426
+ <h1 class="text-xl font-bold">Einstellungen</h1>
427
+ <div class="w-6"></div> <!-- Spacer -->
428
+ </div>
429
+
430
+ <div class="space-y-4">
431
+ <div class="bg-white rounded-xl shadow p-4">
432
+ <h2 class="font-bold text-lg mb-3">Allgemein</h2>
433
+
434
+ <div class="flex justify-between items-center mb-3">
435
+ <span>Sprache</span>
436
+ <select class="p-2 border rounded">
437
+ <option>Deutsch</option>
438
+ <option>Englisch</option>
439
+ </select>
440
+ </div>
441
+
442
+ <div class="flex justify-between items-center">
443
+ <span>Dark Mode</span>
444
+ <label class="relative inline-flex items-center cursor-pointer">
445
+ <input type="checkbox" class="sr-only peer">
446
+ <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
447
+ </label>
448
+ </div>
449
+ </div>
450
+
451
+ <div class="bg-white rounded-xl shadow p-4">
452
+ <h2 class="font-bold text-lg mb-3">Benachrichtigungen</h2>
453
+
454
+ <div class="flex justify-between items-center mb-3">
455
+ <span>Erkennung von Betrugsanrufen</span>
456
+ <label class="relative inline-flex items-center cursor-pointer">
457
+ <input type="checkbox" class="sr-only peer" checked>
458
+ <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
459
+ </label>
460
+ </div>
461
+
462
+ <div class="flex justify-between items-center mb-3">
463
+ <span>Erkennung von Betrugs-SMS</span>
464
+ <label class="relative inline-flex items-center cursor-pointer">
465
+ <input type="checkbox" class="sr-only peer" checked>
466
+ <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
467
+ </label>
468
+ </div>
469
+
470
+ <div class="flex justify-between items-center">
471
+ <span>Community-Updates</span>
472
+ <label class="relative inline-flex items-center cursor-pointer">
473
+ <input type="checkbox" class="sr-only peer">
474
+ <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
475
+ </label>
476
+ </div>
477
+ </div>
478
+
479
+ <div class="bg-white rounded-xl shadow p-4">
480
+ <h2 class="font-bold text-lg mb-3">Listen verwalten</h2>
481
+
482
+ <button onclick="showScreen('whitelist-screen')" class="w-full flex justify-between items-center py-3 border-b">
483
+ <span>Whitelist</span>
484
+ <i class="fas fa-chevron-right text-gray-400"></i>
485
+ </button>
486
+
487
+ <button onclick="showScreen('blacklist-screen')" class="w-full flex justify-between items-center py-3">
488
+ <span>Blacklist</span>
489
+ <i class="fas fa-chevron-right text-gray-400"></i>
490
+ </button>
491
+ </div>
492
+
493
+ <div class="bg-white rounded-xl shadow p-4">
494
+ <h2 class="font-bold text-lg mb-3">Über</h2>
495
+
496
+ <button class="w-full text-left py-3 border-b">Hilfe & Support</button>
497
+ <button class="w-full text-left py-3 border-b">Datenschutz</button>
498
+ <button class="w-full text-left py-3">Impressum</button>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ </div>
503
+
504
+ <!-- Screen: Whitelist -->
505
+ <div id="whitelist-screen" class="h-full w-full hidden">
506
+ <div class="p-4 pb-16">
507
+ <div class="flex justify-between items-center mb-6">
508
+ <button onclick="showScreen('settings-screen')" class="text-gray-500">
509
+ <i class="fas fa-arrow-left"></i>
510
+ </button>
511
+ <h1 class="text-xl font-bold">Whitelist</h1>
512
+ <button onclick="addNewWhitelist()" class="text-blue-500">
513
+ <i class="fas fa-plus"></i>
514
+ </button>
515
+ </div>
516
+
517
+ <div class="space-y-3">
518
+ <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center">
519
+ <div>
520
+ <p class="font-medium">Mama</p>
521
+ <p class="text-sm text-gray-500">+49 111 222333</p>
522
+ </div>
523
+ <button onclick="removeFromWhitelist('+49 111 222333')" class="text-red-500">
524
+ <i class="fas fa-trash-alt"></i>
525
+ </button>
526
+ </div>
527
+
528
+ <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center">
529
+ <div>
530
+ <p class="font-medium">Arbeit</p>
531
+ <p class="text-sm text-gray-500">+49 444 555666</p>
532
+ </div>
533
+ <button onclick="removeFromWhitelist('+49 444 555666')" class="text-red-500">
534
+ <i class="fas fa-trash-alt"></i>
535
+ </button>
536
+ </div>
537
+
538
+ <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center">
539
+ <div>
540
+ <p class="font-medium">Bank</p>
541
+ <p class="text-sm text-gray-500">+49 777 888999</p>
542
+ </div>
543
+ <button onclick="removeFromWhitelist('+49 777 888999')" class="text-red-500">
544
+ <i class="fas fa-trash-alt"></i>
545
+ </button>
546
+ </div>
547
+ </div>
548
+ </div>
549
+ </div>
550
+
551
+ <!-- Screen: Blacklist -->
552
+ <div id="blacklist-screen" class="h-full w-full hidden">
553
+ <div class="p-4 pb-16">
554
+ <div class="flex justify-between items-center mb-6">
555
+ <button onclick="showScreen('settings-screen')" class="text-gray-500">
556
+ <i class="fas fa-arrow-left"></i>
557
+ </button>
558
+ <h1 class="text-xl font-bold">Blacklist</h1>
559
+ <button onclick="addNewBlacklist()" class="text-blue-500">
560
+ <i class="fas fa-plus"></i>
561
+ </button>
562
+ </div>
563
+
564
+ <div class="space-y-3">
565
+ <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center">
566
+ <div>
567
+ <p class="font-medium">+49 123 456789</p>
568
+ <p class="text-sm text-gray-500">Betrugsanruf</p>
569
+ </div>
570
+ <button onclick="removeFromBlacklist('+49 123 456789')" class="text-red-500">
571
+ <i class="fas fa-trash-alt"></i>
572
+ </button>
573
+ </div>
574
+
575
+ <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center">
576
+ <div>
577
+ <p class="font-medium">+49 987 654321</p>
578
+ <p class="text-sm text-gray-500">Werbung</p>
579
+ </div>
580
+ <button onclick="removeFromBlacklist('+49 987 654321')" class="text-red-500">
581
+ <i class="fas fa-trash-alt"></i>
582
+ </button>
583
+ </div>
584
+ </div>
585
+ </div>
586
+ </div>
587
+
588
+ <!-- Screen: Add to Whitelist/Blacklist -->
589
+ <div id="add-list-screen" class="h-full w-full hidden">
590
+ <div class="p-4">
591
+ <div class="flex justify-between items-center mb-6">
592
+ <button onclick="showPreviousScreen()" class="text-gray-500">
593
+ <i class="fas fa-arrow-left"></i>
594
+ </button>
595
+ <h1 class="text-xl font-bold" id="add-list-title">Zur Whitelist hinzufügen</h1>
596
+ <div class="w-6"></div> <!-- Spacer -->
597
+ </div>
598
+
599
+ <div class="mb-4">
600
+ <label class="block text-gray-700 mb-2">Name (optional):</label>
601
+ <input type="text" id="list-contact-name" class="w-full p-3 border rounded-lg" placeholder="Max Mustermann">
602
+ </div>
603
+
604
+ <div class="mb-4">
605
+ <label class="block text-gray-700 mb-2">Telefonnummer:</label>
606
+ <input type="tel" id="list-contact-number" class="w-full p-3 border rounded-lg" placeholder="+49 123 456789">
607
+ </div>
608
+
609
+ <div class="mb-4" id="list-reason-container">
610
+ <label class="block text-gray-700 mb-2">Grund:</label>
611
+ <textarea id="list-contact-reason" class="w-full p-3 border rounded-lg h-20" placeholder="Warum fügen Sie diese Nummer hinzu?"></textarea>
612
+ </div>
613
+
614
+ <button onclick="saveToList()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium">
615
+ Speichern
616
+ </button>
617
+ </div>
618
+ </div>
619
+ </div>
620
+
621
+ <script>
622
+ // App state
623
+ let currentScreen = 'onboarding-screen';
624
+ let previousScreen = '';
625
+ let currentNumberDetail = null;
626
+ let currentListType = '';
627
+
628
+ // Sample data
629
+ const calls = [
630
+ { number: '+49 123 456789', name: 'Unbekannt', time: 'Heute, 11:15', risk: 95, tags: ['Betrug'] },
631
+ { number: '+49 987 654321', name: 'Telekom', time: 'Heute, 10:30', risk: 60, tags: ['Werbung'] },
632
+ { number: '+49 111 222333', name: 'Mama', time: 'Heute, 09:45', risk: 5, tags: [] },
633
+ { number: '+49 444 555666', name: 'Arbeit', time: 'Gestern, 16:20', risk: 10, tags: [] },
634
+ { number: '+49 777 888999', name: 'Bank', time: 'Gestern, 14:10', risk: 30, tags: [] },
635
+ { number: '+49 999 888777', name: 'Unbekannt', time: 'Gestern, 12:05', risk: 85, tags: ['Betrug'] },
636
+ { number: '+49 666 555444', name: 'Unbekannt', time: 'Montag, 18:30', risk: 75, tags: ['Betrug'] }
637
+ ];
638
+
639
+ const whitelist = [
640
+ { name: 'Mama', number: '+49 111 222333' },
641
+ { name: 'Arbeit', number: '+49 444 555666' },
642
+ { name: 'Bank', number: '+49 777 888999' }
643
+ ];
644
+
645
+ const blacklist = [
646
+ { number: '+49 123 456789', reason: 'Betrugsanruf' },
647
+ { number: '+49 987 654321', reason: 'Werbung' }
648
+ ];
649
+
650
+ const reports = [
651
+ { type: 'call', number: '+49 123 456789', time: 'Heute, 14:20', reason: 'Betrug', details: 'Angeblicher Bankanruf mit Aufforderung zur Kontobestätigung' },
652
+ { type: 'sms', text: 'Ihr Paket konnte nicht zugestellt werden. Bitte öffnen Sie den Link zur Neuplanung', time: 'Gestern, 18:45', reason: 'Betrug' },
653
+ { type: 'call', number: '+49 987 654321', time: 'Montag, 10:30', reason: 'Spam', details: 'Werbung für Versicherungen trotz Widerspruch' }
654
+ ];
655
+
656
+ // Initialize the app
657
+ document.addEventListener('DOMContentLoaded', function() {
658
+ // Set up event listeners
659
+ document.getElementById('protection-toggle').addEventListener('change', function() {
660
+ const status = this.checked ? 'Aktiv' : 'Inaktiv';
661
+ document.getElementById('protection-status').textContent = status;
662
+ });
663
+
664
+ document.getElementById('report-reason').addEventListener('change', function() {
665
+ if (this.value) {
666
+ document.getElementById('report-notes-container').classList.remove('hidden');
667
+ } else {
668
+ document.getElementById('report-notes-container').classList.add('hidden');
669
+ }
670
+ });
671
+
672
+ // Load call log
673
+ loadCallLog('all');
674
+ });
675
+
676
+ // Screen navigation
677
+ function showScreen(screenId) {
678
+ if (currentScreen === screenId) return;
679
+
680
+ const currentElement = document.getElementById(currentScreen);
681
+ const nextElement = document.getElementById(screenId);
682
+
683
+ if (currentElement) {
684
+ currentElement.classList.add('hidden');
685
+ }
686
+
687
+ if (nextElement) {
688
+ previousScreen = currentScreen;
689
+ currentScreen = screenId;
690
+ nextElement.classList.remove('hidden');
691
+
692
+ // Special cases for certain screens
693
+ if (screenId === 'call-log-screen') {
694
+ loadCallLog('all');
695
+ } else if (screenId === 'reports-screen') {
696
+ loadReports();
697
+ }
698
+ }
699
+ }
700
+
701
+ function showPreviousScreen() {
702
+ if (previousScreen) {
703
+ showScreen(previousScreen);
704
+ } else {
705
+ showScreen('home-screen');
706
+ }
707
+ }
708
+
709
+ // Call log functions
710
+ function loadCallLog(filter) {
711
+ const container = document.getElementById('call-log-content');
712
+ container.innerHTML = '';
713
+
714
+ // Filter calls
715
+ let filteredCalls = [];
716
+ if (filter === 'all') {
717
+ filteredCalls = calls;
718
+ } else if (filter === 'high-risk') {
719
+ filteredCalls = calls.filter(call => call.risk >= 70);
720
+ } else if (filter === 'blocked') {
721
+ filteredCalls = blacklist.map(item => {
722
+ const call = calls.find(c => c.number === item.number);
723
+ return call || { number: item.number, name: 'Geblockt', time: '', risk: 100, tags: ['Geblockt'] };
724
+ });
725
+ }
726
+
727
+ // Add calls to the list
728
+ filteredCalls.forEach(call => {
729
+ const riskClass = getRiskClass(call.risk);
730
+
731
+ const callElement = document.createElement('div');
732
+ callElement.className = 'flex items-center justify-between p-3 bg-white rounded-lg shadow';
733
+ callElement.onclick = () => showNumberDetail(call.number);
734
+
735
+ callElement.innerHTML = `
736
+ <div class="flex items-center">
737
+ <div class="${riskClass} w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold mr-3">${call.risk}</div>
738
+ <div>
739
+ <p class="font-medium">${call.name || call.number}</p>
740
+ <p class="text-xs text-gray-500">${call.time}</p>
741
+ </div>
742
+ </div>
743
+ <i class="fas fa-chevron-right text-gray-400"></i>
744
+ `;
745
+
746
+ container.appendChild(callElement);
747
+ });
748
+
749
+ // Update active tab
750
+ document.querySelectorAll('#call-log-screen .flex button').forEach(button => {
751
+ button.classList.remove('tab-active');
752
+ });
753
+ document.getElementById(`tab-${filter}`).classList.add('tab-active');
754
+ }
755
+
756
+ function switchTab(filter) {
757
+ loadCallLog(filter);
758
+ }
759
+
760
+ // Number detail functions
761
+ function showNumberDetail(number) {
762
+ const call = calls.find(c => c.number === number) ||
763
+ { number, name: 'Unbekannt', time: '', risk: 0, tags: [] };
764
+
765
+ currentNumberDetail = call;
766
+
767
+ // Update detail screen
768
+ document.getElementById('detail-number').textContent = call.number;
769
+ document.getElementById('detail-name').textContent = call.name || 'Unbekannt';
770
+ document.getElementById('detail-risk').textContent = `${call.risk}% Risiko`;
771
+ document.getElementById('detail-risk').className = `risk-${getRiskIndex(call.risk)} px-4 py-2 rounded-full text-white text-sm font-bold`;
772
+ document.getElementById('detail-last-call').textContent = call.time || 'Keine Aufzeichnung';
773
+
774
+ showScreen('number-detail-screen');
775
+ }
776
+
777
+ function addToWhitelist() {
778
+ if (!currentNumberDetail) return;
779
+
780
+ currentListType = 'whitelist';
781
+ document.getElementById('add-list-title').textContent = 'Zur Whitelist hinzufügen';
782
+ document.getElementById('list-contact-number').value = currentNumberDetail.number;
783
+ document.getElementById('list-contact-name').value = currentNumberDetail.name || '';
784
+ document.getElementById('list-reason-container').classList.add('hidden');
785
+
786
+ showScreen('add-list-screen');
787
+ }
788
+
789
+ function addToBlacklist() {
790
+ if (!currentNumberDetail) return;
791
+
792
+ currentListType = 'blacklist';
793
+ document.getElementById('add-list-title').textContent = 'Zur Blacklist hinzufügen';
794
+ document.getElementById('list-contact-number').value = currentNumberDetail.number;
795
+ document.getElementById('list-contact-name').value = '';
796
+ document.getElementById('list-reason-container').classList.remove('hidden');
797
+
798
+ showScreen('add-list-screen');
799
+ }
800
+
801
+ function saveToList() {
802
+ const number = document.getElementById('list-contact-number').value;
803
+ const name = document.getElementById('list-contact-name').value;
804
+ const reason = document.getElementById('list-contact-reason').value;
805
+
806
+ if (!number) {
807
+ alert('Bitte geben Sie eine Telefonnummer ein.');
808
+ return;
809
+ }
810
+
811
+ if (currentListType === 'whitelist') {
812
+ // Add to whitelist
813
+ if (!whitelist.some(item => item.number === number)) {
814
+ whitelist.push({ name, number });
815
+ }
816
+ showScreen('whitelist-screen');
817
+ } else if (currentListType === 'blacklist') {
818
+ // Add to blacklist
819
+ if (!blacklist.some(item => item.number === number)) {
820
+ blacklist.push({ number, reason });
821
+ }
822
+ showScreen('blacklist-screen');
823
+ }
824
+
825
+ // Reset form
826
+ document.getElementById('list-contact-number').value = '';
827
+ document.getElementById('list-contact-name').value = '';
828
+ document.getElementById('list-contact-reason').value = '';
829
+ }
830
+
831
+ function removeFromWhitelist(number) {
832
+ const index = whitelist.findIndex(item => item.number === number);
833
+ if (index !== -1) {
834
+ whitelist.splice(index, 1);
835
+ // In a real app, we would update the UI here
836
+ alert(`${number} wurde von der Whitelist entfernt.`);
837
+ showScreen('whitelist-screen');
838
+ }
839
+ }
840
+
841
+ function removeFromBlacklist(number) {
842
+ const index = blacklist.findIndex(item => item.number === number);
843
+ if (index !== -1) {
844
+ blacklist.splice(index, 1);
845
+ // In a real app, we would update the UI here
846
+ alert(`${number} wurde von der Blacklist entfernt.`);
847
+ showScreen('blacklist-screen');
848
+ }
849
+ }
850
+
851
+ // SMS functions
852
+ function checkSms() {
853
+ const smsText = document.getElementById('sms-text').value;
854
+
855
+ if (!smsText) {
856
+ alert('Bitte geben Sie einen SMS-Text ein.');
857
+ return;
858
+ }
859
+
860
+ // Simulate API call
861
+ setTimeout(() => {
862
+ document.getElementById('sms-result').classList.remove('hidden');
863
+ window.scrollTo(0, document.body.scrollHeight);
864
+ }, 1000);
865
+ }
866
+
867
+ function reportSms() {
868
+ const smsText = document.getElementById('sms-text').value;
869
+
870
+ if (!smsText) {
871
+ alert('Kein SMS-Text zum Melden vorhanden.');
872
+ return;
873
+ }
874
+
875
+ // In a real app, this would create a report
876
+ alert('Die SMS wurde als Betrugsversuch gemeldet. Vielen Dank für Ihren Beitrag!');
877
+ showScreen('home-screen');
878
+ }
879
+
880
+ // Report functions
881
+ function submitReport() {
882
+ const number = document.getElementById('report-number').value;
883
+ const reason = document.getElementById('report-reason').value;
884
+ const notes = document.getElementById('report-notes').value;
885
+
886
+ if (!number) {
887
+ alert('Bitte geben Sie eine Telefonnummer ein.');
888
+ return;
889
+ }
890
+
891
+ if (!reason) {
892
+ alert('Bitte wählen Sie einen Grund aus.');
893
+ return;
894
+ }
895
+
896
+ // In a real app, this would create a report
897
+ alert(`Die Nummer ${number} wurde als ${reason} gemeldet. Vielen Dank für Ihren Beitrag!`);
898
+
899
+ // Reset form
900
+ document.getElementById('report-number').value = '';
901
+ document.getElementById('report-reason').value = '';
902
+ document.getElementById('report-notes').value = '';
903
+
904
+ showScreen('home-screen');
905
+ }
906
+
907
+ function loadReports() {
908
+ const container = document.getElementById('reports-list');
909
+ container.innerHTML = '';
910
+
911
+ reports.forEach(report => {
912
+ const reportElement = document.createElement('div');
913
+ reportElement.className = 'bg-white rounded-xl shadow p-4';
914
+
915
+ let title, content;
916
+ if (report.type === 'call') {
917
+ title = report.number;
918
+ content = report.details;
919
+ } else {
920
+ title = 'Unbekannte SMS';
921
+ content = `"${report.text}"`;
922
+ }
923
+
924
+ const reasonClass = report.reason === 'Betrug' ? 'bg-red-100 text-red-800' : 'bg-yellow-100 text-yellow-800';
925
+
926
+ reportElement.innerHTML = `
927
+ <div class="flex justify-between items-start mb-2">
928
+ <div>
929
+ <p class="font-medium">${title}</p>
930
+ <p class="text-sm text-gray-500">${report.time}</p>
931
+ </div>
932
+ <span class="${reasonClass} text-xs px-2 py-1 rounded">${report.reason}</span>
933
+ </div>
934
+ <p class="text-gray-700">${content}</p>
935
+ `;
936
+
937
+ container.appendChild(reportElement);
938
+ });
939
+ }
940
+
941
+ // Whitelist/Blacklist management
942
+ function addNewWhitelist() {
943
+ currentListType = 'whitelist';
944
+ document.getElementById('add-list-title').textContent = 'Zur Whitelist hinzufügen';
945
+ document.getElementById('list-contact-number').value = '';
946
+ document.getElementById('list-contact-name').value = '';
947
+ document.getElementById('list-reason-container').classList.add('hidden');
948
+
949
+ showScreen('add-list-screen');
950
+ }
951
+
952
+ function addNewBlacklist() {
953
+ currentListType = 'blacklist';
954
+ document.getElementById('add-list-title').textContent = 'Zur Blacklist hinzufügen';
955
+ document.getElementById('list-contact-number').value = '';
956
+ document.getElementById('list-contact-name').value = '';
957
+ document.getElementById('list-reason-container').classList.remove('hidden');
958
+
959
+ showScreen('add-list-screen');
960
+ }
961
+
962
+ // Helper functions
963
+ function getRiskClass(risk) {
964
+ const index = getRiskIndex(risk);
965
+ return `risk-${index}`;
966
+ }
967
+
968
+ function getRiskIndex(risk) {
969
+ if (risk < 20) return 0;
970
+ if (risk < 40) return 1;
971
+ if (risk < 60) return 2;
972
+ if (risk < 80) return 3;
973
+ return 4;
974
+ }
975
+ </script>
976
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Musssaa/https-scamshield-com" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
977
+ </html>