Вход Регистрация
Файл: monst/core/pag/ca.php
Строк: 49
<?
$ca 
$_ca -> findOne(
    [
        
'id' => 1
    
]
);

if ( !
$ca ) {
    
g('/main?no_ca');
}

// ---------------------------------------------------------------------------------------------------------------------

?>
<link rel='stylesheet' href='/core/s/css/animate.css?<?= r() ?>'>
<script src='/core/j/jquery-3.2.1.min.js'></script>
<script src='/core/j/anim.js'></script>

<script>
//    var cooldown = 0;

    function attack() {
//        if ( cooldown !== 1 ) {
            $.ajax({
                type: "POST",
                url: "/core/jphp/ca/attack.php",
                data: "null",

                success: function (html) {
                    //alert(html);
                    //index();
  //                  cooldown = 1;
                }
            });

    //        clearInterval(indexInterval);

            $('#effect').show();
            $('#monster_img').animateCss('damage');

            setTimeout(stop_attack, 250);

  //      }
    }

    function stop_attack() {
        $('#effect').hide();
        $('#damage').hide();

        index();
    //    indexInterval = setInterval(index, 500);
//        cooldown = 0;

    }


    function index() {
        $.ajax({
            type: "POST",
            url: "/core/jphp/ca/index.php",
            data: "null",

            success: function (html) {
//                    alert(html);
                $('#index').empty();
                $('#index').append(html);
            }
        });

    }

    index();
//    var indexInterval = setInterval(index, 500);

</script>


<div style='text-align: center;'>
    <div id='index'></div>
</div>

<?
Онлайн: 1
Реклама