
    <!-- Scroll to Top Button-->
    <a class="scroll-to-top rounded" href="#page-top">
      <i class="fa fa-angle-up"></i>
    </a>
    <!-- Logout Modal-->
    <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
            <button class="close" type="button" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
          </div>
          <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
          <div class="modal-footer">
            <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
            <a class="btn btn-primary" href="login.html">Logout</a>
          </div>
        </div>
      </div>
    </div>

    
    
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.17.0/js/mdb.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.24/js/dataTables.bootstrap5.min.js"></script>

    <!-- Core plugin JavaScript-->
  
    <!-- Page level plugin JavaScript-->
    <script src="../vendor/datatables/jquery.dataTables.js"></script>
    <script src="../vendor/datatables/dataTables.bootstrap4.js"></script>
    <!-- Custom scripts for all pages-->
    <script src="../js/sb-admin.min.js"></script>
    <!-- Custom scripts for this page-->
    <script src="../js/sb-admin-datatables.min.js"></script>
  <script type="text/javascript" src="../js/envioPost.jsd"></script>
  <script type="text/javascript" src="../js/savy.js"></script>
  <script src="../js/numeral.js"></script>
        <script src="../js/moment.js"></script>
        <script src="../js/fechas.js"></script>
    <script src="../vendor/notify.js"></script>
        <!-- Make sure the path to CKEditor is correct. -->
        <script src="../vendor/ckeditor/ckeditor.js"></script>
        <!-- include the script -->
<script src="../vendor/alertify.min.js"></script>
<!-- include the style -->
<link rel="stylesheet" href="../vendor/alertify.min.css" />
<!-- include a theme -->
  <script src="../vendor/toastr/toastr.min.js"></script>
  <script src="../js/select2.js"></script>
        
  </div>
</body>

</html>


<script>
if (window.history.replaceState) { // verificamos disponibilidad
    window.history.replaceState(null, null, window.location.href);
}


//$('.auto-save').savy('load') --> can be used without callback
$('.auto-save').savy('load',function(){
  console.log("All data from savy are loaded");
});

function dstry(){
  //$('.auto-save').savy('destroy') --> can be used without callback
  $('.auto-save').savy('destroy',function(){
    console.log("All data from savy are Destroyed");
    //window.location.reload();
  });
}
function msg(txt){
 alert(txt);

}



var myDB = localStorage.getItem("db");
var myAlmacen = localStorage.getItem("almacen");
var myUser = localStorage.getItem("usuario");
var myPass = localStorage.getItem("pass");
var myLevel = localStorage.getItem("nivel");
var hoySql = moment().format('YYYY-MM-DD')

//$(".form-control").addClass("font-weight-light");
$("td").addClass("font-weight-light");
$(".form-control").addClass("text-secundary");


$(".btn").addClass("btn-md");

//$(".form-control").addClass("form-control-sm");
//$("thead th").addClass("bg-light text-dark");
//$("thead th").addClass("font-wight-light");
//$(".table").removeClass("table-bordered");
//$("th")
/*
$("input[type='text']").css("width","100%");
//noti("warning","Hola","Alerta");

*/

function noti(tipo,mensaje,titulo){
    toastr.options = {
      "closeButton": false,
      "debug": false,
      "newestOnTop": false,
      "progressBar": true,
      "positionClass": "toast-bottom-right",
      "preventDuplicates": false,
      "onclick": null,
      "showDuration": "300",
      "hideDuration": "1000",
      "timeOut": "5000",
      "extendedTimeOut": "1000",
      "showEasing": "swing",
      "hideEasing": "linear",
      "showMethod": "fadeIn",
      "hideMethod": "fadeOut"
    }
    toastr[tipo](mensaje,titulo);
    
}

$(".form-control").attr("autocomplete", "off");


if(isMobile()){
/////
}


function isMobile(){
    return (
        (navigator.userAgent.match(/Android/i)) ||
        (navigator.userAgent.match(/webOS/i)) ||
        (navigator.userAgent.match(/iPhone/i)) ||
        (navigator.userAgent.match(/iPod/i)) ||
        (navigator.userAgent.match(/iPad/i)) ||
        (navigator.userAgent.match(/BlackBerry/i))
    );
}


</script>
<?php
$hoy = @date('yyyy-dd-mm');
@mysql_close($con);
?>