Autofix small errors

This commit is contained in:
Igor Barkov [iwork]
2019-01-16 19:45:30 +02:00
parent d330721114
commit 094b8a6027
313 changed files with 736 additions and 2280 deletions

View File

@@ -37,12 +37,12 @@ $fbattle = new fbattle($user['battle']);
function refreshPeriodic() {
<?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>';//reload();
<?}?>
var timerID = setTimeout("refreshPeriodic()", 20000);
const timerID = setTimeout("refreshPeriodic()", 20000);
}
timerID = setTimeout("refreshPeriodic()", 20000);
</SCRIPT>
<script>
var Hint3Name = '';
let Hint3Name = '';
function findlogin(title, script, name) {
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
@@ -55,8 +55,8 @@ $fbattle = new fbattle($user['battle']);
Hint3Name = name;
}
var attack = false;
var defend = false;
let attack = false;
let defend = false;
function check() {
if ((!attack) || (!defend)) {
@@ -81,19 +81,19 @@ $fbattle = new fbattle($user['battle']);
function refreshPeriodic() {
<?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>'; <? } ?>
var timerID = setTimeout("refreshPeriodic()", 30000);
const timerID = setTimeout("refreshPeriodic()", 30000);
}
timerID = setTimeout("refreshPeriodic()", 30000);
function checksubmit() {
var ajaxload = 1;
const ajaxload = 1;
if (ajaxload > 0) {
var enemy = <?=$fbattle->enemy;?>;
var batl = <?=($user['battle'] ? $user['battle'] : $_REQUEST['batl'])?>;
var tac_at = $('input[name=attack]:checked').val();
var att = "&attack=" + $('input[name=attack]:checked').val();
var def = $('input[name=defend]:checked').val();
let enemy =;
let batl =;
const tac_at = $('input[name=attack]:checked').val();
const att = "&attack=" + $('input[name=attack]:checked').val();
const def = $('input[name=defend]:checked').val();
if (tac_at >= 1 && def >= 1) {
$.ajax({