Spaces:
Running
Running
Download index.html from Musssaa/https-scamshield-com: direct link, hf CLI and curl.
- Browser
- Download file 50.4 kB
-
https://huggingface.co/spaces/Musssaa/https-scamshield-com/resolve/83948608f5b8e65b4a3e45a19415fe13e3bf6a94/index.html
- Command line
-
hf download hf://spaces/Musssaa/https-scamshield-com@83948608f5b8e65b4a3e45a19415fe13e3bf6a94/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Musssaa/https-scamshield-com/resolve/83948608f5b8e65b4a3e45a19415fe13e3bf6a94/index.html
50.4 kB
| <html lang="de"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ScamShield</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .slide-in { | |
| animation: slideIn 0.3s forwards; | |
| } | |
| .slide-out { | |
| animation: slideOut 0.3s forwards; | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(100%); opacity: 0; } | |
| to { transform: translateX(0); opacity: 1; } | |
| } | |
| @keyframes slideOut { | |
| from { transform: translateX(0); opacity: 1; } | |
| to { transform: translateX(100%); opacity: 0; } | |
| } | |
| .risk-0 { background-color: #4ade80; } | |
| .risk-1 { background-color: #a3e635; } | |
| .risk-2 { background-color: #facc15; } | |
| .risk-3 { background-color: #fb923c; } | |
| .risk-4 { background-color: #f87171; } | |
| .tab-active { | |
| border-bottom: 3px solid #3b82f6; | |
| color: #3b82f6; | |
| font-weight: 600; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <!-- App Container --> | |
| <div class="max-w-md mx-auto bg-white min-h-screen shadow-lg overflow-hidden relative"> | |
| <!-- Screen: Onboarding --> | |
| <div id="onboarding-screen" class="h-full w-full"> | |
| <div class="p-6"> | |
| <div class="flex justify-center mb-8"> | |
| <div class="bg-blue-100 p-4 rounded-full"> | |
| <i class="fas fa-shield-alt text-blue-500 text-4xl"></i> | |
| </div> | |
| </div> | |
| <h1 class="text-2xl font-bold text-center mb-4">Willkommen bei ScamShield</h1> | |
| <p class="text-gray-600 text-center mb-8">Ihr persönlicher Schutz gegen Betrugsanrufe und -SMS</p> | |
| <div class="bg-blue-50 rounded-lg p-4 mb-6"> | |
| <h2 class="font-semibold text-blue-800 mb-2">So funktioniert's:</h2> | |
| <ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
| <li>Erkennung verdächtiger Anrufe in Echtzeit</li> | |
| <li>Analyse von SMS auf Betrugsversuche</li> | |
| <li>Community-basierte Warnungen</li> | |
| <li>Einfache Meldung von Betrugsversuchen</li> | |
| </ul> | |
| </div> | |
| <div class="bg-yellow-50 rounded-lg p-4 mb-8"> | |
| <h2 class="font-semibold text-yellow-800 mb-2">Benötigte Berechtigungen:</h2> | |
| <div class="space-y-3"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="permission1" class="mr-3 h-5 w-5"> | |
| <label for="permission1" class="text-gray-700">Zugriff auf Anrufliste</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="permission2" class="mr-3 h-5 w-5"> | |
| <label for="permission2" class="text-gray-700">Zugriff auf SMS</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="permission3" class="mr-3 h-5 w-5"> | |
| <label for="permission3" class="text-gray-700">Benachrichtigungen</label> | |
| </div> | |
| </div> | |
| </div> | |
| <button onclick="showScreen('home-screen')" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium"> | |
| Schutz aktivieren | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Screen: Home --> | |
| <div id="home-screen" class="h-full w-full hidden"> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h1 class="text-xl font-bold">ScamShield</h1> | |
| <button onclick="showScreen('settings-screen')" class="text-gray-500"> | |
| <i class="fas fa-cog text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4 mb-6"> | |
| <div class="flex justify-between items-center mb-2"> | |
| <span class="font-medium">Schutzstatus</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" id="protection-toggle" class="sr-only peer" checked> | |
| <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> | |
| <span class="ml-2 text-sm font-medium" id="protection-status">Aktiv</span> | |
| </label> | |
| </div> | |
| <p class="text-sm text-gray-500">Letzte Aktualisierung: heute, 14:32</p> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 mb-6"> | |
| <button onclick="showScreen('report-number-screen')" class="bg-red-100 p-4 rounded-xl flex flex-col items-center"> | |
| <div class="bg-red-200 p-3 rounded-full mb-2"> | |
| <i class="fas fa-phone-slash text-red-600 text-xl"></i> | |
| </div> | |
| <span class="font-medium">Nummer melden</span> | |
| </button> | |
| <button onclick="showScreen('sms-check-screen')" class="bg-blue-100 p-4 rounded-xl flex flex-col items-center"> | |
| <div class="bg-blue-200 p-3 rounded-full mb-2"> | |
| <i class="fas fa-sms text-blue-600 text-xl"></i> | |
| </div> | |
| <span class="font-medium">SMS prüfen</span> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h2 class="font-medium">Letzte Anrufe</h2> | |
| <button onclick="showScreen('call-log-screen')" class="text-blue-500 text-sm">Alle anzeigen</button> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="flex items-center justify-between p-2 border-b"> | |
| <div class="flex items-center"> | |
| <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> | |
| <div> | |
| <p class="font-medium">+49 123 456789</p> | |
| <p class="text-xs text-gray-500">Heute, 13:45</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| <div class="flex items-center justify-between p-2 border-b"> | |
| <div class="flex items-center"> | |
| <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> | |
| <div> | |
| <p class="font-medium">Mama</p> | |
| <p class="text-xs text-gray-500">Heute, 12:30</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| <div class="flex items-center justify-between p-2"> | |
| <div class="flex items-center"> | |
| <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> | |
| <div> | |
| <p class="font-medium">Unbekannt</p> | |
| <p class="text-xs text-gray-500">Heute, 11:15</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Bottom Navigation --> | |
| <div class="absolute bottom-0 left-0 right-0 bg-white border-t flex justify-around py-3"> | |
| <button onclick="showScreen('home-screen')" class="text-blue-500 flex flex-col items-center"> | |
| <i class="fas fa-home"></i> | |
| <span class="text-xs mt-1">Home</span> | |
| </button> | |
| <button onclick="showScreen('call-log-screen')" class="text-gray-500 flex flex-col items-center"> | |
| <i class="fas fa-phone"></i> | |
| <span class="text-xs mt-1">Anrufe</span> | |
| </button> | |
| <button onclick="showScreen('reports-screen')" class="text-gray-500 flex flex-col items-center"> | |
| <i class="fas fa-flag"></i> | |
| <span class="text-xs mt-1">Meldungen</span> | |
| </button> | |
| <button onclick="showScreen('settings-screen')" class="text-gray-500 flex flex-col items-center"> | |
| <i class="fas fa-cog"></i> | |
| <span class="text-xs mt-1">Einstellungen</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Screen: Call Log --> | |
| <div id="call-log-screen" class="h-full w-full hidden"> | |
| <div class="p-4 pb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('home-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Anrufliste</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="flex border-b mb-4"> | |
| <button id="tab-all" class="tab-active px-4 py-2" onclick="switchTab('all')">Alle</button> | |
| <button id="tab-high-risk" class="px-4 py-2" onclick="switchTab('high-risk')">Hochrisiko</button> | |
| <button id="tab-blocked" class="px-4 py-2" onclick="switchTab('blocked')">Geblockt</button> | |
| </div> | |
| <div class="space-y-3" id="call-log-content"> | |
| <!-- Calls will be loaded here --> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: SMS Check --> | |
| <div id="sms-check-screen" class="h-full w-full hidden"> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('home-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">SMS prüfen</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2">SMS-Text eingeben oder einfügen:</label> | |
| <textarea id="sms-text" class="w-full p-3 border rounded-lg h-32" placeholder="Fügen Sie hier den SMS-Text ein..."></textarea> | |
| </div> | |
| <button onclick="checkSms()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium mb-4"> | |
| SMS analysieren | |
| </button> | |
| <div id="sms-result" class="hidden"> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Analyseergebnis</h2> | |
| <div class="flex items-center mb-4"> | |
| <span class="font-medium mr-2">Betrugswahrscheinlichkeit:</span> | |
| <div class="risk-4 px-3 py-1 rounded-full text-white text-sm font-bold">85%</div> | |
| </div> | |
| <div class="mb-4"> | |
| <h3 class="font-medium mb-1">Erkannte Merkmale:</h3> | |
| <ul class="list-disc pl-5 text-gray-700 space-y-1"> | |
| <li>Dringender Handlungsaufruf</li> | |
| <li>Links zu unbekannter Website</li> | |
| <li>Angebliche Banknachricht</li> | |
| <li>Rechtschreibfehler</li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-1">Empfehlung:</h3> | |
| <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> | |
| </div> | |
| </div> | |
| <button onclick="reportSms()" class="w-full bg-red-500 text-white py-3 rounded-lg font-medium mt-4"> | |
| SMS als Betrug melden | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Report Number --> | |
| <div id="report-number-screen" class="h-full w-full hidden"> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('home-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Nummer melden</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2">Telefonnummer:</label> | |
| <input type="tel" id="report-number" class="w-full p-3 border rounded-lg" placeholder="+49 123 456789"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2">Grund:</label> | |
| <select id="report-reason" class="w-full p-3 border rounded-lg"> | |
| <option value="">-- Bitte auswählen --</option> | |
| <option value="scam">Betrugsversuch</option> | |
| <option value="spam">Werbung/Spam</option> | |
| <option value="threat">Bedrohung/Belästigung</option> | |
| <option value="other">Anderer Grund</option> | |
| </select> | |
| </div> | |
| <div class="mb-4 hidden" id="report-notes-container"> | |
| <label class="block text-gray-700 mb-2">Weitere Details (optional):</label> | |
| <textarea id="report-notes" class="w-full p-3 border rounded-lg h-20" placeholder="Beschreiben Sie den Vorfall..."></textarea> | |
| </div> | |
| <button onclick="submitReport()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium"> | |
| Meldung absenden | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Screen: Number Detail --> | |
| <div id="number-detail-screen" class="h-full w-full hidden"> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showPreviousScreen()" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Nummerndetails</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4 mb-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <div> | |
| <h2 class="font-bold text-lg" id="detail-number">+49 123 456789</h2> | |
| <p class="text-gray-500" id="detail-name">Unbekannt</p> | |
| </div> | |
| <div class="risk-4 px-4 py-2 rounded-full text-white text-sm font-bold" id="detail-risk">95% Risiko</div> | |
| </div> | |
| <div class="mb-4"> | |
| <h3 class="font-medium mb-1">Letzter Anruf:</h3> | |
| <p class="text-gray-700" id="detail-last-call">Heute, 11:15</p> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-1">Community-Bewertung:</h3> | |
| <div class="flex items-center"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5 mr-2"> | |
| <div class="bg-red-500 h-2.5 rounded-full" style="width: 90%"></div> | |
| </div> | |
| <span class="text-sm text-gray-700">90% melden Betrug</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 mb-6"> | |
| <button onclick="addToWhitelist()" class="bg-green-100 text-green-800 p-3 rounded-lg font-medium flex items-center justify-center"> | |
| <i class="fas fa-check-circle mr-2"></i> Whitelist | |
| </button> | |
| <button onclick="addToBlacklist()" class="bg-red-100 text-red-800 p-3 rounded-lg font-medium flex items-center justify-center"> | |
| <i class="fas fa-ban mr-2"></i> Blacklist | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Letzte Aktivitäten</h2> | |
| <div class="space-y-3"> | |
| <div class="border-b pb-2"> | |
| <p class="font-medium">Anruf</p> | |
| <p class="text-sm text-gray-500">Heute, 11:15 - Risiko: 95%</p> | |
| </div> | |
| <div class="border-b pb-2"> | |
| <p class="font-medium">SMS gesendet</p> | |
| <p class="text-sm text-gray-500">Gestern, 16:30 - Risiko: 88%</p> | |
| </div> | |
| <div> | |
| <p class="font-medium">Anruf</p> | |
| <p class="text-sm text-gray-500">Gestern, 10:45 - Risiko: 82%</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Reports --> | |
| <div id="reports-screen" class="h-full w-full hidden"> | |
| <div class="p-4 pb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('home-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Meine Meldungen</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="space-y-3" id="reports-list"> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <div> | |
| <p class="font-medium">+49 123 456789</p> | |
| <p class="text-sm text-gray-500">Heute, 14:20</p> | |
| </div> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Betrug</span> | |
| </div> | |
| <p class="text-gray-700">Angeblicher Bankanruf mit Aufforderung zur Kontobestätigung</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <div> | |
| <p class="font-medium">Unbekannte SMS</p> | |
| <p class="text-sm text-gray-500">Gestern, 18:45</p> | |
| </div> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Betrug</span> | |
| </div> | |
| <p class="text-gray-700">"Ihr Paket konnte nicht zugestellt werden. Bitte öffnen Sie den Link zur Neuplanung"</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <div> | |
| <p class="font-medium">+49 987 654321</p> | |
| <p class="text-sm text-gray-500">Montag, 10:30</p> | |
| </div> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Spam</span> | |
| </div> | |
| <p class="text-gray-700">Werbung für Versicherungen trotz Widerspruch</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Settings --> | |
| <div id="settings-screen" class="h-full w-full hidden"> | |
| <div class="p-4 pb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('home-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Einstellungen</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Allgemein</h2> | |
| <div class="flex justify-between items-center mb-3"> | |
| <span>Sprache</span> | |
| <select class="p-2 border rounded"> | |
| <option>Deutsch</option> | |
| <option>Englisch</option> | |
| </select> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span>Dark Mode</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer"> | |
| <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> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Benachrichtigungen</h2> | |
| <div class="flex justify-between items-center mb-3"> | |
| <span>Erkennung von Betrugsanrufen</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer" checked> | |
| <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> | |
| </label> | |
| </div> | |
| <div class="flex justify-between items-center mb-3"> | |
| <span>Erkennung von Betrugs-SMS</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer" checked> | |
| <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> | |
| </label> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span>Community-Updates</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer"> | |
| <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> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Listen verwalten</h2> | |
| <button onclick="showScreen('whitelist-screen')" class="w-full flex justify-between items-center py-3 border-b"> | |
| <span>Whitelist</span> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| <button onclick="showScreen('blacklist-screen')" class="w-full flex justify-between items-center py-3"> | |
| <span>Blacklist</span> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4"> | |
| <h2 class="font-bold text-lg mb-3">Über</h2> | |
| <button class="w-full text-left py-3 border-b">Hilfe & Support</button> | |
| <button class="w-full text-left py-3 border-b">Datenschutz</button> | |
| <button class="w-full text-left py-3">Impressum</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Whitelist --> | |
| <div id="whitelist-screen" class="h-full w-full hidden"> | |
| <div class="p-4 pb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('settings-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Whitelist</h1> | |
| <button onclick="addNewWhitelist()" class="text-blue-500"> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Mama</p> | |
| <p class="text-sm text-gray-500">+49 111 222333</p> | |
| </div> | |
| <button onclick="removeFromWhitelist('+49 111 222333')" class="text-red-500"> | |
| <i class="fas fa-trash-alt"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Arbeit</p> | |
| <p class="text-sm text-gray-500">+49 444 555666</p> | |
| </div> | |
| <button onclick="removeFromWhitelist('+49 444 555666')" class="text-red-500"> | |
| <i class="fas fa-trash-alt"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Bank</p> | |
| <p class="text-sm text-gray-500">+49 777 888999</p> | |
| </div> | |
| <button onclick="removeFromWhitelist('+49 777 888999')" class="text-red-500"> | |
| <i class="fas fa-trash-alt"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Blacklist --> | |
| <div id="blacklist-screen" class="h-full w-full hidden"> | |
| <div class="p-4 pb-16"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showScreen('settings-screen')" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold">Blacklist</h1> | |
| <button onclick="addNewBlacklist()" class="text-blue-500"> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">+49 123 456789</p> | |
| <p class="text-sm text-gray-500">Betrugsanruf</p> | |
| </div> | |
| <button onclick="removeFromBlacklist('+49 123 456789')" class="text-red-500"> | |
| <i class="fas fa-trash-alt"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-4 flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">+49 987 654321</p> | |
| <p class="text-sm text-gray-500">Werbung</p> | |
| </div> | |
| <button onclick="removeFromBlacklist('+49 987 654321')" class="text-red-500"> | |
| <i class="fas fa-trash-alt"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Screen: Add to Whitelist/Blacklist --> | |
| <div id="add-list-screen" class="h-full w-full hidden"> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <button onclick="showPreviousScreen()" class="text-gray-500"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <h1 class="text-xl font-bold" id="add-list-title">Zur Whitelist hinzufügen</h1> | |
| <div class="w-6"></div> <!-- Spacer --> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2">Name (optional):</label> | |
| <input type="text" id="list-contact-name" class="w-full p-3 border rounded-lg" placeholder="Max Mustermann"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2">Telefonnummer:</label> | |
| <input type="tel" id="list-contact-number" class="w-full p-3 border rounded-lg" placeholder="+49 123 456789"> | |
| </div> | |
| <div class="mb-4" id="list-reason-container"> | |
| <label class="block text-gray-700 mb-2">Grund:</label> | |
| <textarea id="list-contact-reason" class="w-full p-3 border rounded-lg h-20" placeholder="Warum fügen Sie diese Nummer hinzu?"></textarea> | |
| </div> | |
| <button onclick="saveToList()" class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium"> | |
| Speichern | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // App state | |
| let currentScreen = 'onboarding-screen'; | |
| let previousScreen = ''; | |
| let currentNumberDetail = null; | |
| let currentListType = ''; | |
| // Sample data | |
| const calls = [ | |
| { number: '+49 123 456789', name: 'Unbekannt', time: 'Heute, 11:15', risk: 95, tags: ['Betrug'] }, | |
| { number: '+49 987 654321', name: 'Telekom', time: 'Heute, 10:30', risk: 60, tags: ['Werbung'] }, | |
| { number: '+49 111 222333', name: 'Mama', time: 'Heute, 09:45', risk: 5, tags: [] }, | |
| { number: '+49 444 555666', name: 'Arbeit', time: 'Gestern, 16:20', risk: 10, tags: [] }, | |
| { number: '+49 777 888999', name: 'Bank', time: 'Gestern, 14:10', risk: 30, tags: [] }, | |
| { number: '+49 999 888777', name: 'Unbekannt', time: 'Gestern, 12:05', risk: 85, tags: ['Betrug'] }, | |
| { number: '+49 666 555444', name: 'Unbekannt', time: 'Montag, 18:30', risk: 75, tags: ['Betrug'] } | |
| ]; | |
| const whitelist = [ | |
| { name: 'Mama', number: '+49 111 222333' }, | |
| { name: 'Arbeit', number: '+49 444 555666' }, | |
| { name: 'Bank', number: '+49 777 888999' } | |
| ]; | |
| const blacklist = [ | |
| { number: '+49 123 456789', reason: 'Betrugsanruf' }, | |
| { number: '+49 987 654321', reason: 'Werbung' } | |
| ]; | |
| const reports = [ | |
| { type: 'call', number: '+49 123 456789', time: 'Heute, 14:20', reason: 'Betrug', details: 'Angeblicher Bankanruf mit Aufforderung zur Kontobestätigung' }, | |
| { type: 'sms', text: 'Ihr Paket konnte nicht zugestellt werden. Bitte öffnen Sie den Link zur Neuplanung', time: 'Gestern, 18:45', reason: 'Betrug' }, | |
| { type: 'call', number: '+49 987 654321', time: 'Montag, 10:30', reason: 'Spam', details: 'Werbung für Versicherungen trotz Widerspruch' } | |
| ]; | |
| // Initialize the app | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Set up event listeners | |
| document.getElementById('protection-toggle').addEventListener('change', function() { | |
| const status = this.checked ? 'Aktiv' : 'Inaktiv'; | |
| document.getElementById('protection-status').textContent = status; | |
| }); | |
| document.getElementById('report-reason').addEventListener('change', function() { | |
| if (this.value) { | |
| document.getElementById('report-notes-container').classList.remove('hidden'); | |
| } else { | |
| document.getElementById('report-notes-container').classList.add('hidden'); | |
| } | |
| }); | |
| // Load call log | |
| loadCallLog('all'); | |
| }); | |
| // Screen navigation | |
| function showScreen(screenId) { | |
| if (currentScreen === screenId) return; | |
| const currentElement = document.getElementById(currentScreen); | |
| const nextElement = document.getElementById(screenId); | |
| if (currentElement) { | |
| currentElement.classList.add('hidden'); | |
| } | |
| if (nextElement) { | |
| previousScreen = currentScreen; | |
| currentScreen = screenId; | |
| nextElement.classList.remove('hidden'); | |
| // Special cases for certain screens | |
| if (screenId === 'call-log-screen') { | |
| loadCallLog('all'); | |
| } else if (screenId === 'reports-screen') { | |
| loadReports(); | |
| } | |
| } | |
| } | |
| function showPreviousScreen() { | |
| if (previousScreen) { | |
| showScreen(previousScreen); | |
| } else { | |
| showScreen('home-screen'); | |
| } | |
| } | |
| // Call log functions | |
| function loadCallLog(filter) { | |
| const container = document.getElementById('call-log-content'); | |
| container.innerHTML = ''; | |
| // Filter calls | |
| let filteredCalls = []; | |
| if (filter === 'all') { | |
| filteredCalls = calls; | |
| } else if (filter === 'high-risk') { | |
| filteredCalls = calls.filter(call => call.risk >= 70); | |
| } else if (filter === 'blocked') { | |
| filteredCalls = blacklist.map(item => { | |
| const call = calls.find(c => c.number === item.number); | |
| return call || { number: item.number, name: 'Geblockt', time: '', risk: 100, tags: ['Geblockt'] }; | |
| }); | |
| } | |
| // Add calls to the list | |
| filteredCalls.forEach(call => { | |
| const riskClass = getRiskClass(call.risk); | |
| const callElement = document.createElement('div'); | |
| callElement.className = 'flex items-center justify-between p-3 bg-white rounded-lg shadow'; | |
| callElement.onclick = () => showNumberDetail(call.number); | |
| callElement.innerHTML = ` | |
| <div class="flex items-center"> | |
| <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> | |
| <div> | |
| <p class="font-medium">${call.name || call.number}</p> | |
| <p class="text-xs text-gray-500">${call.time}</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| `; | |
| container.appendChild(callElement); | |
| }); | |
| // Update active tab | |
| document.querySelectorAll('#call-log-screen .flex button').forEach(button => { | |
| button.classList.remove('tab-active'); | |
| }); | |
| document.getElementById(`tab-${filter}`).classList.add('tab-active'); | |
| } | |
| function switchTab(filter) { | |
| loadCallLog(filter); | |
| } | |
| // Number detail functions | |
| function showNumberDetail(number) { | |
| const call = calls.find(c => c.number === number) || | |
| { number, name: 'Unbekannt', time: '', risk: 0, tags: [] }; | |
| currentNumberDetail = call; | |
| // Update detail screen | |
| document.getElementById('detail-number').textContent = call.number; | |
| document.getElementById('detail-name').textContent = call.name || 'Unbekannt'; | |
| document.getElementById('detail-risk').textContent = `${call.risk}% Risiko`; | |
| document.getElementById('detail-risk').className = `risk-${getRiskIndex(call.risk)} px-4 py-2 rounded-full text-white text-sm font-bold`; | |
| document.getElementById('detail-last-call').textContent = call.time || 'Keine Aufzeichnung'; | |
| showScreen('number-detail-screen'); | |
| } | |
| function addToWhitelist() { | |
| if (!currentNumberDetail) return; | |
| currentListType = 'whitelist'; | |
| document.getElementById('add-list-title').textContent = 'Zur Whitelist hinzufügen'; | |
| document.getElementById('list-contact-number').value = currentNumberDetail.number; | |
| document.getElementById('list-contact-name').value = currentNumberDetail.name || ''; | |
| document.getElementById('list-reason-container').classList.add('hidden'); | |
| showScreen('add-list-screen'); | |
| } | |
| function addToBlacklist() { | |
| if (!currentNumberDetail) return; | |
| currentListType = 'blacklist'; | |
| document.getElementById('add-list-title').textContent = 'Zur Blacklist hinzufügen'; | |
| document.getElementById('list-contact-number').value = currentNumberDetail.number; | |
| document.getElementById('list-contact-name').value = ''; | |
| document.getElementById('list-reason-container').classList.remove('hidden'); | |
| showScreen('add-list-screen'); | |
| } | |
| function saveToList() { | |
| const number = document.getElementById('list-contact-number').value; | |
| const name = document.getElementById('list-contact-name').value; | |
| const reason = document.getElementById('list-contact-reason').value; | |
| if (!number) { | |
| alert('Bitte geben Sie eine Telefonnummer ein.'); | |
| return; | |
| } | |
| if (currentListType === 'whitelist') { | |
| // Add to whitelist | |
| if (!whitelist.some(item => item.number === number)) { | |
| whitelist.push({ name, number }); | |
| } | |
| showScreen('whitelist-screen'); | |
| } else if (currentListType === 'blacklist') { | |
| // Add to blacklist | |
| if (!blacklist.some(item => item.number === number)) { | |
| blacklist.push({ number, reason }); | |
| } | |
| showScreen('blacklist-screen'); | |
| } | |
| // Reset form | |
| document.getElementById('list-contact-number').value = ''; | |
| document.getElementById('list-contact-name').value = ''; | |
| document.getElementById('list-contact-reason').value = ''; | |
| } | |
| function removeFromWhitelist(number) { | |
| const index = whitelist.findIndex(item => item.number === number); | |
| if (index !== -1) { | |
| whitelist.splice(index, 1); | |
| // In a real app, we would update the UI here | |
| alert(`${number} wurde von der Whitelist entfernt.`); | |
| showScreen('whitelist-screen'); | |
| } | |
| } | |
| function removeFromBlacklist(number) { | |
| const index = blacklist.findIndex(item => item.number === number); | |
| if (index !== -1) { | |
| blacklist.splice(index, 1); | |
| // In a real app, we would update the UI here | |
| alert(`${number} wurde von der Blacklist entfernt.`); | |
| showScreen('blacklist-screen'); | |
| } | |
| } | |
| // SMS functions | |
| function checkSms() { | |
| const smsText = document.getElementById('sms-text').value; | |
| if (!smsText) { | |
| alert('Bitte geben Sie einen SMS-Text ein.'); | |
| return; | |
| } | |
| // Simulate API call | |
| setTimeout(() => { | |
| document.getElementById('sms-result').classList.remove('hidden'); | |
| window.scrollTo(0, document.body.scrollHeight); | |
| }, 1000); | |
| } | |
| function reportSms() { | |
| const smsText = document.getElementById('sms-text').value; | |
| if (!smsText) { | |
| alert('Kein SMS-Text zum Melden vorhanden.'); | |
| return; | |
| } | |
| // In a real app, this would create a report | |
| alert('Die SMS wurde als Betrugsversuch gemeldet. Vielen Dank für Ihren Beitrag!'); | |
| showScreen('home-screen'); | |
| } | |
| // Report functions | |
| function submitReport() { | |
| const number = document.getElementById('report-number').value; | |
| const reason = document.getElementById('report-reason').value; | |
| const notes = document.getElementById('report-notes').value; | |
| if (!number) { | |
| alert('Bitte geben Sie eine Telefonnummer ein.'); | |
| return; | |
| } | |
| if (!reason) { | |
| alert('Bitte wählen Sie einen Grund aus.'); | |
| return; | |
| } | |
| // In a real app, this would create a report | |
| alert(`Die Nummer ${number} wurde als ${reason} gemeldet. Vielen Dank für Ihren Beitrag!`); | |
| // Reset form | |
| document.getElementById('report-number').value = ''; | |
| document.getElementById('report-reason').value = ''; | |
| document.getElementById('report-notes').value = ''; | |
| showScreen('home-screen'); | |
| } | |
| function loadReports() { | |
| const container = document.getElementById('reports-list'); | |
| container.innerHTML = ''; | |
| reports.forEach(report => { | |
| const reportElement = document.createElement('div'); | |
| reportElement.className = 'bg-white rounded-xl shadow p-4'; | |
| let title, content; | |
| if (report.type === 'call') { | |
| title = report.number; | |
| content = report.details; | |
| } else { | |
| title = 'Unbekannte SMS'; | |
| content = `"${report.text}"`; | |
| } | |
| const reasonClass = report.reason === 'Betrug' ? 'bg-red-100 text-red-800' : 'bg-yellow-100 text-yellow-800'; | |
| reportElement.innerHTML = ` | |
| <div class="flex justify-between items-start mb-2"> | |
| <div> | |
| <p class="font-medium">${title}</p> | |
| <p class="text-sm text-gray-500">${report.time}</p> | |
| </div> | |
| <span class="${reasonClass} text-xs px-2 py-1 rounded">${report.reason}</span> | |
| </div> | |
| <p class="text-gray-700">${content}</p> | |
| `; | |
| container.appendChild(reportElement); | |
| }); | |
| } | |
| // Whitelist/Blacklist management | |
| function addNewWhitelist() { | |
| currentListType = 'whitelist'; | |
| document.getElementById('add-list-title').textContent = 'Zur Whitelist hinzufügen'; | |
| document.getElementById('list-contact-number').value = ''; | |
| document.getElementById('list-contact-name').value = ''; | |
| document.getElementById('list-reason-container').classList.add('hidden'); | |
| showScreen('add-list-screen'); | |
| } | |
| function addNewBlacklist() { | |
| currentListType = 'blacklist'; | |
| document.getElementById('add-list-title').textContent = 'Zur Blacklist hinzufügen'; | |
| document.getElementById('list-contact-number').value = ''; | |
| document.getElementById('list-contact-name').value = ''; | |
| document.getElementById('list-reason-container').classList.remove('hidden'); | |
| showScreen('add-list-screen'); | |
| } | |
| // Helper functions | |
| function getRiskClass(risk) { | |
| const index = getRiskIndex(risk); | |
| return `risk-${index}`; | |
| } | |
| function getRiskIndex(risk) { | |
| if (risk < 20) return 0; | |
| if (risk < 40) return 1; | |
| if (risk < 60) return 2; | |
| if (risk < 80) return 3; | |
| return 4; | |
| } | |
| </script> | |
| <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> | |
| </html> |