Autofix small errors
This commit is contained in:
+34
-33
@@ -111,7 +111,7 @@ if($_POST['attack']) {
|
||||
$jert['id'] = $arha['id'];
|
||||
} else {
|
||||
$jert['battle'] = 0;
|
||||
$jert['id'] = $jert['id'];
|
||||
#$jert['id'] = $jert['id']; ?!?!?!?!?!?!
|
||||
}
|
||||
$bot = 1;
|
||||
}
|
||||
@@ -274,8 +274,9 @@ if($user['hp'] <= 0) { header('Location: tower.php'); die(); }
|
||||
.H3 { color: #8f0000; font-family: Arial; font-size: 12pt; font-weight: bold; }
|
||||
</style>
|
||||
<script>
|
||||
var Hint3Name = '';
|
||||
function findlogin(title, script, name) {
|
||||
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>'+
|
||||
'<form action="'+script+'" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"><td colspan=2>'+
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="'+name+'"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||
@@ -328,20 +329,20 @@ function closehint3() {
|
||||
<link href="css/design4.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript">
|
||||
function fastshow2(content) {
|
||||
var el = document.getElementById("mmoves");
|
||||
var o = window.event.srcElement;
|
||||
const el = document.getElementById("mmoves");
|
||||
const o = window.event.srcElement;
|
||||
|
||||
if(content == '') {
|
||||
if(content == '') {
|
||||
el.innerHTML = '';
|
||||
}
|
||||
if(content != '' && el.style.visibility != "visible") {
|
||||
el.innerHTML = '<small>'+content+'</small>';
|
||||
}
|
||||
|
||||
var x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - el.offsetWidth + 5;
|
||||
var y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop+20;
|
||||
let x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - el.offsetWidth + 5;
|
||||
let y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop + 20;
|
||||
|
||||
if(x + el.offsetWidth + 3 > document.body.clientWidth + document.body.scrollLeft) {
|
||||
if(x + el.offsetWidth + 3 > document.body.clientWidth + document.body.scrollLeft) {
|
||||
x = (document.body.clientWidth + document.body.scrollLeft - el.offsetWidth - 5);
|
||||
if(x < 0) {
|
||||
x = 0
|
||||
@@ -368,15 +369,15 @@ function hideshow() {
|
||||
document.getElementById("mmoves").style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
var solo_store;
|
||||
let solo_store;
|
||||
|
||||
function solo(n, name) {
|
||||
if(check_access() == true) {
|
||||
window.location.href = '?path='+n+'&rnd='+Math.random();
|
||||
} else if (name && n) {
|
||||
solo_store = n;
|
||||
var add_text = (document.getElementById('add_text') || document.createElement('div'));
|
||||
add_text.id = 'add_text';
|
||||
const add_text = (document.getElementById('add_text') || document.createElement('div'));
|
||||
add_text.id = 'add_text';
|
||||
add_text.innerHTML = 'Вы перейдете в: <strong>' + name +'</strong> (<a href="#" onclick="return clear_solo();">отмена</a>)';
|
||||
document.getElementById('ione').parentNode.parentNode.nextSibling.firstChild.appendChild(add_text);
|
||||
ch_counter_color('red');
|
||||
@@ -391,7 +392,7 @@ function clear_solo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
var from_map = false;
|
||||
let from_map = false;
|
||||
|
||||
function imover(im) {
|
||||
im.filters.Glow.Enabled=true;
|
||||
@@ -479,9 +480,9 @@ hr { height: 1px; }
|
||||
<td><img src="i/move/navigatin_48.gif" width="9" height="8" /></td>
|
||||
<td width="100%" bgcolor="#000000"><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap" align="center"><div align="center" style="font-size:4px;padding:0px;border:solid black 0px; text-align:center" id="prcont"></div>
|
||||
<td nowrap="nowrap" align="center"><div align="center" style="font-size:4px;padding:0;border:solid black 0; text-align:center" id="prcont"></div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var s="";for (i=1; i<=32; i++) {s+='<span id="progress'+i+'"> </span>';if (i<32) {s+=' '};}document.getElementById('prcont').innerHTML=s;
|
||||
let s = "";for (i=1; i<=32; i++) {s+='<span id="progress'+i+'"> </span>';if (i<32) {s+=' '};}document.getElementById('prcont').innerHTML=s;
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -557,28 +558,28 @@ hr { height: 1px; }
|
||||
</table>
|
||||
<div id="mmoves" style="background-color:#FFFFCC; visibility:hidden; overflow:visible; position:absolute; border-color:#666666; border-style:solid; border-width: 1px; padding: 2px; white-space: nowrap;"></div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var progressEnd = 32;
|
||||
var progressColor = '#00CC00';
|
||||
var mtime = parseInt('<? echo ($_SESSION['time']-time()); ?>');
|
||||
const progressEnd = 32;
|
||||
let progressColor = '#00CC00';
|
||||
let mtime = parseInt('<? echo($_SESSION['
|
||||
if(!mtime || mtime <= 0) { mtime = 0; }
|
||||
var progressInterval = Math.round(mtime*1000/progressEnd);
|
||||
var is_accessible = true;
|
||||
var progressAt = progressEnd;
|
||||
var progressTimer;
|
||||
const progressInterval = Math.round(mtime * 1000 / progressEnd);
|
||||
let is_accessible = true;
|
||||
let progressAt = progressEnd;
|
||||
let progressTimer;
|
||||
|
||||
function progress_clear() {
|
||||
for(var i = 1; i <= progressEnd; i++) {
|
||||
for(let i = 1; i <= progressEnd; i++) {
|
||||
document.getElementById('progress'+i).style.backgroundColor = 'transparent';
|
||||
}
|
||||
progressAt = 0;
|
||||
for(var t = 1; t <= 8; t++) {
|
||||
for(let t = 1; t <= 8; t++) {
|
||||
if(document.getElementById('m'+t) ) {
|
||||
var tempname = document.getElementById('m'+t).children[0].src;
|
||||
if(tempname.match(/b\.gif$/)) {
|
||||
const tempname = document.getElementById('m' + t).children[0].src;
|
||||
if(tempname.match(/b\.gif$/)) {
|
||||
document.getElementById('m'+t).children[0].id = 'backend';
|
||||
}
|
||||
var newname;
|
||||
newname = tempname.replace(/(b)?\.gif$/, 'i.gif');
|
||||
let newname;
|
||||
newname = tempname.replace(/(b)?\.gif$/, 'i.gif');
|
||||
document.getElementById('m'+t).children[0].src = newname;
|
||||
}
|
||||
}
|
||||
@@ -589,11 +590,11 @@ function progress_clear() {
|
||||
function progress_update() {
|
||||
progressAt++;
|
||||
if(progressAt > progressEnd) {
|
||||
for(var t = 1; t <= 8; t++) {
|
||||
for(let t = 1; t <= 8; t++) {
|
||||
if(document.getElementById('m'+t)) {
|
||||
var tempname = document.getElementById('m'+t).children[0].src;
|
||||
var newname;
|
||||
newname = tempname.replace(/i\.gif$/, '.gif');
|
||||
let tempname = document.getElementById('m' + t).children[0].src;
|
||||
let newname;
|
||||
newname = tempname.replace(/i\.gif$/, '.gif');
|
||||
if(document.getElementById('m'+t).children[0].id == 'backend') {
|
||||
tempname = newname.replace(/\.gif$/, 'b.gif');
|
||||
newname = tempname;
|
||||
@@ -632,7 +633,7 @@ function check_access() {
|
||||
|
||||
function ch_counter_color(color) {
|
||||
progressColor = color;
|
||||
for(var i = 1; i <= progressAt; i++) {
|
||||
for(let i = 1; i <= progressAt; i++) {
|
||||
document.getElementById('progress'+i).style.backgroundColor = progressColor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user