Skip to content

Commit 852a7c3

Browse files
committed
Updated files according to the ESLint Error
1 parent 03f9e0f commit 852a7c3

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed

js/activity.js

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ class Activity {
22482248
const changeText = () => {
22492249
const randomLoadMessage =
22502250
messages.load_messages[
2251-
Math.floor(Math.random() * messages.load_messages.length)
2251+
Math.floor(Math.random() * messages.load_messages.length)
22522252
];
22532253
document.getElementById("messageText").innerHTML = randomLoadMessage + "...";
22542254
counter++;
@@ -3396,9 +3396,9 @@ class Activity {
33963396
that.blocks.moveBlock(
33973397
newBlock,
33983398
(x || that.blocksContainer.x + 100) -
3399-
that.blocksContainer.x,
3399+
that.blocksContainer.x,
34003400
(y || that.blocksContainer.y + 100) -
3401-
that.blocksContainer.y
3401+
that.blocksContainer.y
34023402
);
34033403
}
34043404
);
@@ -4853,8 +4853,8 @@ class Activity {
48534853
console.log(
48544854
"%cMusic Blocks",
48554855
"font-size: 24px; font-weight: bold; font-family: sans-serif; padding:20px 0 0 110px; background: url(" +
4856-
imgUrl +
4857-
") no-repeat;"
4856+
imgUrl +
4857+
") no-repeat;"
48584858
);
48594859
// eslint-disable-next-line no-console
48604860
console.log(
@@ -4926,10 +4926,10 @@ class Activity {
49264926
typeof flags !== "undefined"
49274927
? flags
49284928
: {
4929-
run: false,
4930-
show: false,
4931-
collapse: false
4932-
};
4929+
run: false,
4930+
show: false,
4931+
collapse: false
4932+
};
49334933
this.loading = true;
49344934
document.body.style.cursor = "wait";
49354935
this.doLoadAnimation();
@@ -5292,8 +5292,9 @@ class Activity {
52925292
[
52935293
"nameddo",
52945294
{
5295-
value: `V: ${parseInt(lineId) + 1} Line ${staffBlocksMap[lineId]?.baseBlocks?.length + 1
5296-
}`
5295+
value: `V: ${parseInt(lineId) + 1} Line ${
5296+
staffBlocksMap[lineId]?.baseBlocks?.length + 1
5297+
}`
52975298
}
52985299
],
52995300
0,
@@ -5302,12 +5303,12 @@ class Activity {
53025303
staffBlocksMap[lineId].baseBlocks.length === 0
53035304
? null
53045305
: staffBlocksMap[lineId].baseBlocks[
5305-
staffBlocksMap[lineId].baseBlocks.length - 1
5306-
][0][
5307-
staffBlocksMap[lineId].baseBlocks[
5308-
staffBlocksMap[lineId].baseBlocks.length - 1
5309-
][0].length - 4
5310-
][0],
5306+
staffBlocksMap[lineId].baseBlocks.length - 1
5307+
][0][
5308+
staffBlocksMap[lineId].baseBlocks[
5309+
staffBlocksMap[lineId].baseBlocks.length - 1
5310+
][0].length - 4
5311+
][0],
53115312
null
53125313
]
53135314
],
@@ -5323,8 +5324,9 @@ class Activity {
53235324
[
53245325
"text",
53255326
{
5326-
value: `V: ${parseInt(lineId) + 1} Line ${staffBlocksMap[lineId]?.baseBlocks?.length + 1
5327-
}`
5327+
value: `V: ${parseInt(lineId) + 1} Line ${
5328+
staffBlocksMap[lineId]?.baseBlocks?.length + 1
5329+
}`
53285330
}
53295331
],
53305332
0,
@@ -5359,14 +5361,14 @@ class Activity {
53595361
staffBlocksMap[staffIndex].startBlock.length - 3
53605362
][4][2] =
53615363
staffBlocksMap[staffIndex].baseBlocks[0][0][
5362-
staffBlocksMap[staffIndex].baseBlocks[0][0].length - 4
5364+
staffBlocksMap[staffIndex].baseBlocks[0][0].length - 4
53635365
][0];
53645366
// Update the first namedo block with settimbre
53655367
staffBlocksMap[staffIndex].baseBlocks[0][0][
53665368
staffBlocksMap[staffIndex].baseBlocks[0][0].length - 4
53675369
][4][0] =
53685370
staffBlocksMap[staffIndex].startBlock[
5369-
staffBlocksMap[staffIndex].startBlock.length - 3
5371+
staffBlocksMap[staffIndex].startBlock.length - 3
53705372
][0];
53715373
const repeatblockids = staffBlocksMap[staffIndex].repeatArray;
53725374
for (const repeatId of repeatblockids) {
@@ -5378,7 +5380,7 @@ class Activity {
53785380
0,
53795381
[
53805382
staffBlocksMap[staffIndex].startBlock[
5381-
staffBlocksMap[staffIndex].startBlock.length - 3
5383+
staffBlocksMap[staffIndex].startBlock.length - 3
53825384
][0] /*setribmre*/,
53835385
blockId + 1,
53845386
staffBlocksMap[staffIndex].nameddoArray[staffIndex][0],
@@ -5387,8 +5389,8 @@ class Activity {
53875389
] === null
53885390
? null
53895391
: staffBlocksMap[staffIndex].nameddoArray[staffIndex][
5390-
repeatId.end + 1
5391-
]
5392+
repeatId.end + 1
5393+
]
53925394
]
53935395
]);
53945396
staffBlocksMap[staffIndex].repeatBlock.push([
@@ -5422,7 +5424,7 @@ class Activity {
54225424
const secondnammedo = _searchIndexForMusicBlock(
54235425
staffBlocksMap[staffIndex].baseBlocks[repeatId.end + 1][0],
54245426
staffBlocksMap[staffIndex].nameddoArray[staffIndex][
5425-
repeatId.end + 1
5427+
repeatId.end + 1
54265428
]
54275429
);
54285430

@@ -5445,31 +5447,31 @@ class Activity {
54455447
const prevnameddo = _searchIndexForMusicBlock(
54465448
staffBlocksMap[staffIndex].baseBlocks[repeatId.start - 1][0],
54475449
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5448-
currentnammeddo
5450+
currentnammeddo
54495451
][4][0]
54505452
);
54515453
const afternamedo = _searchIndexForMusicBlock(
54525454
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0],
54535455
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5454-
currentnammeddo
5456+
currentnammeddo
54555457
][4][1]
54565458
);
54575459
let prevrepeatnameddo = -1;
54585460
if (prevnameddo === -1) {
54595461
prevrepeatnameddo = _searchIndexForMusicBlock(
54605462
staffBlocksMap[staffIndex].repeatBlock,
54615463
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5462-
currentnammeddo
5464+
currentnammeddo
54635465
][4][0]
54645466
);
54655467
}
54665468
const prevBlockId =
54675469
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5468-
currentnammeddo
5470+
currentnammeddo
54695471
][4][0];
54705472
const currentBlockId =
54715473
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5472-
currentnammeddo
5474+
currentnammeddo
54735475
][0];
54745476

54755477
// Needs null checking optmizie
@@ -5483,7 +5485,7 @@ class Activity {
54835485
0,
54845486
[
54855487
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
5486-
currentnammeddo
5488+
currentnammeddo
54875489
][4][0],
54885490
blockId + 1,
54895491
currentBlockId,
@@ -6797,12 +6799,12 @@ class Activity {
67976799
return $j("<li></li>")
67986800
.append(
67996801
'<img src="' +
6800-
(item.artwork || "") +
6801-
'" height = "20px">' +
6802-
"<a>" +
6803-
" " +
6804-
item.label +
6805-
"</a>"
6802+
(item.artwork || "") +
6803+
'" height = "20px">' +
6804+
"<a>" +
6805+
" " +
6806+
item.label +
6807+
"</a>"
68066808
)
68076809
.appendTo(ul.css("z-index", 35000));
68086810
};
@@ -6926,10 +6928,10 @@ class Activity {
69266928
container.setAttribute(
69276929
"style",
69286930
"position: absolute; right:" +
6929-
(document.body.clientWidth - x) +
6930-
"px; top: " +
6931-
y +
6932-
"px;"
6931+
(document.body.clientWidth - x) +
6932+
"px; top: " +
6933+
y +
6934+
"px;"
69336935
);
69346936
document.getElementById("buttoncontainerBOTTOM").appendChild(container);
69356937
return container;
@@ -7538,7 +7540,7 @@ class Activity {
75387540
processPluginData(this, this.pluginData, "localStorage:plugins")
75397541
);
75407542
}
7541-
if ('requestIdleCallback' in window) {
7543+
if ("requestIdleCallback" in window) {
75427544
requestIdleCallback(() => {
75437545
initAdvancedProtoBlocks(this);
75447546
});

0 commit comments

Comments
 (0)