alterzick commited on
Commit
2e7cf5e
·
verified ·
1 Parent(s): 36d29bb

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +977 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: V3
3
- emoji: 🌍
4
- colorFrom: indigo
5
- colorTo: yellow
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: v3
3
+ emoji: ⚛️
4
+ colorFrom: gray
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - QwenSite
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="id">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
+ <title>Analisis Akar Masalah Profesional</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
9
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet" />
10
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
11
+ <style>
12
+ body {
13
+ font-family: 'Inter', sans-serif;
14
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
15
+ }
16
+ .sidebar {
17
+ transition: all 0.3s ease;
18
+ }
19
+ .main-content {
20
+ transition: margin-left 0.3s ease;
21
+ }
22
+ .chart-container {
23
+ background: white;
24
+ border-radius: 12px;
25
+ padding: 20px;
26
+ box-shadow: 0 10px 30px rgba(0,0,0,0.08);
27
+ }
28
+ .step-indicator {
29
+ width: 30px;
30
+ height: 30px;
31
+ background: #3B82F6;
32
+ border-radius: 50%;
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ color: white;
37
+ font-weight: bold;
38
+ font-size: 0.875rem;
39
+ }
40
+ .step-indicator.green {
41
+ background: #10B981;
42
+ }
43
+ .step-indicator.orange {
44
+ background: #F59E0B;
45
+ }
46
+ .step-indicator.purple {
47
+ background: #8B5CF6;
48
+ }
49
+ .method-option {
50
+ transition: all 0.2s ease;
51
+ }
52
+ .method-option:hover {
53
+ transform: translateY(-2px);
54
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
55
+ }
56
+ .modal {
57
+ display: none;
58
+ position: fixed;
59
+ z-index: 1000;
60
+ left: 0;
61
+ top: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ overflow: auto;
65
+ background-color: rgba(0,0,0,0.5);
66
+ backdrop-filter: blur(5px);
67
+ }
68
+ .modal-content {
69
+ animation: modalFadeIn 0.3s ease-out;
70
+ }
71
+ @keyframes modalFadeIn {
72
+ from {
73
+ opacity: 0;
74
+ transform: translateY(-30px);
75
+ }
76
+ to {
77
+ opacity: 1;
78
+ transform: translateY(0);
79
+ }
80
+ }
81
+ .stat-card {
82
+ transition: all 0.3s ease;
83
+ }
84
+ .stat-card:hover {
85
+ transform: translateY(-5px);
86
+ }
87
+ </style>
88
+ </head>
89
+ <body class="bg-gray-50 min-h-screen">
90
+ <div class="flex">
91
+ <!-- Sidebar -->
92
+ <div class="sidebar w-64 bg-gradient-to-b from-blue-900 to-blue-700 text-white fixed h-full z-10">
93
+ <div class="p-6">
94
+ <h1 class="text-2xl font-bold mb-8 flex items-center">
95
+ <i class="fas fa-screwdriver-wrench mr-2"></i>
96
+ Analisis RCA
97
+ </h1>
98
+ <nav class="space-y-2">
99
+ <a href="#" class="flex items-center p-3 rounded-lg bg-blue-600 shadow-md transition-all duration-300" onclick="showSection('dashboard')">
100
+ <i class="fas fa-tachometer-alt mr-3"></i> Dashboard
101
+ </a>
102
+ <a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-600 transition-all duration-300" onclick="showSection('input')">
103
+ <i class="fas fa-plus-circle mr-3"></i> Input Masalah
104
+ </a>
105
+ <a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-600 transition-all duration-300" onclick="showSection('record')">
106
+ <i class="fas fa-clipboard-list mr-3"></i> Rekam Data
107
+ </a>
108
+ <a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-600 transition-all duration-300" onclick="showSection('history')">
109
+ <i class="fas fa-history mr-3"></i> Riwayat
110
+ </a>
111
+ <a href="#" class="flex items-center p-3 rounded-lg hover:bg-blue-600 transition-all duration-300" onclick="showSection('report')">
112
+ <i class="fas fa-flag mr-3"></i> Laporan
113
+ </a>
114
+ </nav>
115
+ </div>
116
+ </div>
117
+
118
+ <!-- Main Content -->
119
+ <div class="main-content ml-64 flex-1">
120
+ <!-- Header -->
121
+ <header class="bg-white shadow-sm p-4 flex justify-between items-center">
122
+ <div class="flex items-center">
123
+ <button onclick="toggleSidebar()" class="text-gray-600 mr-4 md:hidden">
124
+ <i class="fas fa-bars text-xl"></i>
125
+ </button>
126
+ <h2 class="text-xl font-semibold text-gray-800" id="page-title">Dashboard</h2>
127
+ </div>
128
+ <div class="flex items-center space-x-4">
129
+ <div class="relative">
130
+ <input type="text" placeholder="Cari..." class="bg-gray-100 rounded-full py-2 px-4 pl-10 focus:outline-none focus:ring-2 focus:ring-blue-500 w-60 transition-all duration-300" />
131
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
132
+ </div>
133
+ <div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center text-white text-sm font-bold">
134
+ A
135
+ </div>
136
+ </div>
137
+ </header>
138
+
139
+ <!-- Dashboard Section -->
140
+ <section id="dashboard" class="p-6">
141
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
142
+ <!-- Stats Cards -->
143
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow stat-card">
144
+ <div class="flex items-center">
145
+ <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
146
+ <i class="fas fa-exclamation-triangle text-xl"></i>
147
+ </div>
148
+ <div>
149
+ <p class="text-sm text-gray-600">Masalah Terbuka</p>
150
+ <p class="text-2xl font-bold text-gray-800">12</p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow stat-card">
156
+ <div class="flex items-center">
157
+ <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
158
+ <i class="fas fa-check-circle text-xl"></i>
159
+ </div>
160
+ <div>
161
+ <p class="text-sm text-gray-600">Masalah Selesai</p>
162
+ <p class="text-2xl font-bold text-gray-800">47</p>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow stat-card">
168
+ <div class="flex items-center">
169
+ <div class="p-3 rounded-full bg-orange-100 text-orange-600 mr-4">
170
+ <i class="fas fa-chart-line text-xl"></i>
171
+ </div>
172
+ <div>
173
+ <p class="text-sm text-gray-600">Rata2 Waktu</p>
174
+ <p class="text-2xl font-bold text-gray-800">5.2 <span class="text-xs">hari</span></p>
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow stat-card">
180
+ <div class="flex items-center">
181
+ <div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
182
+ <i class="fas fa-users text-xl"></i>
183
+ </div>
184
+ <div>
185
+ <p class="text-sm text-gray-600">Analisis Aktif</p>
186
+ <p class="text-2xl font-bold text-gray-800">8</p>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Charts -->
193
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
194
+ <div class="chart-container">
195
+ <h3 class="text-lg font-semibold mb-4">Distribusi Metode Analisis</h3>
196
+ <canvas id="methodChart" height="300"></canvas>
197
+ </div>
198
+
199
+ <div class="chart-container">
200
+ <h3 class="text-lg font-semibold mb-4">Tren Masalah Bulanan</h3>
201
+ <canvas id="trendChart" height="300"></canvas>
202
+ </div>
203
+ </div>
204
+
205
+ <!-- Recent Problems -->
206
+ <div class="bg-white rounded-xl shadow-md p-6">
207
+ <div class="flex justify-between items-center mb-6">
208
+ <h3 class="text-lg font-semibold">Masalah Terbaru</h3>
209
+ <button class="text-blue-600 hover:text-blue-800 text-sm font-medium transition-colors">Lihat Semua</button>
210
+ </div>
211
+ <div class="overflow-x-auto">
212
+ <table class="w-full">
213
+ <thead>
214
+ <tr class="text-left text-gray-500 text-sm">
215
+ <th class="pb-4 font-medium">No. Masalah</th>
216
+ <th class="pb-4 font-medium">Masalah</th>
217
+ <th class="pb-4 font-medium">Metode</th>
218
+ <th class="pb-4 font-medium">Status</th>
219
+ <th class="pb-4 font-medium">Tanggal</th>
220
+ </tr>
221
+ </thead>
222
+ <tbody>
223
+ <tr class="border-t border-gray-100">
224
+ <td class="py-4">RCA-001</td>
225
+ <td>Mesin produksi mati mendadak</td>
226
+ <td>5 Why</td>
227
+ <td><span class="px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs font-medium">Dalam Proses</span></td>
228
+ <td>12 Jun 2023</td>
229
+ </tr>
230
+ <tr class="border-t border-gray-100">
231
+ <td class="py-4">RCA-002</td>
232
+ <td>Kualitas produk menurun</td>
233
+ <td>Fishbone</td>
234
+ <td><span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-xs font-medium">Selesai</span></td>
235
+ <td>10 Jun 2023</td>
236
+ </tr>
237
+ <tr class="border-t border-gray-100">
238
+ <td class="py-4">RCA-003</td>
239
+ <td>Delay pengiriman</td>
240
+ <td>Pareto</td>
241
+ <td><span class="px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium">Baru</span></td>
242
+ <td>08 Jun 2023</td>
243
+ </tr>
244
+ </tbody>
245
+ </table>
246
+ </div>
247
+ </div>
248
+ </section>
249
+
250
+ <!-- Input Section -->
251
+ <section id="input" class="p-6 hidden">
252
+ <div class="bg-white rounded-xl shadow-md p-6">
253
+ <h2 class="text-xl font-semibold mb-6 flex items-center">
254
+ <i class="fas fa-plus-circle mr-2 text-blue-600"></i> Input Masalah Baru
255
+ </h2>
256
+
257
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
258
+ <!-- Problem Details -->
259
+ <div>
260
+ <h3 class="text-lg font-medium mb-4 border-b pb-2">Detail Masalah</h3>
261
+ <form id="problemForm">
262
+ <div class="space-y-4">
263
+ <div>
264
+ <label class="block text-sm font-medium text-gray-700 mb-1">No. Referensi</label>
265
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200" placeholder="contoh: PR-001" required />
266
+ </div>
267
+ <div>
268
+ <label class="block text-sm font-medium text-gray-700 mb-1">Judul Masalah</label>
269
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200" placeholder="Deskripsi singkat masalah" required />
270
+ </div>
271
+ <div>
272
+ <label class="block text-sm font-medium text-gray-700 mb-1">Deskripsi Lengkap</label>
273
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 h-32" placeholder="Jelaskan masalah secara detail..."></textarea>
274
+ </div>
275
+ <div class="grid grid-cols-2 gap-4">
276
+ <div>
277
+ <label class="block text-sm font-medium text-gray-700 mb-1">Tanggal Kejadian</label>
278
+ <input type="date" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200" required />
279
+ </div>
280
+ <div>
281
+ <label class="block text-sm font-medium text-gray-700 mb-1">Prioritas</label>
282
+ <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200">
283
+ <option>Rendah</option>
284
+ <option>Sedang</option>
285
+ <option>Tinggi</option>
286
+ <option>Kritis</option>
287
+ </select>
288
+ </div>
289
+ </div>
290
+ <div>
291
+ <label class="block text-sm font-medium text-gray-700 mb-1">Departemen</label>
292
+ <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200">
293
+ <option>Produksi</option>
294
+ <option>Quality Control</option>
295
+ <option>Serikat Pekerja</option>
296
+ <option>Logistik</option>
297
+ <option>IT</option>
298
+ </select>
299
+ </div>
300
+ </div>
301
+ </form>
302
+ </div>
303
+
304
+ <!-- Analysis Method Selection -->
305
+ <div>
306
+ <h3 class="text-lg font-medium mb-4 border-b pb-2">Metode Analisis</h3>
307
+ <div class="space-y-3">
308
+ <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow cursor-pointer method-option" data-method="5-why">
309
+ <div class="flex items-start">
310
+ <div class="step-indicator mr-3">1</div>
311
+ <div class="flex-1">
312
+ <h4 class="font-medium text-gray-800">5 Why (Lima Mengapa)</h4>
313
+ <p class="text-sm text-gray-600 mt-1">Teknik bertanya berulang untuk mencari akar penyebab dengan menanyakan "mengapa" sebanyak 5 kali.</p>
314
+ </div>
315
+ </div>
316
+ </div>
317
+
318
+ <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow cursor-pointer method-option" data-method="fishbone">
319
+ <div class="flex items-start">
320
+ <div class="step-indicator green mr-3">2</div>
321
+ <div class="flex-1">
322
+ <h4 class="font-medium text-gray-800">Fishbone (Diagram Tulang Ikan)</h4>
323
+ <p class="text-sm text-gray-600 mt-1">Diagram klasifikasi penyebab masalah ke dalam kategori seperti manusia, mesin, material, dll.</p>
324
+ </div>
325
+ </div>
326
+ </div>
327
+
328
+ <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow cursor-pointer method-option" data-method="pareto">
329
+ <div class="flex items-start">
330
+ <div class="step-indicator orange mr-3">3</div>
331
+ <div class="flex-1">
332
+ <h4 class="font-medium text-gray-800">Pareto Analysis</h4>
333
+ <p class="text-sm text-gray-600 mt-1">Prinsip 80/20 untuk mengidentifikasi 20% penyebab yang menyebabkan 80% masalah.</p>
334
+ </div>
335
+ </div>
336
+ </div>
337
+
338
+ <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow cursor-pointer method-option" data-method="fault-tree">
339
+ <div class="flex items-start">
340
+ <div class="step-indicator purple mr-3">4</div>
341
+ <div class="flex-1">
342
+ <h4 class="font-medium text-gray-800">Fault Tree Analysis</h4>
343
+ <p class="text-sm text-gray-600 mt-1">Analisis berbasis logika untuk menentukan penyebab kegagalan sistem secara hierarkis.</p>
344
+ </div>
345
+ </div>
346
+ </div>
347
+ </div>
348
+
349
+ <div class="mt-6 pt-6 border-t">
350
+ <button class="w-full bg-blue-600 text-white py-3 rounded-lg hover:bg-blue-700 transition-colors font-medium flex items-center justify-center">
351
+ <i class="fas fa-paper-plane mr-2"></i> Mulai Analisis
352
+ </button>
353
+ </div>
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </section>
358
+
359
+ <!-- Record Section -->
360
+ <section id="record" class="p-6 hidden">
361
+ <div class="bg-white rounded-xl shadow-md p-6">
362
+ <div class="flex justify-between items-center mb-6">
363
+ <h2 class="text-xl font-semibold">Rekam Data Analisis</h2>
364
+ <div class="flex space-x-3">
365
+ <select id="filterMethod" class="p-2 border border-gray-300 rounded-lg text-sm">
366
+ <option value="">Semua Metode</option>
367
+ <option value="5-why">5 Why</option>
368
+ <option value="fishbone">Fishbone</option>
369
+ <option value="pareto">Pareto</option>
370
+ <option value="fault-tree">Fault Tree</option>
371
+ </select>
372
+ <input type="text" id="filterNo" placeholder="No. Ref" class="p-2 border border-gray-300 rounded-lg text-sm w-32" />
373
+ </div>
374
+ </div>
375
+
376
+ <!-- 5-Why Method Recording -->
377
+ <div id="method-5-why" class="hidden">
378
+ <div class="border-l-4 border-blue-500 pl-6 mb-6">
379
+ <h3 class="text-lg font-medium text-blue-800 mb-4">Metode 5 Why - Lima Mengapa</h3>
380
+ <p class="text-gray-600 mb-6">Metode ini menyelesaikan masalah dengan terus-menerus menanyakan "Mengapa?" hingga mencapai akar penyebab.</p>
381
+
382
+ <div class="space-y-4">
383
+ <div class="bg-blue-50 p-4 rounded-lg">
384
+ <label class="block text-sm font-medium text-gray-700 mb-2">Mengapa 1: Apa yang terjadi?</label>
385
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200" placeholder="Contoh: Mesin berhenti bekerja" />
386
+ </div>
387
+ <div class="bg-blue-50 p-4 rounded-lg">
388
+ <label class="block text-sm font-medium text-gray-700 mb-2">Mengapa 2: Mengapa kondisi tersebut terjadi?</label>
389
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200" placeholder="Contoh: Karena motor listrik rusak" />
390
+ </div>
391
+ <div class="bg-blue-50 p-4 rounded-lg">
392
+ <label class="block text-sm font-medium text-gray-700 mb-2">Mengapa 3: Mengapa komponen tersebut gagal?</label>
393
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200" placeholder="Contoh: Karena kelebihan beban" />
394
+ </div>
395
+ <div class="bg-blue-50 p-4 rounded-lg">
396
+ <label class="block text-sm font-medium text-gray-700 mb-2">Mengapa 4: Mengapa terjadi kelebihan beban?</label>
397
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200" placeholder="Contoh: Karena pelumasan tidak memadai" />
398
+ </div>
399
+ <div class="bg-blue-50 p-4 rounded-lg">
400
+ <label class="block text-sm font-medium text-gray-700 mb-2">Mengapa 5: Mengapa pelumas tidak memadai?</label>
401
+ <input type="text" class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200" placeholder="Contoh: Karena jadwal perawatan tidak diikuti" />
402
+ </div>
403
+ </div>
404
+
405
+ <div class="mt-6 bg-green-50 p-4 rounded-lg">
406
+ <h4 class="font-medium text-green-800 mb-2">Akar Penyebab (Root Cause)</h4>
407
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-20" placeholder="Kesimpulan akar penyebab dari 5 pertanyaan mengapa..."></textarea>
408
+ </div>
409
+
410
+ <div class="mt-6 bg-yellow-50 p-4 rounded-lg">
411
+ <h4 class="font-medium text-yellow-800 mb-2">Tindakan Korektif & Pencegahan</h4>
412
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-20" placeholder="Langkah-langkah yang akan diambil untuk memperbaiki masalah dan mencegah terulang..."></textarea>
413
+ </div>
414
+
415
+ <div class="mt-6 flex justify-end">
416
+ <button class="bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors">
417
+ Simpan Analisis
418
+ </button>
419
+ </div>
420
+ </div>
421
+ </div>
422
+
423
+ <!-- Fishbone Method Recording -->
424
+ <div id="method-fishbone" class="hidden">
425
+ <div class="border-l-4 border-green-500 pl-6 mb-6">
426
+ <h3 class="text-lg font-medium text-green-800 mb-4">Metode Fishbone - Diagram Tulang Ikan</h3>
427
+ <p class="text-gray-600 mb-6">Metode ini mengklasifikasikan penyebab masalah ke dalam beberapa kategori utama.</p>
428
+
429
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
430
+ <div class="bg-green-50 p-4 rounded-lg">
431
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
432
+ <i class="fas fa-user mr-2"></i> Manusia (Man)
433
+ </h4>
434
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait SDM: pelatihan, motivasi, keterampilan, dll..."></textarea>
435
+ </div>
436
+
437
+ <div class="bg-green-50 p-4 rounded-lg">
438
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
439
+ <i class="fas fa-cogs mr-2"></i> Mesin (Machine)
440
+ </h4>
441
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait peralatan: perawatan, usia, desain, dll..."></textarea>
442
+ </div>
443
+
444
+ <div class="bg-green-50 p-4 rounded-lg">
445
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
446
+ <i class="fas fa-box mr-2"></i> Material (Material)
447
+ </h4>
448
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait bahan: kualitas, supplier, spesifikasi, dll..."></textarea>
449
+ </div>
450
+
451
+ <div class="bg-green-50 p-4 rounded-lg">
452
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
453
+ <i class="fas fa-thermometer-half mr-2"></i> Metode (Method)
454
+ </h4>
455
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait proses: prosedur, standar, dokumentasi, dll..."></textarea>
456
+ </div>
457
+
458
+ <div class="bg-green-50 p-4 rounded-lg">
459
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
460
+ <i class="fas fa-warehouse mr-2"></i> Lingkungan (Environment)
461
+ </h4>
462
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait lingkungan: suhu, kebersihan, pencahayaan, kebisingan, dll..."></textarea>
463
+ </div>
464
+
465
+ <div class="bg-green-50 p-4 rounded-lg">
466
+ <h4 class="font-medium text-green-800 mb-3 flex items-center">
467
+ <i class="fas fa-clock mr-2"></i> Pengukuran (Measurement)
468
+ </h4>
469
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-32" placeholder="Faktor-faktor terkait pengukuran: akurasi, kalibrasi, metode pengujian, dll..."></textarea>
470
+ </div>
471
+ </div>
472
+
473
+ <div class="mt-6 bg-green-50 p-4 rounded-lg">
474
+ <h4 class="font-medium text-green-800 mb-2">Akar Penyebab Utama</h4>
475
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-20" placeholder="Identifikasi akar penyebab utama berdasarkan analisis fishbone..."></textarea>
476
+ </div>
477
+
478
+ <div class="mt-6 bg-yellow-50 p-4 rounded-lg">
479
+ <h4 class="font-medium text-yellow-800 mb-2">Rencana Tindakan</h4>
480
+ <textarea class="w-full p-3 border border-gray-300 rounded-lg transition-all duration-200 h-20" placeholder="Langkah-langkah perbaikan dan pencegahan..."></textarea>
481
+ </div>
482
+
483
+ <div class="mt-6 flex justify-end">
484
+ <button class="bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition-colors">
485
+ Simpan Analisis
486
+ </button>
487
+ </div>
488
+ </div>
489
+ </div>
490
+
491
+ <!-- Default Message -->
492
+ <div id="method-default" class="text-center py-12 text-gray-500">
493
+ <i class="fas fa-chart-network text-6xl mb-4 opacity-30"></i>
494
+ <h3 class="text-xl font-medium mb-2">Pilih Metode Analisis</h3>
495
+ <p>Pilih metode analisis dari sidebar atau daftar masalah untuk memulai rekaman data.</p>
496
+ </div>
497
+ </div>
498
+ </section>
499
+
500
+ <!-- History Section -->
501
+ <section id="history" class="p-6 hidden">
502
+ <div class="bg-white rounded-xl shadow-md p-6">
503
+ <div class="flex justify-between items-center mb-6">
504
+ <h2 class="text-xl font-semibold">Riwayat Analisis</h2>
505
+ <div class="flex space-x-3">
506
+ <select id="historyMethodFilter" class="p-2 border border-gray-300 rounded-lg text-sm">
507
+ <option value="">Semua Metode</option>
508
+ <option value="5-why">5 Why</option>
509
+ <option value="fishbone">Fishbone</option>
510
+ <option value="pareto">Pareto</option>
511
+ <option value="fault-tree">Fault Tree</option>
512
+ </select>
513
+ <select id="historyStatusFilter" class="p-2 border border-gray-300 rounded-lg text-sm">
514
+ <option value="">Semua Status</option>
515
+ <option value="baru">Baru</option>
516
+ <option value="dalam-proses">Dalam Proses</option>
517
+ <option value="selesai">Selesai</option>
518
+ </select>
519
+ <input type="text" id="historyNoFilter" placeholder="No. Ref" class="p-2 border border-gray-300 rounded-lg text-sm w-32" />
520
+ </div>
521
+ </div>
522
+
523
+ <div class="overflow-x-auto">
524
+ <table class="w-full">
525
+ <thead>
526
+ <tr class="text-left text-gray-500 text-sm border-b">
527
+ <th class="pb-3 font-medium">No. Masalah</th>
528
+ <th class="pb-3 font-medium">Masalah</th>
529
+ <th class="pb-3 font-medium">Metode</th>
530
+ <th class="pb-3 font-medium">Status</th>
531
+ <th class="pb-3 font-medium">Tanggal</th>
532
+ <th class="pb-3 font-medium">Dibuat Oleh</th>
533
+ <th class="pb-3 font-medium">Aksi</th>
534
+ </tr>
535
+ </thead>
536
+ <tbody id="historyTableBody">
537
+ <!-- History records will be dynamically inserted here -->
538
+ <tr class="border-t border-gray-100">
539
+ <td class="py-4">RCA-001</td>
540
+ <td>Mesin produksi mati mendadak</td>
541
+ <td>5 Why</td>
542
+ <td><span class="px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs font-medium">Dalam Proses</span></td>
543
+ <td>12 Jun 2023</td>
544
+ <td>Budi Santoso</td>
545
+ <td>
546
+ <button class="text-blue-600 hover:text-blue-800 text-sm transition-colors" onclick="viewDetails('RCA-001')">Lihat</button>
547
+ </td>
548
+ </tr>
549
+ <tr class="border-t border-gray-100">
550
+ <td class="py-4">RCA-002</td>
551
+ <td>Kualitas produk menurun</td>
552
+ <td>Fishbone</td>
553
+ <td><span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-xs font-medium">Selesai</span></td>
554
+ <td>10 Jun 2023</td>
555
+ <td>Dewi Lestari</td>
556
+ <td>
557
+ <button class="text-blue-600 hover:text-blue-800 text-sm transition-colors" onclick="viewDetails('RCA-002')">Lihat</button>
558
+ </td>
559
+ </tr>
560
+ <tr class="border-t border-gray-100">
561
+ <td class="py-4">RCA-003</td>
562
+ <td>Delay pengiriman</td>
563
+ <td>Pareto</td>
564
+ <td><span class="px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium">Baru</span></td>
565
+ <td>08 Jun 2023</td>
566
+ <td>Agus Makmur</td>
567
+ <td>
568
+ <button class="text-blue-600 hover:text-blue-800 text-sm transition-colors" onclick="viewDetails('RCA-003')">Lihat</button>
569
+ </td>
570
+ </tr>
571
+ <tr class="border-t border-gray-100">
572
+ <td class="py-4">RCA-004</td>
573
+ <td>Kesalahan data input</td>
574
+ <td>5 Why</td>
575
+ <td><span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-xs font-medium">Selesai</span></td>
576
+ <td>05 Jun 2023</td>
577
+ <td>Siti Nurhaliza</td>
578
+ <td>
579
+ <button class="text-blue-600 hover:text-blue-800 text-sm transition-colors" onclick="viewDetails('RCA-004')">Lihat</button>
580
+ </td>
581
+ </tr>
582
+ <tr class="border-t border-gray-100">
583
+ <td class="py-4">RCA-005</td>
584
+ <td>Kebisingan mesin meningkat</td>
585
+ <td>Fishbone</td>
586
+ <td><span class="px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs font-medium">Dalam Proses</span></td>
587
+ <td>03 Jun 2023</td>
588
+ <td>Rudi Hartono</td>
589
+ <td>
590
+ <button class="text-blue-600 hover:text-blue-800 text-sm transition-colors" onclick="viewDetails('RCA-005')">Lihat</button>
591
+ </td>
592
+ </tr>
593
+ </tbody>
594
+ </table>
595
+ </div>
596
+ </div>
597
+ </section>
598
+
599
+ <!-- Report Section -->
600
+ <section id="report" class="p-6 hidden">
601
+ <div class="bg-white rounded-xl shadow-md p-6">
602
+ <h2 class="text-xl font-semibold mb-6">Laporan Analisis RCA</h2>
603
+
604
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
605
+ <div class="lg:col-span-2">
606
+ <div class="chart-container h-80">
607
+ <h3 class="text-lg font-semibold mb-4">Distribusi Status Masalah</h3>
608
+ <canvas id="statusChart" class="w-full"></canvas>
609
+ </div>
610
+ </div>
611
+ <div>
612
+ <div class="bg-gradient-to-br from-blue-500 to-blue-700 text-white p-6 rounded-xl h-full">
613
+ <h3 class="text-lg font-semibold mb-6 flex items-center">
614
+ <i class="fas fa-chart-bar mr-2"></i> Ringkasan
615
+ </h3>
616
+ <div class="space-y-4">
617
+ <div class="flex justify-between">
618
+ <span>Total Analisis</span>
619
+ <span class="font-bold">59</span>
620
+ </div>
621
+ <div class="flex justify-between">
622
+ <span>Selesai</span>
623
+ <span class="font-bold">47</span>
624
+ </div>
625
+ <div class="flex justify-between">
626
+ <span>Dalam Proses</span>
627
+ <span class="font-bold">10</span>
628
+ </div>
629
+ <div class="flex justify-between">
630
+ <span>Baru</span>
631
+ <span class="font-bold">2</span>
632
+ </div>
633
+ <div class="pt-4 border-t border-blue-400">
634
+ <div class="flex justify-between font-bold">
635
+ <span>Tingkat Penyelesaian</span>
636
+ <span>79%</span>
637
+ </div>
638
+ </div>
639
+ </div>
640
+ </div>
641
+ </div>
642
+ </div>
643
+
644
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
645
+ <div class="chart-container">
646
+ <h3 class="text-lg font-semibold mb-4">Analisis Berdasarkan Departemen</h3>
647
+ <canvas id="departmentChart" height="300"></canvas>
648
+ </div>
649
+ <div class="chart-container">
650
+ <h3 class="text-lg font-semibold mb-4">Metode yang Paling Sering Digunakan</h3>
651
+ <canvas id="popularMethodChart" height="300"></canvas>
652
+ </div>
653
+ </div>
654
+
655
+ <div class="bg-gray-50 p-6 rounded-xl">
656
+ <div class="flex justify-between items-center mb-6">
657
+ <h3 class="text-lg font-semibold">Eksport Laporan</h3>
658
+ <div class="flex space-x-3">
659
+ <button class="bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center hover:bg-blue-700 transition-colors">
660
+ <i class="fas fa-file-pdf mr-2"></i> PDF
661
+ </button>
662
+ <button class="bg-green-600 text-white px-4 py-2 rounded-lg flex items-center hover:bg-green-700 transition-colors">
663
+ <i class="fas fa-file-excel mr-2"></i> Excel
664
+ </button>
665
+ <button class="bg-gray-600 text-white px-4 py-2 rounded-lg flex items-center hover:bg-gray-700 transition-colors">
666
+ <i class="fas fa-print mr-2"></i> Print
667
+ </button>
668
+ </div>
669
+ </div>
670
+ </div>
671
+ </div>
672
+ </section>
673
+ </div>
674
+ </div>
675
+
676
+ <!-- Modal Detail -->
677
+ <div id="detailModal" class="modal">
678
+ <div class="modal-content bg-white rounded-lg shadow-lg max-w-4xl w-full m-4 md:m-auto mt-10 md:mt-20">
679
+ <div class="p-6">
680
+ <div class="flex justify-between items-center mb-6">
681
+ <h2 class="text-xl font-semibold">Detail Analisis RCA-001</h2>
682
+ <button onclick="closeModal()" class="text-gray-500 hover:text-gray-700 text-2xl">&times;</button>
683
+ </div>
684
+
685
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
686
+ <div>
687
+ <h3 class="font-medium text-gray-700 mb-2">Informasi Masalah</h3>
688
+ <p><span class="font-medium">Judul:</span> Mesin produksi mati mendadak</p>
689
+ <p><span class="font-medium">Deskripsi:</span> Mesin utama di lini produksi 2 berhenti secara tiba-tiba selama jam kerja, menyebabkan delay produksi selama 3 jam.</p>
690
+ <p><span class="font-medium">Tanggal Kejadian:</span> 12 Jun 2023</p>
691
+ <p><span class="font-medium">Departemen:</span> Produksi</p>
692
+ <p><span class="font-medium">Prioritas:</span> <span class="px-2 py-1 bg-orange-100 text-orange-800 rounded text-xs">Tinggi</span></p>
693
+ </div>
694
+ <div>
695
+ <h3 class="font-medium text-gray-700 mb-2">Informasi Analisis</h3>
696
+ <p><span class="font-medium">Metode:</span> 5 Why</p>
697
+ <p><span class="font-medium">Status:</span> <span class="px-2 py-1 bg-yellow-100 text-yellow-800 rounded text-xs">Dalam Proses</span></p>
698
+ <p><span class="font-medium">Dibuat Oleh:</span> Budi Santoso</p>
699
+ <p><span class="font-medium">Diperbarui:</span> 13 Jun 2023</p>
700
+ <p><span class="font-medium">Waktu Analisis:</span> 2.5 hari</p>
701
+ </div>
702
+ </div>
703
+
704
+ <div class="bg-blue-50 p-4 rounded-lg mb-6">
705
+ <h3 class="font-medium text-blue-800 mb-3">Analisis 5 Why</h3>
706
+ <div class="space-y-3 text-sm">
707
+ <p><span class="font-medium">Mengapa 1:</span> Mesin berhenti bekerja</p>
708
+ <p><span class="font-medium">Mengapa 2:</span> Motor listrik mengalami overheating</p>
709
+ <p><span class="font-medium">Mengapa 3:</span> Sistem pendingin tidak berfungsi dengan baik</p>
710
+ <p><span class="font-medium">Mengapa 4:</span> Pompa cairan pendingin bocor</p>
711
+ <p><span class="font-medium">Mengapa 5:</span> Gasket pompa telah aus dan tidak diganti secara teratur</p>
712
+ </div>
713
+
714
+ <div class="mt-4 p-3 bg-white rounded text-sm">
715
+ <p><span class="font-medium text-green-700">Root Cause:</span> Tidak adanya jadwal perawatan preventif yang konsisten untuk sistem pendingin mesin.</p>
716
+ </div>
717
+ </div>
718
+
719
+ <div class="flex justify-end">
720
+ <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors">
721
+ Cetak Detail
722
+ </button>
723
+ </div>
724
+ </div>
725
+ </div>
726
+ </div>
727
+
728
+ <script>
729
+ // Initialize charts
730
+ document.addEventListener('DOMContentLoaded', function() {
731
+ // Method Chart
732
+ new Chart(document.getElementById('methodChart'), {
733
+ type: 'doughnut',
734
+ data: {
735
+ labels: ['5 Why', 'Fishbone', 'Pareto', 'Fault Tree'],
736
+ datasets: [{
737
+ data: [35, 28, 15, 8],
738
+ backgroundColor: ['#3B82F6', '#10B981', '#F59E0B', '#8B5CF6'],
739
+ borderWidth: 0
740
+ }]
741
+ },
742
+ options: {
743
+ responsive: true,
744
+ plugins: {
745
+ legend: {
746
+ position: 'bottom'
747
+ }
748
+ }
749
+ }
750
+ });
751
+
752
+ // Trend Chart
753
+ new Chart(document.getElementById('trendChart'), {
754
+ type: 'line',
755
+ data: {
756
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun'],
757
+ datasets: [{
758
+ label: 'Jumlah Masalah',
759
+ data: [15, 12, 18, 14, 16, 12],
760
+ borderColor: '#3B82F6',
761
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
762
+ tension: 0.4,
763
+ fill: true
764
+ }]
765
+ },
766
+ options: {
767
+ responsive: true,
768
+ plugins: {
769
+ legend: {
770
+ display: false
771
+ }
772
+ },
773
+ scales: {
774
+ y: {
775
+ beginAtZero: true,
776
+ ticks: {
777
+ stepSize: 5
778
+ }
779
+ }
780
+ }
781
+ }
782
+ });
783
+
784
+ // Status Chart
785
+ new Chart(document.getElementById('statusChart'), {
786
+ type: 'bar',
787
+ data: {
788
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun'],
789
+ datasets: [
790
+ {
791
+ label: 'Selesai',
792
+ data: [6, 8, 7, 9, 8, 9],
793
+ backgroundColor: '#10B981'
794
+ },
795
+ {
796
+ label: 'Dalam Proses',
797
+ data: [3, 2, 3, 2, 4, 3],
798
+ backgroundColor: '#F59E0B'
799
+ },
800
+ {
801
+ label: 'Baru',
802
+ data: [1, 1, 0, 1, 0, 0],
803
+ backgroundColor: '#EF4444'
804
+ }
805
+ ]
806
+ },
807
+ options: {
808
+ responsive: true,
809
+ plugins: {
810
+ legend: {
811
+ position: 'top'
812
+ }
813
+ },
814
+ scales: {
815
+ x: {
816
+ grid: {
817
+ display: false
818
+ }
819
+ }
820
+ }
821
+ }
822
+ });
823
+
824
+ // Department Chart
825
+ new Chart(document.getElementById('departmentChart'), {
826
+ type: 'pie',
827
+ data: {
828
+ labels: ['Produksi', 'Quality Control', 'Logistik', 'IT', 'HR'],
829
+ datasets: [{
830
+ data: [42, 15, 8, 6, 3],
831
+ backgroundColor: ['#3B82F6', '#10B981', '#F59E0B', '#8B5CF6', '#EC4899'],
832
+ borderWidth: 0
833
+ }]
834
+ },
835
+ options: {
836
+ responsive: true,
837
+ plugins: {
838
+ legend: {
839
+ position: 'right'
840
+ }
841
+ }
842
+ }
843
+ });
844
+
845
+ // Popular Method Chart
846
+ new Chart(document.getElementById('popularMethodChart'), {
847
+ type: 'bar',
848
+ data: {
849
+ labels: ['5 Why', 'Fishbone', 'Pareto', 'Fault Tree'],
850
+ datasets: [{
851
+ data: [35, 28, 15, 8],
852
+ backgroundColor: '#3B82F6'
853
+ }]
854
+ },
855
+ options: {
856
+ responsive: true,
857
+ indexAxis: 'y',
858
+ plugins: {
859
+ legend: {
860
+ display: false
861
+ }
862
+ },
863
+ scales: {
864
+ x: {
865
+ beginAtZero: true,
866
+ ticks: {
867
+ stepSize: 10
868
+ }
869
+ }
870
+ }
871
+ }
872
+ });
873
+
874
+ // Initialize method selection
875
+ document.querySelectorAll('.method-option').forEach(option => {
876
+ option.addEventListener('click', function() {
877
+ document.querySelectorAll('.method-option').forEach(el => {
878
+ el.classList.remove('ring-2', 'ring-blue-300', 'bg-blue-50');
879
+ });
880
+ this.classList.add('ring-2', 'ring-blue-300', 'bg-blue-50');
881
+ });
882
+ });
883
+
884
+ // Initialize record method selection
885
+ document.getElementById('filterMethod').addEventListener('change', function() {
886
+ // Hide all method recording forms
887
+ document.querySelectorAll('#record [id^="method-"]').forEach(el => {
888
+ el.classList.add('hidden');
889
+ });
890
+
891
+ // Show the selected method
892
+ if (this.value) {
893
+ document.getElementById(`method-${this.value}`).classList.remove('hidden');
894
+ } else {
895
+ document.getElementById('method-default').classList.remove('hidden');
896
+ }
897
+ });
898
+
899
+ // Show default record view
900
+ document.getElementById('method-default').classList.remove('hidden');
901
+ });
902
+
903
+ // Toggle sidebar on mobile
904
+ function toggleSidebar() {
905
+ const sidebar = document.querySelector('.sidebar');
906
+ const mainContent = document.querySelector('.main-content');
907
+
908
+ if (window.innerWidth < 768) {
909
+ if (sidebar.classList.contains('hidden')) {
910
+ sidebar.classList.remove('hidden');
911
+ mainContent.classList.remove('ml-0');
912
+ mainContent.classList.add('ml-64');
913
+ } else {
914
+ sidebar.classList.add('hidden');
915
+ mainContent.classList.add('ml-0');
916
+ mainContent.classList.remove('ml-64');
917
+ }
918
+ }
919
+ }
920
+
921
+ // Show section
922
+ function showSection(sectionId) {
923
+ // Update page title
924
+ const titles = {
925
+ 'dashboard': 'Dashboard',
926
+ 'input': 'Input Masalah',
927
+ 'record': 'Rekam Data',
928
+ 'history': 'Riwayat',
929
+ 'report': 'Laporan'
930
+ };
931
+
932
+ document.getElementById('page-title').textContent = titles[sectionId];
933
+
934
+ // Hide all sections
935
+ document.querySelectorAll('section').forEach(section => {
936
+ section.classList.add('hidden');
937
+ });
938
+
939
+ // Show selected section
940
+ document.getElementById(sectionId).classList.remove('hidden');
941
+
942
+ // On mobile, hide sidebar after clicking
943
+ if (window.innerWidth < 768) {
944
+ document.querySelector('.sidebar').classList.add('hidden');
945
+ document.querySelector('.main-content').classList.add('ml-0');
946
+ document.querySelector('.main-content').classList.remove('ml-64');
947
+ }
948
+ }
949
+
950
+ // View details modal
951
+ function viewDetails(id) {
952
+ document.getElementById('detailModal').style.display = 'flex';
953
+ document.querySelector('#detailModal h2').textContent = `Detail Analisis ${id}`;
954
+ }
955
+
956
+ function closeModal() {
957
+ document.getElementById('detailModal').style.display = 'none';
958
+ }
959
+
960
+ // Close modal when clicking outside
961
+ window.onclick = function(event) {
962
+ const modal = document.getElementById('detailModal');
963
+ if (event.target == modal) {
964
+ modal.style.display = 'none';
965
+ }
966
+ }
967
+
968
+ // Filter history table
969
+ document.querySelectorAll('#history select, #history input').forEach(el => {
970
+ el.addEventListener('input', function() {
971
+ // In a real app, this would filter the history table
972
+ console.log('Filtering with:', this.id, this.value);
973
+ });
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-qwensite.hf.space/logo.svg" alt="qwensite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-qwensite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >QwenSite</a> - 🧬 <a href="https://enzostvs-qwensite.hf.space?remix=alterzick/v3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
977
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ tolong perbaiki codingnya