Newer
Older
ournorth2021 / views / ranking_trip_reload.php
LuisOlaya on 23 Apr 2021 890 bytes reload
<style>
    body {
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        /* background-image: url(<?php echo $url; ?>/img/bg_juegos.jpg); */
        background-color: #939597;
    }
</style>


<div class="container-fluid" id="vista">

</div>
<script>
    var api = '<?php echo $api; ?>';

    function RankingGeneral() {

        jQuery.ajax({
                url: api + "ranking_trip.php",
                type: 'post',
                data: {
                    id: 0
                },
            }).done(function(resp) {
                $("#vista").html(resp);
            })
            .fail(function(resp) {
                console.log(resp);
            })
            .always(function(resp) {});
    }
    RankingGeneral();
    setInterval(RankingGeneral, 30000);
    
</script>