diff --git a/js/onlineList.js b/js/onlineList.js
index 587386c7..c6cb3a05 100644
--- a/js/onlineList.js
+++ b/js/onlineList.js
@@ -64,7 +64,7 @@ var chat = {
this.ignoreList.nms[this.ignoreList.x] = login;
if ($('#ignr_alu').attr('id') != undefined) {
- $('#ignr_alu').html(`${$('#ignr_alu').html()}
`);
+ $('#ignr_alu').html(`${$('#ignr_alu').html()}`);
}
return
},
@@ -128,7 +128,7 @@ var chat = {
var j = 1;
while (j <= this.ignoreList.x) {
if (this.ignoreList[this.ignoreList.nms[j]] != undefined) {
- date += ` ${this.ignoreList.nms[j]}
Clear `;
+ date += ` ${this.ignoreList.nms[j]}
Clear `;
}
j++;
}
@@ -308,7 +308,7 @@ var chat = {
this.testTimer(true);
},
reMoney: function () {
- $('#moneyGM').html(`${top.c.money} кр.`);
+ $('#moneyGM').html(`${c.money} кр.`);
},
testTimer: function (n) {
clearTimeout(this.t);
@@ -389,7 +389,7 @@ var chat = {
// тут
function rtData (count) {
- return rt = `
${rt}`;
+ return rt = `
${rt}`;
}
if(data[4]!=0)
@@ -414,9 +414,9 @@ var chat = {
rt = `
${rt}`;
}
}
- rt += `[${data[2]}]
`;
+ rt += `[${data[2]}]
`;
- if (data[11] > top.c.time) {
+ if (data[11] > c.time) {
rt += `
`;
this.addRefMolch(data[0], data[11]);
}
@@ -488,7 +488,7 @@ var chat = {
else {
$(`#msg_${id}`).remove();
$(`#msg_${id}_sys`).remove();
- if (top.c.admin > 0) {
+ if (c.admin > 0) {
await fetch(`online.php?jack=${c.rnd}&cas${((new Date().getTime()) + Math.random())}`, {
method: "POST",
delMsg: id
@@ -500,7 +500,7 @@ var chat = {
if ($('#textmsg').val() == '') {
if (confirm('Очистить окно чата?')) {
if (top.des == 1) {
- $(`#canal${top.cb_date[top.cb_select]}`).html('');
+ $(`#canal${cb_date[cb_select]}`).html('');
$('#textmsg').focus();
return
}
@@ -564,7 +564,7 @@ var chat = {
else if (data[0] != undefined && top.document.getElementById(`msg_${data[0]}`) == undefined) {
var msg = '';
if (data[0] != 0) {
- if (top.c.admin > 0) {
+ if (c.admin > 0) {
if (data[12] == 1) {
msg += ' unactive ';
}
@@ -588,10 +588,10 @@ var chat = {
while (i != -1) {
if (arr[i] != undefined) {
vl = this.trim(arr[i]);
- if (vl.toLowerCase() == top.c.login.toLowerCase()) {
+ if (vl.toLowerCase() == c.login.toLowerCase()) {
forYou++;
}
- if (vl.toLowerCase() == top.c.login.toLowerCase()) {
+ if (vl.toLowerCase() == c.login.toLowerCase()) {
vl = this.trim(data[3]);
}
if (i > 0) {
@@ -601,7 +601,7 @@ var chat = {
if (data[3] != '') {
to += `${this.trim(arr[i])}`;
- if (this.trim(arr[i].toLowerCase()) != top.c.login.toLowerCase()) {
+ if (this.trim(arr[i].toLowerCase()) != c.login.toLowerCase()) {
to2 += this.trim(arr[i]);
} else {
if (data[2] == 2) to2 += this.trim(arr[i]);
@@ -637,7 +637,7 @@ var chat = {
msg += ` to [${to2}]`;
}
} else if (data[2] == 3) {
- if (this.trim(data[3].toLowerCase()) == top.c.login.toLowerCase()) {
+ if (this.trim(data[3].toLowerCase()) == c.login.toLowerCase()) {
forYou++;
}
if (data[3] != '') {
@@ -767,7 +767,7 @@ var chat = {
msg = ` G ${msg}`;
}
var msg22 = ' 0) {
+ if(c.admin > 0) {
msg22 += `oncontextmenu="chat.deleteMessage(${data[0]});
return false;" `;
}
@@ -800,13 +800,13 @@ var chat = {
msg = `${msg}
`;
- if (forYou > 0 && this.sound > 0 && this.trim(data[3].toLowerCase()) != top.c.login.toLowerCase()) {
+ if (forYou > 0 && this.sound > 0 && this.trim(data[3].toLowerCase()) != c.login.toLowerCase()) {
this.sendSound(1);
}
if(msg_see == 1)
{
- if(this.trim(data[3].toLowerCase()) == top.c.login.toLowerCase() || forYou == 1 || this.filter == 0)
+ if(this.trim(data[3].toLowerCase()) == c.login.toLowerCase() || forYou == 1 || this.filter == 0)
{
if( data[9] > 0 ) this.sendSound(data[9]);
if( data[15] != undefined && data[15] != 0 ) {
@@ -881,9 +881,9 @@ var chat = {
if (j < 3 && this.isNumber(top.sml[smid]) != true && (top.sml[smid] != undefined || imsml[0] == '%usersmile%')) {
// тут
if (imsml[0] == '%usersmile%') {
- txt = txt.replace(`\:%usersmile%-${imsml[1]}\:`, `
`);
+ txt = txt.replace(`\:%usersmile%-${imsml[1]}\:`, `
`);
} else {
- txt = txt.replace(`\:${txr[i]}\:`, `
`);
+ txt = txt.replace(`\:${txr[i]}\:`, `
`);
}
j++;
}