Spaces:
Running
Running
Update index.html
Browse files- index.html +36 -25
index.html
CHANGED
|
@@ -14,13 +14,13 @@
|
|
| 14 |
color: #2C3E50;
|
| 15 |
}
|
| 16 |
.status-ok {
|
| 17 |
-
border-left-color: #2ECC71;
|
| 18 |
}
|
| 19 |
.status-warning {
|
| 20 |
-
border-left-color: #F1C40F;
|
| 21 |
}
|
| 22 |
.status-critical {
|
| 23 |
-
border-left-color: #E74C3C;
|
| 24 |
}
|
| 25 |
.progress-ok {
|
| 26 |
background-color: #2ECC71;
|
|
@@ -49,7 +49,7 @@
|
|
| 49 |
<i class="fas fa-satellite-dish mr-2 text-blue-500"></i>
|
| 50 |
Antenna Stock Tracker
|
| 51 |
</h1>
|
| 52 |
-
<button id="reset-btn" class="px-3 py-1 text-sm border border-gray-300 rounded text-gray-600 hover:text-red-500 hover:border-red-300 transition-colors">
|
| 53 |
<i class="fas fa-redo mr-1"></i> Reset Data
|
| 54 |
</button>
|
| 55 |
</div>
|
|
@@ -63,7 +63,8 @@
|
|
| 63 |
<div class="bg-white rounded-lg shadow-md p-6">
|
| 64 |
<h2 class="text-lg font-semibold mb-4">Production Input</h2>
|
| 65 |
<div id="product-cards" class="space-y-4">
|
| 66 |
-
|
|
|
|
| 67 |
<h3 class="font-medium text-gray-700 mb-3">Yagi-Uda Model 5</h3>
|
| 68 |
<div class="flex items-center space-x-3">
|
| 69 |
<input type="number" min="0" class="input-number w-20 px-3 py-2 border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500" value="0">
|
|
@@ -72,7 +73,7 @@
|
|
| 72 |
</button>
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
-
<div class="product-card bg-white rounded-lg shadow p-4 border border-gray-100">
|
| 76 |
<h3 class="font-medium text-gray-700 mb-3">Basic Dipole Antenna</h3>
|
| 77 |
<div class="flex items-center space-x-3">
|
| 78 |
<input type="number" min="0" class="input-number w-20 px-3 py-2 border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500" value="0">
|
|
@@ -90,44 +91,45 @@
|
|
| 90 |
<div class="bg-white rounded-lg shadow-md p-6">
|
| 91 |
<h2 class="text-lg font-semibold mb-4">Material Inventory</h2>
|
| 92 |
<div id="material-cards" class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 93 |
-
|
|
|
|
| 94 |
<div class="flex justify-between items-start mb-2">
|
| 95 |
<h3 class="font-medium text-gray-700">5mm Copper Wire</h3>
|
| 96 |
-
<span class="text-sm text-gray-500">meters</span>
|
| 97 |
</div>
|
| 98 |
-
<div class="text-2xl font-bold mb-4">
|
| 99 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 100 |
-
<div class="
|
| 101 |
</div>
|
| 102 |
</div>
|
| 103 |
-
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4
|
| 104 |
<div class="flex justify-between items-start mb-2">
|
| 105 |
<h3 class="font-medium text-gray-700">RG-58 Coaxial Cable</h3>
|
| 106 |
-
<span class="text-sm text-gray-500">meters</span>
|
| 107 |
</div>
|
| 108 |
-
<div class="text-2xl font-bold mb-4">
|
| 109 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 110 |
-
<div class="
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
-
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4
|
| 114 |
<div class="flex justify-between items-start mb-2">
|
| 115 |
<h3 class="font-medium text-gray-700">N-Type Connector</h3>
|
| 116 |
-
<span class="text-sm text-gray-500">units</span>
|
| 117 |
</div>
|
| 118 |
-
<div class="text-2xl font-bold mb-4">
|
| 119 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 120 |
-
<div class="
|
| 121 |
</div>
|
| 122 |
</div>
|
| 123 |
-
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4
|
| 124 |
<div class="flex justify-between items-start mb-2">
|
| 125 |
<h3 class="font-medium text-gray-700">Plastic Insulator</h3>
|
| 126 |
-
<span class="text-sm text-gray-500">units</span>
|
| 127 |
</div>
|
| 128 |
-
<div class="text-2xl font-bold mb-4">
|
| 129 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 130 |
-
<div class="
|
| 131 |
</div>
|
| 132 |
</div>
|
| 133 |
</div>
|
|
@@ -138,7 +140,16 @@
|
|
| 138 |
|
| 139 |
<!-- Reset Confirmation Modal -->
|
| 140 |
<div id="reset-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 141 |
-
<div class="bg-white rounded-lg p-6 max-w-
|
| 142 |
-
<h3 class="text-lg font-
|
| 143 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
</html>
|
|
|
|
| 14 |
color: #2C3E50;
|
| 15 |
}
|
| 16 |
.status-ok {
|
| 17 |
+
border-left-color: #2ECC71; /* green */
|
| 18 |
}
|
| 19 |
.status-warning {
|
| 20 |
+
border-left-color: #F1C40F; /* yellow */
|
| 21 |
}
|
| 22 |
.status-critical {
|
| 23 |
+
border-left-color: #E74C3C; /* red */
|
| 24 |
}
|
| 25 |
.progress-ok {
|
| 26 |
background-color: #2ECC71;
|
|
|
|
| 49 |
<i class="fas fa-satellite-dish mr-2 text-blue-500"></i>
|
| 50 |
Antenna Stock Tracker
|
| 51 |
</h1>
|
| 52 |
+
<button id="show-reset-modal-btn" class="px-3 py-1 text-sm border border-gray-300 rounded text-gray-600 hover:text-red-500 hover:border-red-300 transition-colors">
|
| 53 |
<i class="fas fa-redo mr-1"></i> Reset Data
|
| 54 |
</button>
|
| 55 |
</div>
|
|
|
|
| 63 |
<div class="bg-white rounded-lg shadow-md p-6">
|
| 64 |
<h2 class="text-lg font-semibold mb-4">Production Input</h2>
|
| 65 |
<div id="product-cards" class="space-y-4">
|
| 66 |
+
<!-- Product cards will be dynamically populated or targeted -->
|
| 67 |
+
<div class="product-card bg-white rounded-lg shadow p-4 border border-gray-100" data-product-name="Yagi-Uda Model 5">
|
| 68 |
<h3 class="font-medium text-gray-700 mb-3">Yagi-Uda Model 5</h3>
|
| 69 |
<div class="flex items-center space-x-3">
|
| 70 |
<input type="number" min="0" class="input-number w-20 px-3 py-2 border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500" value="0">
|
|
|
|
| 73 |
</button>
|
| 74 |
</div>
|
| 75 |
</div>
|
| 76 |
+
<div class="product-card bg-white rounded-lg shadow p-4 border border-gray-100" data-product-name="Basic Dipole Antenna">
|
| 77 |
<h3 class="font-medium text-gray-700 mb-3">Basic Dipole Antenna</h3>
|
| 78 |
<div class="flex items-center space-x-3">
|
| 79 |
<input type="number" min="0" class="input-number w-20 px-3 py-2 border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500" value="0">
|
|
|
|
| 91 |
<div class="bg-white rounded-lg shadow-md p-6">
|
| 92 |
<h2 class="text-lg font-semibold mb-4">Material Inventory</h2>
|
| 93 |
<div id="material-cards" class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 94 |
+
<!-- Material cards will be dynamically populated or targeted -->
|
| 95 |
+
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4" data-material-name="5mm Copper Wire">
|
| 96 |
<div class="flex justify-between items-start mb-2">
|
| 97 |
<h3 class="font-medium text-gray-700">5mm Copper Wire</h3>
|
| 98 |
+
<span class="text-sm text-gray-500 unit">meters</span>
|
| 99 |
</div>
|
| 100 |
+
<div class="text-2xl font-bold mb-4 current-stock">0</div>
|
| 101 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 102 |
+
<div class="h-2.5 rounded-full progress-bar" style="width: 0%"></div>
|
| 103 |
</div>
|
| 104 |
</div>
|
| 105 |
+
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4" data-material-name="RG-58 Coaxial Cable">
|
| 106 |
<div class="flex justify-between items-start mb-2">
|
| 107 |
<h3 class="font-medium text-gray-700">RG-58 Coaxial Cable</h3>
|
| 108 |
+
<span class="text-sm text-gray-500 unit">meters</span>
|
| 109 |
</div>
|
| 110 |
+
<div class="text-2xl font-bold mb-4 current-stock">0</div>
|
| 111 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 112 |
+
<div class="h-2.5 rounded-full progress-bar" style="width: 0%"></div>
|
| 113 |
</div>
|
| 114 |
</div>
|
| 115 |
+
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4" data-material-name="N-Type Connector">
|
| 116 |
<div class="flex justify-between items-start mb-2">
|
| 117 |
<h3 class="font-medium text-gray-700">N-Type Connector</h3>
|
| 118 |
+
<span class="text-sm text-gray-500 unit">units</span>
|
| 119 |
</div>
|
| 120 |
+
<div class="text-2xl font-bold mb-4 current-stock">0</div>
|
| 121 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 122 |
+
<div class="h-2.5 rounded-full progress-bar" style="width: 0%"></div>
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
+
<div class="material-card bg-white rounded-lg shadow p-4 border-l-4" data-material-name="Plastic Insulator">
|
| 126 |
<div class="flex justify-between items-start mb-2">
|
| 127 |
<h3 class="font-medium text-gray-700">Plastic Insulator</h3>
|
| 128 |
+
<span class="text-sm text-gray-500 unit">units</span>
|
| 129 |
</div>
|
| 130 |
+
<div class="text-2xl font-bold mb-4 current-stock">0</div>
|
| 131 |
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 132 |
+
<div class="h-2.5 rounded-full progress-bar" style="width: 0%"></div>
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
</div>
|
|
|
|
| 140 |
|
| 141 |
<!-- Reset Confirmation Modal -->
|
| 142 |
<div id="reset-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 143 |
+
<div class="bg-white rounded-lg p-6 max-w-sm w-full mx-4 shadow-xl">
|
| 144 |
+
<h3 class="text-lg font-semibold mb-2">Confirm Reset</h3>
|
| 145 |
+
<p class="text-gray-600 mb-4">Are you sure you want to reset all inventory data? This action cannot be undone.</p>
|
| 146 |
+
<div class="flex justify-end space-x-2">
|
| 147 |
+
<button id="cancel-reset-btn" class="px-4 py-2 text-sm bg-gray-200 rounded hover:bg-gray-300">Cancel</button>
|
| 148 |
+
<button id="confirm-reset-btn" class="px-4 py-2 text-sm bg-red-500 text-white rounded hover:bg-red-600">Reset Data</button>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<script src="app.js" defer></script>
|
| 154 |
+
</body>
|
| 155 |
</html>
|