Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraFerrando committed Dec 18, 2024
1 parent c861dce commit 1003a3a
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions app/src/app/Views/Admin/Stats.php
Original file line number Diff line number Diff line change
@@ -1,56 +1,11 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Menu Desplegable</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<style>
/* Asegurar que el menú desplegable aparezca por encima de las estadisticas */
#dropdown-menu {
z-index: 10; /* Aseguramos que el menú esté por encima de los charts */
}
</style>
<!-- Incloem el JavaScript extern -->
<script src="app/src/public/assets/js/app.js" defer></script>
</head>
<body>
<!-- Main Content -->
<div class="max-w-6xl mx-auto my-16">
<!-- Charts Container -->
<div id="charts-container" class="grid grid-cols-3 gap-4 bg-gray-100 relative">
<div class="col" id="app1"></div>
<div class="col" id="app2"></div>
<div class="col" id="app3"></div>
</div>
</div>

Check warning on line 7 in app/src/app/Views/Admin/Stats.php

View check run for this annotation

Codecov / codecov/patch

app/src/app/Views/Admin/Stats.php#L1-L7

Added lines #L1 - L7 were not covered by tests
<!-- Incloure el fitxer JavaScript -->
<script>
// Inicialitzar el codi de dropdown quan es carregui la pàgina
document.addEventListener('DOMContentLoaded', function () {
initDropdown('menuButton', 'dropdown-menu', '.dropdown-item');
});
</script>
</html>
<script>
const menuButton = document.getElementById('menuButton');
const dropdown = document.getElementById('dropdown-menu');
menuButton.addEventListener('click', () => {
dropdown.classList.toggle('hidden');
});
function toggleDropdown() {
dropdown.classList.toggle('hidden');
}
</script>
<script>
window.Promise ||
document.write(
Expand Down

0 comments on commit 1003a3a

Please sign in to comment.