know make every one like tasks and machines not empty you the drilling companys add what need to be - Follow Up Deployment
Browse files- index.html +185 -89
index.html
CHANGED
|
@@ -22,23 +22,6 @@
|
|
| 22 |
}
|
| 23 |
}
|
| 24 |
}
|
| 25 |
-
|
| 26 |
-
// Section navigation
|
| 27 |
-
const pages = document.querySelectorAll('.dashboard-page');
|
| 28 |
-
const navBtns = document.querySelectorAll('.nav-link');
|
| 29 |
-
|
| 30 |
-
function showSection(id){
|
| 31 |
-
pages.forEach(p => p.classList.add('hidden'));
|
| 32 |
-
document.getElementById(id)?.classList.remove('hidden');
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
navBtns.forEach(btn => {
|
| 36 |
-
btn.addEventListener('click', e => {
|
| 37 |
-
e.preventDefault();
|
| 38 |
-
const section = btn.dataset.section;
|
| 39 |
-
showSection(section + 'Section');
|
| 40 |
-
});
|
| 41 |
-
});
|
| 42 |
</script>
|
| 43 |
<style>
|
| 44 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
@@ -276,8 +259,12 @@
|
|
| 276 |
</header>
|
| 277 |
|
| 278 |
<!-- Dashboard -->
|
| 279 |
-
<main class="p-6"
|
| 280 |
-
<!--
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
<div class="mb-8">
|
| 282 |
<div class="flex justify-between items-center">
|
| 283 |
<div>
|
|
@@ -1279,75 +1266,184 @@
|
|
| 1279 |
|
| 1280 |
<!-- JavaScript -->
|
| 1281 |
<script>
|
| 1282 |
-
//
|
| 1283 |
-
document.
|
| 1284 |
-
|
| 1285 |
-
|
| 1286 |
-
|
| 1287 |
-
|
| 1288 |
-
// Toggle hidden elements
|
| 1289 |
-
document.querySelectorAll('.hidden.md\\:block').forEach(el => {
|
| 1290 |
-
el.classList.toggle('md:hidden');
|
| 1291 |
-
});
|
| 1292 |
-
});
|
| 1293 |
|
| 1294 |
-
|
| 1295 |
-
|
| 1296 |
-
|
| 1297 |
-
|
| 1298 |
-
|
| 1299 |
-
|
| 1300 |
-
|
| 1301 |
-
|
| 1302 |
-
|
| 1303 |
-
|
| 1304 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1305 |
}
|
| 1306 |
-
});
|
| 1307 |
|
| 1308 |
-
|
| 1309 |
-
|
| 1310 |
-
|
| 1311 |
-
|
| 1312 |
-
|
| 1313 |
-
|
| 1314 |
-
|
| 1315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1316 |
setTimeout(() => {
|
| 1317 |
-
|
| 1318 |
-
|
| 1319 |
}, 10);
|
| 1320 |
-
}
|
| 1321 |
-
});
|
| 1322 |
|
| 1323 |
-
|
| 1324 |
-
|
| 1325 |
-
|
| 1326 |
-
|
| 1327 |
-
|
| 1328 |
-
|
| 1329 |
-
|
| 1330 |
-
}
|
| 1331 |
-
});
|
| 1332 |
|
| 1333 |
-
|
| 1334 |
-
|
| 1335 |
-
|
| 1336 |
-
|
| 1337 |
-
|
| 1338 |
-
|
| 1339 |
-
}, 300);
|
| 1340 |
-
});
|
| 1341 |
|
| 1342 |
-
|
| 1343 |
-
|
| 1344 |
-
|
| 1345 |
-
|
| 1346 |
-
|
| 1347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1348 |
|
| 1349 |
-
// Charts initialization
|
| 1350 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 1351 |
// Production chart
|
| 1352 |
const productionCtx = document.getElementById('productionChart').getContext('2d');
|
| 1353 |
new Chart(productionCtx, {
|
|
@@ -1409,18 +1505,18 @@
|
|
| 1409 |
ctx.fillRect(30, 50, 5, 5);
|
| 1410 |
ctx.fillRect(60, 60, 5, 5);
|
| 1411 |
}
|
| 1412 |
-
});
|
| 1413 |
|
| 1414 |
-
|
| 1415 |
-
|
| 1416 |
-
|
| 1417 |
-
|
| 1418 |
-
|
| 1419 |
|
| 1420 |
-
|
| 1421 |
-
|
| 1422 |
-
|
| 1423 |
-
|
|
|
|
| 1424 |
</script>
|
| 1425 |
<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=wajdi22/buuu" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1426 |
</html>
|
|
|
|
| 22 |
}
|
| 23 |
}
|
| 24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</script>
|
| 26 |
<style>
|
| 27 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
| 259 |
</header>
|
| 260 |
|
| 261 |
<!-- Dashboard -->
|
| 262 |
+
<main class="p-6">=========== SECTIONS ================== -->
|
| 263 |
+
<!-- Machines Section -->
|
| 264 |
+
<section id="machinesSection" class="dashboard-page hidden">
|
| 265 |
+
=======
|
| 266 |
+
<!-- ================== SECTIONS ================== -->
|
| 267 |
+
Page Title and Quick Actions -->
|
| 268 |
<div class="mb-8">
|
| 269 |
<div class="flex justify-between items-center">
|
| 270 |
<div>
|
|
|
|
| 1266 |
|
| 1267 |
<!-- JavaScript -->
|
| 1268 |
<script>
|
| 1269 |
+
// Wait for DOM to be fully loaded
|
| 1270 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 1271 |
+
// Section navigation
|
| 1272 |
+
const pages = document.querySelectorAll('.dashboard-page');
|
| 1273 |
+
const navBtns = document.querySelectorAll('.nav-link');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1274 |
|
| 1275 |
+
function showSection(id) {
|
| 1276 |
+
pages.forEach(p => p.classList.add('hidden'));
|
| 1277 |
+
const targetSection = document.getElementById(id + 'Section');
|
| 1278 |
+
if (targetSection) {
|
| 1279 |
+
targetSection.classList.remove('hidden');
|
| 1280 |
+
}
|
| 1281 |
+
|
| 1282 |
+
// Update active state
|
| 1283 |
+
navBtns.forEach(b => {
|
| 1284 |
+
b.classList.remove('bg-primary-100', 'text-primary', 'dark:bg-gray-700', 'dark:text-white');
|
| 1285 |
+
b.classList.add('text-gray-700', 'hover:bg-gray-100', 'dark:text-gray-300', 'dark:hover:bg-gray-700');
|
| 1286 |
+
});
|
| 1287 |
+
|
| 1288 |
+
// Find and activate the current nav button
|
| 1289 |
+
const activeBtn = document.querySelector(`.nav-link[data-section="${id}"]`);
|
| 1290 |
+
if (activeBtn) {
|
| 1291 |
+
activeBtn.classList.remove('text-gray-700', 'hover:bg-gray-100', 'dark:text-gray-300', 'dark:hover:bg-gray-700');
|
| 1292 |
+
activeBtn.classList.add('bg-primary-100', 'text-primary', 'dark:bg-gray-700', 'dark:text-white');
|
| 1293 |
+
}
|
| 1294 |
}
|
|
|
|
| 1295 |
|
| 1296 |
+
// Set default section to dashboard
|
| 1297 |
+
showSection('dashboard');
|
| 1298 |
+
|
| 1299 |
+
navBtns.forEach(btn => {
|
| 1300 |
+
btn.addEventListener('click', e => {
|
| 1301 |
+
e.preventDefault();
|
| 1302 |
+
const section = btn.dataset.section;
|
| 1303 |
+
showSection(section);
|
| 1304 |
+
});
|
| 1305 |
+
});
|
| 1306 |
+
|
| 1307 |
+
// Toggle sidebar
|
| 1308 |
+
document.getElementById('toggleSidebar').addEventListener('click', function() {
|
| 1309 |
+
const sidebar = document.querySelector('.sidebar');
|
| 1310 |
+
sidebar.classList.toggle('w-20');
|
| 1311 |
+
sidebar.classList.toggle('md:w-64');
|
| 1312 |
+
|
| 1313 |
+
// Toggle hidden elements
|
| 1314 |
+
document.querySelectorAll('.hidden.md\\:block').forEach(el => {
|
| 1315 |
+
el.classList.toggle('md:hidden');
|
| 1316 |
+
});
|
| 1317 |
+
});
|
| 1318 |
+
|
| 1319 |
+
// Toggle sound
|
| 1320 |
+
document.getElementById('soundToggle').addEventListener('click', function() {
|
| 1321 |
+
const icon = this.querySelector('i');
|
| 1322 |
+
if (icon.classList.contains('fa-volume-up')) {
|
| 1323 |
+
icon.classList.replace('fa-volume-up', 'fa-volume-mute');
|
| 1324 |
+
this.classList.add('bg-red-100', 'text-red-600');
|
| 1325 |
+
this.classList.remove('bg-gray-100', 'text-gray-600');
|
| 1326 |
+
} else {
|
| 1327 |
+
icon.classList.replace('fa-volume-mute', 'fa-volume-up');
|
| 1328 |
+
this.classList.remove('bg-red-100', 'text-red-600');
|
| 1329 |
+
this.classList.add('bg-gray-100', 'text-gray-600');
|
| 1330 |
+
}
|
| 1331 |
+
});
|
| 1332 |
+
|
| 1333 |
+
// Language selector
|
| 1334 |
+
document.getElementById('languageSelect').addEventListener('change', function() {
|
| 1335 |
+
const selectedLanguage = this.options[this.selectedIndex].text;
|
| 1336 |
+
alert(`Language changed to: ${selectedLanguage}`);
|
| 1337 |
+
// In a real app, you would implement actual language switching here
|
| 1338 |
+
// This could involve updating text content throughout the app
|
| 1339 |
+
});
|
| 1340 |
+
|
| 1341 |
+
// Notification panel
|
| 1342 |
+
document.getElementById('notificationButton').addEventListener('click', function() {
|
| 1343 |
+
const panel = document.getElementById('notificationPanel');
|
| 1344 |
+
panel.classList.toggle('hidden');
|
| 1345 |
+
panel.classList.toggle('opacity-0');
|
| 1346 |
+
panel.classList.toggle('scale-95');
|
| 1347 |
+
|
| 1348 |
+
if (!panel.classList.contains('hidden')) {
|
| 1349 |
+
setTimeout(() => {
|
| 1350 |
+
panel.classList.remove('opacity-0');
|
| 1351 |
+
panel.classList.remove('scale-95');
|
| 1352 |
+
}, 10);
|
| 1353 |
+
}
|
| 1354 |
+
});
|
| 1355 |
+
|
| 1356 |
+
// Settings modal
|
| 1357 |
+
document.getElementById('settingsButton').addEventListener('click', function() {
|
| 1358 |
+
const modal = document.getElementById('settingsModal');
|
| 1359 |
+
modal.classList.remove('hidden');
|
| 1360 |
setTimeout(() => {
|
| 1361 |
+
modal.querySelector('.transform').classList.remove('scale-95');
|
| 1362 |
+
modal.querySelector('.transform').classList.remove('opacity-0');
|
| 1363 |
}, 10);
|
| 1364 |
+
});
|
|
|
|
| 1365 |
|
| 1366 |
+
document.getElementById('closeSettings').addEventListener('click', function() {
|
| 1367 |
+
const modal = document.getElementById('settingsModal');
|
| 1368 |
+
modal.querySelector('.transform').classList.add('scale-95');
|
| 1369 |
+
modal.querySelector('.transform').classList.add('opacity-0');
|
| 1370 |
+
setTimeout(() => {
|
| 1371 |
+
modal.classList.add('hidden');
|
| 1372 |
+
}, 300);
|
| 1373 |
+
});
|
|
|
|
| 1374 |
|
| 1375 |
+
// Close modal when clicking outside
|
| 1376 |
+
document.getElementById('settingsModal').addEventListener('click', function(e) {
|
| 1377 |
+
if (e.target === this) {
|
| 1378 |
+
document.getElementById('closeSettings').click();
|
| 1379 |
+
}
|
| 1380 |
+
});
|
|
|
|
|
|
|
| 1381 |
|
| 1382 |
+
// Add machine button
|
| 1383 |
+
document.getElementById('addMachineBtn')?.addEventListener('click', function() {
|
| 1384 |
+
alert('Add machine functionality would open here');
|
| 1385 |
+
});
|
| 1386 |
+
|
| 1387 |
+
// All "New Task" buttons
|
| 1388 |
+
document.querySelectorAll('button:has(.fa-plus)').forEach(btn => {
|
| 1389 |
+
if (btn.textContent.includes('New Task')) {
|
| 1390 |
+
btn.addEventListener('click', function() {
|
| 1391 |
+
alert('New task creation would open here');
|
| 1392 |
+
});
|
| 1393 |
+
}
|
| 1394 |
+
});
|
| 1395 |
+
|
| 1396 |
+
// View details buttons
|
| 1397 |
+
document.querySelectorAll('button:has(.fa-eye)').forEach(btn => {
|
| 1398 |
+
btn.addEventListener('click', function() {
|
| 1399 |
+
alert('View details functionality would open here');
|
| 1400 |
+
});
|
| 1401 |
+
});
|
| 1402 |
+
|
| 1403 |
+
// Export buttons
|
| 1404 |
+
document.querySelectorAll('button:has(.fa-file-export), button:has(.fa-download)').forEach(btn => {
|
| 1405 |
+
btn.addEventListener('click', function() {
|
| 1406 |
+
alert('Export functionality would run here');
|
| 1407 |
+
});
|
| 1408 |
+
});
|
| 1409 |
+
|
| 1410 |
+
// Quick action buttons
|
| 1411 |
+
document.querySelectorAll('.flex-wrap.gap-3 button').forEach(btn => {
|
| 1412 |
+
btn.addEventListener('click', function() {
|
| 1413 |
+
const action = this.textContent.trim();
|
| 1414 |
+
alert(`${action} functionality would run here`);
|
| 1415 |
+
});
|
| 1416 |
+
});
|
| 1417 |
+
|
| 1418 |
+
// Chat send button
|
| 1419 |
+
document.querySelector('.bg-primary.text-white.w-8.h-8.rounded-full')?.addEventListener('click', function() {
|
| 1420 |
+
const input = document.querySelector('input[placeholder="Type your message..."]');
|
| 1421 |
+
if (input.value.trim()) {
|
| 1422 |
+
alert(`Message sent: ${input.value}`);
|
| 1423 |
+
input.value = '';
|
| 1424 |
+
}
|
| 1425 |
+
});
|
| 1426 |
+
|
| 1427 |
+
// Add event listeners for all action buttons that might be missing them
|
| 1428 |
+
document.querySelectorAll('button').forEach(btn => {
|
| 1429 |
+
if (!btn.hasAttribute('data-listener-added')) {
|
| 1430 |
+
btn.setAttribute('data-listener-added', 'true');
|
| 1431 |
+
btn.addEventListener('click', function(e) {
|
| 1432 |
+
// Prevent default for all buttons to avoid unexpected behavior
|
| 1433 |
+
e.preventDefault();
|
| 1434 |
+
|
| 1435 |
+
// Handle specific button types
|
| 1436 |
+
if (this.classList.contains('bg-primary') && this.querySelector('.fa-plus')) {
|
| 1437 |
+
alert('Add new item functionality');
|
| 1438 |
+
} else if (this.querySelector('.fa-cog')) {
|
| 1439 |
+
alert('Settings functionality');
|
| 1440 |
+
} else if (this.querySelector('.fa-sign-out-alt')) {
|
| 1441 |
+
alert('Logout functionality');
|
| 1442 |
+
}
|
| 1443 |
+
});
|
| 1444 |
+
}
|
| 1445 |
+
});
|
| 1446 |
|
|
|
|
|
|
|
| 1447 |
// Production chart
|
| 1448 |
const productionCtx = document.getElementById('productionChart').getContext('2d');
|
| 1449 |
new Chart(productionCtx, {
|
|
|
|
| 1505 |
ctx.fillRect(30, 50, 5, 5);
|
| 1506 |
ctx.fillRect(60, 60, 5, 5);
|
| 1507 |
}
|
|
|
|
| 1508 |
|
| 1509 |
+
// Dark mode toggle (example functionality)
|
| 1510 |
+
function toggleDarkMode() {
|
| 1511 |
+
document.documentElement.classList.toggle('dark');
|
| 1512 |
+
localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
|
| 1513 |
+
}
|
| 1514 |
|
| 1515 |
+
// Check for saved dark mode preference
|
| 1516 |
+
if (localStorage.getItem('darkMode') === 'true') {
|
| 1517 |
+
document.documentElement.classList.add('dark');
|
| 1518 |
+
}
|
| 1519 |
+
});
|
| 1520 |
</script>
|
| 1521 |
<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=wajdi22/buuu" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1522 |
</html>
|