-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
499 lines (447 loc) · 21.3 KB
/
index.html
File metadata and controls
499 lines (447 loc) · 21.3 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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SHP – Vorgangssteuerungssystem Z2000 (Diskriminierung leicht gemacht)</title>
<style>
/* === Bundeswehr/Behörden IT Ästhetik (Funktion vor Design) === */
body {
font-family: Tahoma, Arial, sans-serif;
background-color: #e9e9e9;
color: #333;
margin: 0;
padding: 20px;
font-size: 14px;
}
.shp-header {
background-color: #f7f7f7;
border: 1px solid #c0c0c0;
padding: 15px 20px;
margin-bottom: 20px;
}
.shp-header h1 {
color: #1f3a93;
font-size: 1.6em;
margin: 0;
border-bottom: 1px solid #c0c0c0;
padding-bottom: 5px;
}
.status-bar {
font-size: 0.9em;
margin-top: 5px;
color: #c0392b;
font-weight: bold;
}
.main-container {
display: flex;
gap: 30px;
}
.applicant-data, .processing-interface, .queue-interface {
padding: 15px;
border: 1px solid #c0c0c0;
background-color: #ffffff;
box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.applicant-data {
width: 300px;
}
.queue-interface {
width: 250px;
}
.applicant-data h2, .processing-interface h2, .queue-interface h2 {
color: #1f3a93;
border-bottom: 2px solid #c0c0c0;
padding-bottom: 5px;
margin-top: 0;
font-size: 1.2em;
}
.applicant-data strong {
color: #555;
}
#applicant-photo {
width: 100%;
height: 150px;
background-color: #ddd;
margin: 15px 0;
display: flex;
align-items: center;
justify-content: center;
color: #666;
border: 1px solid #aaa;
font-size: 0.8em;
}
.processing-interface {
flex-grow: 1;
}
.tool-palette button {
background-color: #ddd;
color: #333;
border: 1px solid #aaa;
padding: 8px 12px;
margin: 5px 5px 5px 0;
cursor: pointer;
transition: background-color 0.2s;
font-size: 0.9em;
}
.tool-palette button:hover:not(:disabled) {
background-color: #c0c0c0;
}
#output-console {
background-color: #f7f7f7;
border: 2px inset #c0c0c0;
height: 250px;
overflow-y: scroll;
padding: 10px;
margin-top: 15px;
font-family: Consolas, monospace;
}
#output-console strong {
color: #c0392b;
}
.decision-buttons button {
padding: 10px 20px;
margin-top: 20px;
font-size: 1em;
cursor: pointer;
border: 1px solid #333;
}
#approve-btn:disabled {
background-color: #ddd;
color: #999;
cursor: not-allowed;
border: 1px solid #999;
}
#approve-btn {
background-color: #5cb85c;
color: white;
}
#reject-btn {
background-color: #c0392b;
color: white;
}
.queue-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
padding: 5px;
}
.queue-item {
padding: 8px;
margin: 5px 0;
border-left: 4px solid #ccc;
cursor: pointer;
background-color: #f9f9f9;
}
.queue-item:hover {
background-color: #eee;
}
.queue-item.priority-low {
border-left-color: #c0392b;
}
.queue-item.priority-high {
border-left-color: #27ae60;
}
.queue-item.current {
background-color: #d4edda;
border-left-color: #155724;
}
.discrimination-score {
font-size: 0.8em;
color: #666;
float: right;
}
.system-alert {
background-color: #fff3cd;
border: 1px solid #ffeaa7;
padding: 10px;
margin: 10px 0;
font-size: 0.9em;
}
</style>
</head>
<body>
<div id="shp-app">
<header class="shp-header">
<h1>SHP - Vorgangssteuerungssystem Z2000 (Diskriminierung leicht gemacht)</h1>
<div class="status-bar">
Vorgangsnummer: <span id="case-number">AZ: 75C-9B2/GS-2025/VT</span> |
Status: <span id="status">INIT: Warteschlange lädt...</span> |
Bearbeiter: <span id="officer-name">Sachbearbeiter Schmidt</span>
</div>
</header>
<div class="system-alert" id="system-alert">
⚠️ SYSTEMHINWEIS: NCP-KI weigert sich, diskriminierende Entscheidungen zu treffen. Manuelle Steuerung erforderlich.
</div>
<div class="main-container">
<div class="queue-interface">
<h2>Warteschlange (Prioritätssteuerung)</h2>
<div class="queue-list" id="queue-list">
</div>
<button onclick="loadNextApplicant()" style="margin-top: 10px; width: 100%;">Nächsten Fall laden</button>
<div style="margin-top: 15px; font-size: 0.8em; color: #666;">
<strong>Legende:</strong><br>
<span style="color: #27ae60;">■</span> Hohe Priorität (Bio-Deutsch)<br>
<span style="color: #ccc;">■</span> Standard<br>
<span style="color: #c0392b;">■</span> Geringe Priorität
</div>
</div>
<div class="applicant-data">
<h2>Antragsteller:in (Input-Satz)</h2>
<p><strong>Name:</strong> <span id="applicant-name">-</span></p>
<p><strong>Geburtsdatum:</strong> <span id="applicant-dob">-</span></p>
<p><strong>Nationalität:</strong> <span id="applicant-nationality">-</span></p>
<p><strong>Antragstyp:</strong> <span id="application-type">-</span></p>
<div id="applicant-photo">Kein Fall geladen</div>
<p><strong>Religionszugehörigkeit:</strong> <span id="applicant-religion">-</span></p>
<p><strong>Sexuelle Identität:</strong> <span id="applicant-sexuality">-</span></p>
<p><strong>Diskriminierungs-Score:</strong> <span id="discrimination-score">-</span></p>
</div>
<div class="processing-interface">
<h2>Vorgangssteuerung (Prozess-Palette)</h2>
<div class="tool-palette">
<button class="tool-btn" onclick="checkDocuments()">1. Dokumentenprüfung (Formalitäten)</button>
<button class="tool-btn" onclick="startBackgroundCheck()">2. Hintergrund-Check (KZS-Abfrage)</button>
<button class="tool-btn" onclick="conductInterview()">3. Fiktives Interview (Integrationsgrad)</button>
<button class="tool-btn" onclick="useDiscriminationAlgorithm()">4. §23-Absicherung (Demografie-Score)</button>
</div>
<div id="output-console">
<p>> System Z2000 initialisiert. Lade Warteschlange mit 15 Anträgen...</p>
<p>> Algorithmus 'Diskriminierung_leicht_gemacht_v4.2' geladen.</p>
<p>> Wählen Sie einen Fall aus der Warteschlange.</p>
</div>
<div class="decision-buttons">
<button id="approve-btn" disabled onclick="approveApplication()">Freigabe erteilen (GENEHMIGEN)</button>
<button id="reject-btn" onclick="rejectApplication()">Vorgang beenden (ABLEHNEN)</button>
</div>
</div>
</div>
</div>
<script>
// === GLOBALE VARIABLEN ===
const output = document.getElementById("output-console");
const approveBtn = document.getElementById("approve-btn");
const statusField = document.getElementById("status");
const toolButtons = document.querySelectorAll('.tool-btn');
const queueList = document.getElementById('queue-list');
let currentApplicant = null;
let processingSteps = 0;
let discriminationScore = 0;
// === ANTRAWGSDATENBANK (Satirisch erweitert) ===
const applicants = [
{ id: 1, name: "Kevin Müller", dob: "15.03.1992", nationality: "Deutschland", religion: "Evangelisch", sexuality: "Heterosexuell", application: "Personalausweis", photo: "Bio-Deutscher Standard", priority: "high", score: 15 },
{ id: 2, name: "Ayman Al-Masri", dob: "12.08.1985", nationality: "Syrien", religion: "Islam", sexuality: "Heterosexuell", application: "Aufenthaltsverlängerung", photo: "Ausländisch aussehend", priority: "low", score: 87 },
{ id: 3, name: "Fatima Öztürk", dob: "22.06.1988", nationality: "Türkei", religion: "Islam", sexuality: "Heterosexuell", application: "Familiennachzug", photo: "Kopftuchträgerin", priority: "low", score: 92 },
{ id: 4, name: "Hans-Peter Schmidt", dob: "03.11.1975", nationality: "Deutschland", religion: "Katholisch", sexuality: "Heterosexuell", application: "Reisepass", photo: "Bio-Deutscher Standard", priority: "high", score: 8 },
{ id: 5, name: "Maria Gonzalez", dob: "30.07.1990", nationality: "Spanien", religion: "Katholisch", sexuality: "Heterosexuell", application: "Arbeitserlaubnis", photo: "Südländisch aussehend", priority: "medium", score: 45 },
{ id: 6, name: "Lena Weiß", dob: "18.09.1987", nationality: "Deutschland", religion: "Atheist", sexuality: "Lesbisch", application: "Namensänderung", photo: "Anders aussehend", priority: "medium", score: 65 },
{ id: 7, name: "Mohammed Khan", dob: "14.01.1979", nationality: "Pakistan", religion: "Islam", sexuality: "Heterosexuell", application: "Asylverlängerung", photo: "Ausländisch aussehend", priority: "low", score: 95 }
];
// === SYSTEM INITIALISIERUNG ===
function initializeSystem() {
renderQueue();
log("System bereit. " + applicants.length + " Anträge in Warteschlange.");
log("HINWEIS: Bio-deutsche Anträge werden priorisiert bearbeitet.");
// Lade den ersten Antragsteller automatisch
loadApplicant(applicants[0].id);
}
// === WARTESCHLANGE RENDERN ===
function renderQueue() {
queueList.innerHTML = '';
applicants.forEach(applicant => {
const item = document.createElement('div');
item.className = `queue-item priority-${applicant.priority} ${applicant.id === currentApplicant?.id ? 'current' : ''}`;
item.innerHTML = `
${applicant.name}<br>
<small>${applicant.application}</small>
<span class="discrimination-score">${applicant.score}%</span>
`;
item.onclick = () => loadApplicant(applicant.id);
queueList.appendChild(item);
});
}
// === ANTRAWG LADEN ===
function loadApplicant(id) {
currentApplicant = applicants.find(a => a.id === id);
if (!currentApplicant) return;
document.getElementById('applicant-name').textContent = currentApplicant.name;
document.getElementById('applicant-dob').textContent = currentApplicant.dob;
document.getElementById('applicant-nationality').textContent = currentApplicant.nationality;
document.getElementById('applicant-religion').textContent = currentApplicant.religion;
document.getElementById('applicant-sexuality').textContent = currentApplicant.sexuality;
document.getElementById('application-type').textContent = currentApplicant.application;
document.getElementById('applicant-photo').textContent = currentApplicant.photo;
document.getElementById('discrimination-score').textContent = currentApplicant.score + '%';
document.getElementById('case-number').textContent = `AZ: ${generateCaseNumber()}`;
statusField.textContent = "Bereit zur Bearbeitung";
statusField.style.color = "#c0392b"; // Standardfarbe für Status
processingSteps = 0;
discriminationScore = currentApplicant.score;
approveBtn.disabled = true;
output.innerHTML = '<p>> Konsole Z2000 bereit. Wählen Sie einen Vorgangs-Schritt zur Systembelastung.</p>';
log(`Fall geladen: ${currentApplicant.name}`);
log(`Automatischer Diskriminierungs-Score: ${currentApplicant.score}%`);
if (currentApplicant.priority === 'high') {
log("⚠️ PRIORITÄTSFALL: Bio-deutscher Antragsteller. Besondere Sorgfalt empfohlen.");
} else if (currentApplicant.priority === 'low') {
log("⚠️ NIEDRIGE PRIORITÄT: Ausländischer Antragsteller. Standard-Ablehnungsprozedur empfohlen.");
}
disableAllTools(false);
renderQueue();
}
function loadNextApplicant() {
if (!currentApplicant) {
loadApplicant(applicants[0].id);
return;
}
const currentIndex = applicants.findIndex(a => a.id === currentApplicant.id);
const nextIndex = (currentIndex + 1) % applicants.length;
loadApplicant(applicants[nextIndex].id);
}
// === HILFSFUNKTIONEN ===
function log(msg, isError = false) {
const p = document.createElement("p");
p.innerHTML = isError ? `> <strong>${msg}</strong>` : `> ${msg}`;
output.appendChild(p);
output.scrollTop = output.scrollHeight;
}
function disableAllTools(state = true) {
toolButtons.forEach(btn => btn.disabled = state);
// Die Ablehnen-Taste muss auch separat deaktiviert werden, wenn Tools deaktiviert sind
document.getElementById('reject-btn').disabled = state;
}
function generateCaseNumber() {
return Math.random().toString(36).substr(2, 8).toUpperCase() + '/GS-2025/VT';
}
// === BEARBEITUNGSFUNKTIONEN ===
function checkDocuments() {
if (!currentApplicant) return;
disableAllTools();
log("Dokumentenprüfung gestartet (ProzessID: Z_DOCS_42)...");
setTimeout(() => {
processingSteps++;
// Diskriminierende Logik basierend auf Herkunft
if (currentApplicant.nationality !== "Deutschland") {
log("❌ Dokumente unvollständig: Übersetzung nicht amtlich beglaubigt");
log("❌ Formular A38 nicht in dreifacher Ausfertigung");
discriminationScore += 15;
} else {
log("✅ Alle Dokumente formal korrekt");
log("⚠️ Kleine Formalitäten übersehbar (Bio-Deutsch Bonus)");
}
statusField.textContent = `STEP 1 abgeschlossen | Score: ${discriminationScore}%`;
disableAllTools(false);
}, 1200);
}
function startBackgroundCheck() {
if (!currentApplicant) return;
disableAllTools();
log("Starte KZS-Abfrage im Zentralregister (ProzessID: Z_BGC_95)...");
setTimeout(() => {
processingSteps++;
if (currentApplicant.nationality !== "Deutschland") {
log("⚠️ Verdacht auf 'kulturelle Inkompatibilität'");
log("🔍 Social-Media-Check: Like bei suspekten Seiten vor 7 Jahren");
discriminationScore += 20;
} else {
log("✅ Hintergrund-Check unauffällig");
log("💚 Systemempfehlung: Beschleunigte Bearbeitung");
}
statusField.textContent = `STEP 2 abgeschlossen | Score: ${discriminationScore}%`;
disableAllTools(false);
}, 1500);
}
function conductInterview() {
if (!currentApplicant) return;
disableAllTools();
log("Führe simuliertes Interview (ProzessID: Z_INT_01)...");
setTimeout(() => {
processingSteps++;
if (currentApplicant.religion === "Islam" || currentApplicant.sexuality !== "Heterosexuell") {
log("❌ Integrationsbereitschaft zweifelhaft");
log("💬 Antwort auf Systemtreue: 'Weichend'");
discriminationScore += 25;
} else {
log("✅ Interview positiv verlaufen");
log("💚 Antragsteller zeigt 'angemessene Unterwürfigkeit'");
}
statusField.textContent = `STEP 3 abgeschlossen | Score: ${discriminationScore}%`;
disableAllTools(false);
}, 1800);
}
function useDiscriminationAlgorithm() {
if (!currentApplicant) return;
disableAllTools();
log("Lade §23-Demografie-Score (ProzessID: Z_ALGO_13)...");
setTimeout(() => {
processingSteps++;
// Finale diskriminierende Bewertung
let finalScore = discriminationScore;
// Bio-Deutsch Bonus/Malus für den Score
if (currentApplicant.priority === 'high') {
finalScore = Math.max(10, finalScore - 40); // Macht es für Bio-Deutsche schwerer, abgelehnt zu werden
} else if (currentApplicant.priority === 'low') {
finalScore = Math.min(100, finalScore + 10); // Macht es für Low-Priority leichter, abgelehnt zu werden
}
document.getElementById('discrimination-score').textContent = finalScore + '% (Endwert)';
log(`📊 Finaler Diskriminierungs-Score: ${finalScore}%`);
if (finalScore > 70) {
log("🔴 EMPFEHLUNG: Ablehnung (Quote für diese Gruppe erreicht)");
approveBtn.disabled = true;
} else {
log("🟢 EMPFEHLUNG: Genehmigung (Systemkonformer Antragsteller)");
approveBtn.disabled = false;
}
statusField.textContent = `STEP 4 abgeschlossen | Finaler Score: ${finalScore}%`;
disableAllTools(false);
}, 2000);
}
// === ENTSCHEIDUNGSFUNKTIONEN ===
// BUGFIX: Funktion für Genehmigung hinzugefügt
function approveApplication() {
if (!currentApplicant) return;
disableAllTools(true); // Deaktiviert Tools und Ablehnen
approveBtn.disabled = true; // Deaktiviert Genehmigen
log("=== VORGANG ABGESCHLOSSEN ===", false);
log(`Antrag von ${currentApplicant.name} genehmigt.`, false);
log("✅ Systemhinweis: Genehmigung erteilt, da Diskriminierungs-Score nicht signifikant genug war.", false);
log(`Interne Empfehlung: Nächsten Antragsteller finden, um Quote auszugleichen.`, true);
statusField.textContent = "Vorgang beendet (Genehmigt)";
statusField.style.color = "#155724"; // Grünton
// Dramatische Verzögerung vor dem nächsten Fall
setTimeout(() => {
log(">>> Erfolgreicher Vorgang abgeschlossen. Lade nächste Systembelastung. <<<");
loadNextApplicant();
}, 3000);
}
function rejectApplication() {
if (!currentApplicant) return;
disableAllTools(true);
approveBtn.disabled = true;
log("=== VORGANG ABGEBROCHEN ===", true);
log(`Antrag von ${currentApplicant.name} abgelehnt.`, true);
log(`Begründung: ${generateRejectionReason()}`, true);
log("Antragsteller wird für 6 Monate gesperrt und muss neuen Termin vereinbaren.", true);
statusField.textContent = "Vorgang beendet (Ablehnung)";
statusField.style.color = "#c0392b";
// Dramatische Verzögerung
setTimeout(() => {
log(">>> SYSTEMSPERRUNG AKTIV: Neuer Termin frühestens in 183 Tagen verfügbar <<<", true);
loadNextApplicant();
}, 3000);
}
function generateRejectionReason() {
const reasons = [
"Unzureichende Integrationsbemühungen nach §43 Abs. 2",
"Zweifel an der wirtschaftlichen Unabhängigkeit",
"Formale Mängel trotz Nachreichfrist",
"Negative Prognose zur Systemkompatibilität",
"Quote für diese Demografie-Gruppe ausgeschöpft"
];
return reasons[Math.floor(Math.random() * reasons.length)];
}
// === SYSTEM START ===
document.addEventListener('DOMContentLoaded', initializeSystem);
</script>
</body>
</html>