<!-- JS Files-->
<script src="../../assets/js/jquerynuevo.js" type="text/javascript"></script>
<script src="../../assets/plugins/simplebar/js/simplebar.min.js"></script>
<script src="../../assets/plugins/metismenu/js/metisMenu.min.js"></script>
<script src="../../assets/js/bootstrap.bundle.min.js"></script>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<!--plugins-->
<script src="../../assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js"></script>
<script src="../../assets/plugins/chartjs/chart.min.js"></script>
<script src="../../assets/plugins/apexcharts-bundle/js/apexcharts.min.js"></script>
<script src="../../assets/js/index2.js"></script>

<script src="../../assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
<script src="../../assets/plugins/datatable/js/dataTables.bootstrap5.min.js"></script>

<script src="../../assets/plugins/select2/js/select2.min.js"></script>
<script src="../../assets/js/form-select2.js" type="text/javascript"></script>




<!--plugins-->
<script src="../../fontawesome-free-6.2.1-web/js/fontawesome.js" type="text/javascript"></script>
<script src="../../fontawesome-free-6.2.1-web/js/regular.js" type="text/javascript"></script>
<script src="../../fontawesome-free-6.2.1-web/js/solid.js" type="text/javascript"></script>
<script src="../../fontawesome-free-6.2.1-web/js/brands.js" type="text/javascript"></script>
<!-- Main JS-->
<script src="../../assets/js/main.js"></script>


<script>
    function confirmarClic(event) {
        var confirmacion = confirm("¿Estás seguro de que deseas realizar esta acción?");

        if (!confirmacion) {
            event.preventDefault(); // Detiene la acción por defecto (clic en enlace o botón)
        }
    }

    document.addEventListener("DOMContentLoaded", function () {
        // Obtener todos los elementos con la clase 'confirmacion-clic' y agregarles el evento onclick
        var elementos = document.querySelectorAll('.confirmacion-clic');

        elementos.forEach(function (elemento) {
            elemento.addEventListener('click', confirmarClic);
        });
    });
    
    
    
    
function printDiv(nombreDiv) {
    var contenido = document.getElementById(nombreDiv).innerHTML;
    var contenidoOriginal = document.body.innerHTML;

    document.body.innerHTML = contenido;

    window.print();

    document.body.innerHTML = contenidoOriginal;
}
    
</script>

