Рефакторинг яваскриптов. Уборка jQuery.

This commit is contained in:
2024-05-10 16:54:18 +03:00
parent f3d475a0b8
commit a1408072d6
2 changed files with 13 additions and 16 deletions

View File

@@ -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>';
}