Рефакторинг яваскриптов. Уборка jQuery.
This commit is contained in:
parent
f3d475a0b8
commit
a1408072d6
@ -235,18 +235,18 @@ if (!$isBattle) {
|
||||
echo <<<HTML
|
||||
<script>
|
||||
eatk = $atk1;
|
||||
$('#nabito').html('$nabito');
|
||||
$('#expmaybe').html('$expmaybe');
|
||||
$('#timer_out').html('$tmr');
|
||||
$('#pers_magic').html('$persMagic');
|
||||
$('#priems').html(`$mypriems`);
|
||||
getElementByIdInMainFrame('nabito').innerHTML = `$nabito`;
|
||||
getElementByIdInMainFrame('expmaybe').innerHTML = `$expmaybe`;
|
||||
getElementByIdInMainFrame('timer_out').innerHTML = `$tmr`;
|
||||
getElementByIdInMainFrame('pers_magic').innerHTML = `$persMagic`;
|
||||
getElementByIdInMainFrame('priems').innerHTML = `$mypriems`;
|
||||
g_iCount = 30;
|
||||
noconnect = 15;
|
||||
connect = 1;
|
||||
$('#go_btn').show();
|
||||
$('#reflesh_btn').show();
|
||||
za = '$za'; genZoneAtack();
|
||||
zb = '$zb'; genZoneBlock();
|
||||
getElementByIdInMainFrame('go_btn').style.display = '';
|
||||
getElementByIdInMainFrame('reflesh_btn').style.display = '';
|
||||
za = $za; genZoneAtack();
|
||||
zb = $zb; genZoneBlock();
|
||||
refleshPoints();
|
||||
tactic(1,'$tactic1');
|
||||
tactic(2,'$tactic2');
|
||||
@ -260,9 +260,7 @@ if (!$isBattle) {
|
||||
smena_alls = '0';
|
||||
ggcode='$ggcode';
|
||||
|
||||
|
||||
$js
|
||||
|
||||
</script>
|
||||
HTML;
|
||||
|
||||
@ -273,5 +271,4 @@ HTML;
|
||||
unset($atk1);
|
||||
}
|
||||
echo '<script>ggcode="' . PassGen::new() . '";</script>';
|
||||
|
||||
}
|
||||
|
@ -188,10 +188,10 @@ $allprice = Battle::getType($allprice, $thisBattle['smert'] == 1);
|
||||
<script src="//img.new-combats.tech/js/jx/jquery.form.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript">
|
||||
var login = '<?= $u->info['login']; ?>';
|
||||
var za = <?= (int)$u->stats['zona']; ?>;
|
||||
var zb = <?= (int)$u->stats['zonb']; ?>;
|
||||
var level = <?= $u->info['level']; ?>;
|
||||
let login = '<?= $u->info['login']; ?>';
|
||||
let za = <?= (int)$u->stats['zona']; ?>;
|
||||
let zb = <?= (int)$u->stats['zonb']; ?>;
|
||||
let level = <?= $u->info['level']; ?>;
|
||||
|
||||
function replaceAll(find, replace, str) {
|
||||
return str.replace(new RegExp(find, 'g'), replace);
|
||||
|
Loading…
Reference in New Issue
Block a user