Newer
Older
ournorth2021 / views / stand.php
LuisOlaya on 17 Apr 2021 4 KB juego
<?php

if ($_SESSION['id_user'] == "") {
    echo '
			<script>
				window.location = "/login"
			</script>
        ';
}

$id = $pagina[1];
$base = '';
$bt_iz = '';
$bt_dr = '';
$circulo = '';

$query = mysqli_query($connect, "SELECT * FROM Pabellones WHERE id = '" . $id . "' ");
$data = mysqli_fetch_array($query);

$queryIz = mysqli_query($connect, "SELECT * FROM Stands WHERE id_pabellon = '" . $id . "' AND posicion = 1 ");
$dataIz = mysqli_fetch_array($queryIz);

$queryDr = mysqli_query($connect, "SELECT * FROM Stands WHERE id_pabellon = '" . $id . "' AND posicion = 2 ");
$dataDr = mysqli_fetch_array($queryDr);

$base = $recursos . '/' . $data["imagen"];



$bt_iz = '
        <a href="' . $url . '/info/' . $dataIz["id"] . '">
            <img src="' . $recursos . '/' . $dataIz["boton"] . '" width="250" style="position: fixed; bottom: 10%; left: 2%; z-index:2" class="parpadea">
        </a>
    ';
$bt_dr = '
        <a href="' . $url . '/info/' . $dataDr["id"] . '">
            <img src="' . $recursos . '/' . $dataDr["boton"] . '" width="250" style="position: fixed; bottom: 10%; right: 2%; z-index:2" class="parpadea">
	   </a>
    ';

$bt_iz_movil = '
        <a href="' . $url . '/info/' . $dataIz["id"] . '">
            <img src="' . $recursos . '/' . $dataIz["boton"] . '" width="250" style="margin-top: 15px">
        </a>
    ';
$bt_dr_movil = '
        <a href="' . $url . '/info/' . $dataDr["id"] . '">
            <img src="' . $recursos . '/' . $dataDr["boton"] . '" width="250" >
	   </a>
    ';
?>

<video autoplay muted id="myVideo">

   <source src="https://firebasestorage.googleapis.com/v0/b/beegoup-160ea.appspot.com/o/Stand_cp.mp4?alt=media&token=d909ed6d-597e-4c13-baa1-c38a65db1f40" type="video/mp4">


</video>
<!-- <img id="myVideo" src="/img/bg_home.jpeg" alt=""> -->

<style>
    #myVideo {
        position: fixed;
        right: 0;
        bottom: 0px;
        min-width: 100%;
        min-height: 100%;
        z-index: -1;
        width: 100%;
        padding-top: auto;
    }
    .blanco {
        color: white !important;
    }
</style>


<h3 style="position: absolute; bottom: 60%; left: 30%;" class="blanco">El acceso a los Stands se activará el día 22 de Abril</h3>
<div class="e_web">
    <div style="display: none;" id="button_lobby">

        <?php /* echo $bt_iz;  */?>
        <?php /* echo $bt_dr; */ ?>
        <a href="<?php echo $url; ?>/lobby">
            <img src="<?php echo $url; ?>/img/img_wd/bt_back.png" style="width: 130px; position: absolute; bottom: 20px; left: 10%;">
        </a>
        <!-- <img src="<?php echo $base; ?>" width="100%"> -->
    </div>
    
</div>

<div class="e_movil" align="center">
    <div style="display: none;" id="button_lobby">
        <!-- <img src="<?php echo $base; ?>" width="100%"> -->
        <?php /* echo $bt_iz_movil; */ ?>
        <?php /* echo $bt_dr_movil;  */?>
    
        <a href="<?php echo $url; ?>/lobby">
            <img src="<?php echo $url; ?>/img/img_wd/bt_back.png" width="220">
        </a>
    </div>

</div>

<script type='text/javascript'>
    document.getElementById('myVideo').addEventListener('ended', myHandler, false);

    function myHandler(e) {
        document.getElementById('button_lobby').style.display = 'block'
    }
</script>


<style>
    .botones {
        position: absolute;
        border-radius: 30px;
        font-size: 11px;
        padding: 5px 20px;
        font-weight: bold;
    }

    .parpadea {

        animation-name: parpadeo;
        animation-duration: 1s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;

        -webkit-animation-name: parpadeo;
        -webkit-animation-duration: 3s;
        -webkit-animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
    }

    @-moz-keyframes parpadeo {
        0% {
            transform: scale(1);
        }

        15% {
            transform: scale(1.1);
        }

        30% {
            transform: scale(1);
        }

        100% {
            transform: scale(1);
        }
    }

    @-webkit-keyframes parpadeo {
        0% {
            transform: scale(1);
        }

        15% {
            transform: scale(1.1);
        }

        30% {
            transform: scale(1);
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes parpadeo {
        0% {
            transform: scale(1);
        }

        15% {
            transform: scale(1.1);
        }

        30% {
            transform: scale(1);
        }

        100% {
            transform: scale(1);
        }
    }
</style>

<script>
    $(document).ready(function() {
        $("#maestro").height($("#img_muestra").height());
    });

    $(window).resize(function() {
        $("#maestro").height($("#img_muestra").height());
    });
</script>