Вход Регистрация
Файл: resources/views/game/battles/mobs/battle.blade.php
Строк: 84
<?php
@extends('layouts.main')

@
section('content')
<
style>
    .
btn-games2 {
    
backgroundurl(/images/btn-left2.jpgno-repeat left ,url(/images/btn-right2.jpgno-repeat right ,url(/images/btn-center2.jpgrepeat center;
    
color#ede256;
    
text-aligncenter;
    
padding-top10px;
    
padding-bottom10px;
    
padding-left55px;
    
padding-right55px;
    
text-shadow-1px 0 #131227, 0 -1px 0 #131227, 0 1px 0 #131227, 0 1px 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px 0 0 #131227, 1px 0 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227, -1px -1px 0 #131227, 1px -1px 0 #131227, -1px 1px 0 #131227, 1px 1px 0 #131227;
    
font-size14px;
    
margin0;
    
margin-bottom0px;
    
border0;
}
</
style>
    <
script type="text/javascript">
        function 
updateCooldown()
        {
            $.
ajax({
                
url'/api/mobitva/cooldown/{{ $battle->id }}',
                
success: function(data) {
                    if(
data.result == "1")
                    {
                        var 
item = $("#button");
                        var 
cooldown_sec Number.parseInt(data.cooldown_sec);
                        
item.html(data.cooldown);
                        if(
cooldown_sec <= 0location.reload();
                    }
                }
            });
        }
        
setInterval(updateCooldown1000);
    </
script>
<
div class = "box">
        <
center>
    <
table style="width: 65%;"><tbody><tr><td style="width: 45%;">
         
           <
img src="/images/cards/{{ $myCard->getCardInfo->image }}.png" width="65px">
                    <
p>
            <
div class="pobed text-center">{{ $bars->my }}%</div>
            <
div class="progres-bg">
                <
div class="progres1" style="width: {{ $bars->my }}%;"></div>
            </
div>
        </
p>
            
            <
span class="bl prg-bar3 mb-10">
        <
span class="bl fl prg-green3" style="width: 100%"></span>
        <
span class="bl fl prg-green4" style="width: 0%"></span>
        </
span>
            <
br>
            </
div></td><td>
            
            <
img src="/images/vs.png" width="65px" alt="*"></td><br>
            
            
            <
td style="width: 45%;"><div class="center">
                     
            <
img src="/images/cards/{{ $mobCard->image }}.png" width="65px">     
               <
p>
            <
div class="pobed text-center">{{ $bars->mob }}%</div>
            <
div class="progres-bg">
                <
div class="progres2" style="width: {{ $bars->mob }}%;"></div>
            </
div>
        </
p>
            
            <
span class="bl prg-bar3 mb-10">
            <
span class="bl fl prg-green3" style="width: 100%"></span>
        <
span class="bl fl prg-green4" style="width: 0%"></span>
        </
span>
            <
br></div></td><td></td></tr></tbody></table>
</
center><br>
            <
font color="black">
                @if(
$myStats->cooldown <= time())
                    <
a href="/mobs/battle/attack" class="btn btn-games2 btn-block">Атаковать</a>
                @else
                    <
a id="button" href="?" class="btn btn-games2 btn-block">{{ Services::getChestTime($myStats->cooldown-time()) }}</a>
                @endif
                <
a href="/mobs/battle/surrender" class="btn btn-games2 btn-block">Сдаться</a>
            </
font>
        </
center>
    </
font>
</
div>
@
endsection
?>
Онлайн: 1
Реклама