Autofix small errors
This commit is contained in:
+34
-31
@@ -54,7 +54,7 @@ print "<script>location.href='vxod.php'</script>"; exit();
|
||||
<meta http-equiv="Content-Language" content="ru">
|
||||
<link rel=stylesheet type="text/css" href="css/main.css">
|
||||
<SCRIPT LANGUAGE="JavaScript" >
|
||||
var Hint3Name = '';
|
||||
let Hint3Name = '';
|
||||
// Заголовок, название скрипта, имя поля с логином
|
||||
function findlogin(title, script, name){
|
||||
document.all("hint3").innerHTML = '<form action="'+script+'" method=GET style="margin:0;"><table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B style="font-size:11px">'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+
|
||||
@@ -572,26 +572,27 @@ echo build_move_image($mesto, $vektor, 1, $glava);
|
||||
</tr>
|
||||
</table>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var progressEnd = 32; // set to number of progress <span>'s.
|
||||
var progressColor = '#00CC00'; // set to progress bar color
|
||||
var mtime = parseInt('<?=($_SESSION['time']-time())?>');
|
||||
const progressEnd = 32; // set to number of progress <span>'s.
|
||||
let progressColor = '#00CC00'; // set to progress bar color
|
||||
let mtime = parseInt('<?=($_SESSION['
|
||||
if (!mtime || mtime<=0) {mtime=0;}
|
||||
var progressInterval = Math.round(mtime*1000/progressEnd); // set to time between updates (milli-seconds)
|
||||
var is_accessible = true;
|
||||
var progressAt = progressEnd;
|
||||
var progressTimer;
|
||||
const progressInterval = Math.round(mtime * 1000 / progressEnd); // set to time between updates (milli-seconds)
|
||||
let is_accessible = true;
|
||||
let progressAt = progressEnd;
|
||||
let progressTimer;
|
||||
|
||||
function progress_clear() {
|
||||
for (var i = 1; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent';
|
||||
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;
|
||||
}
|
||||
@@ -605,11 +606,11 @@ function progress_update() {
|
||||
//if (progressAt > progressEnd) progress_clear();
|
||||
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;
|
||||
@@ -643,7 +644,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;
|
||||
}
|
||||
}
|
||||
@@ -711,8 +712,9 @@ color: #000000;
|
||||
|
||||
<LINK REL=StyleSheet HREF='css/style.css' TYPE='text/css'>
|
||||
<script>
|
||||
var rnd = Math.random();
|
||||
function sunduk(n)
|
||||
const rnd = Math.random();
|
||||
|
||||
function sunduk(n)
|
||||
{
|
||||
document.location.href="?act=sunduk&n="+n+"&rnd="+Math.random();
|
||||
}
|
||||
@@ -741,10 +743,10 @@ function dialog()
|
||||
document.location.href="?act=luka&rnd="+Math.random();
|
||||
}
|
||||
function OpenMenu(n,e){
|
||||
var el, x, y;
|
||||
el = document.all("oMenu");
|
||||
var event = (window.event) ? window.event : e;
|
||||
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
|
||||
let el, x, y;
|
||||
el = document.all("oMenu");
|
||||
const event = (window.event) ? window.event : e;
|
||||
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
|
||||
y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
|
||||
if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
|
||||
el.innerHTML = '<div style="color:#000; cursor: pointer; height: 11px; margin: 2px; width: 45px;" class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;attack('+n+');closeMenu(event);">Напасть </div>';
|
||||
@@ -754,10 +756,10 @@ function OpenMenu(n,e){
|
||||
el.style.visibility = "visible";
|
||||
}
|
||||
function Opendialog(n,e){
|
||||
var el, x, y;
|
||||
el = document.all("oMenu");
|
||||
var event = (window.event) ? window.event : e;
|
||||
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
|
||||
let el, x, y;
|
||||
el = document.all("oMenu");
|
||||
const event = (window.event) ? window.event : e;
|
||||
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
|
||||
y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
|
||||
if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
|
||||
el.innerHTML = '<div style="color:#000; cursor: pointer;" class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;attack('+n+');"> Напасть </div><div style="color:#000; cursor: pointer;" class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;dialog();"> Говорить </div>';
|
||||
@@ -771,8 +773,9 @@ function Opendialog(n,e){
|
||||
function closeMenu(){
|
||||
|
||||
if (window.event && window.event.toElement)
|
||||
{var cls = window.event.toElement.className;
|
||||
if (cls=='menuItem' || cls=='menu') return;
|
||||
{
|
||||
const cls = window.event.toElement.className;
|
||||
if (cls=='menuItem' || cls=='menu') return;
|
||||
}
|
||||
document.all("oMenu").style.visibility = "hidden";
|
||||
document.all("oMenu").style.top="0px";
|
||||
|
||||
Reference in New Issue
Block a user