Skip to content

Commit 481eb54

Browse files
committed
Solve linter errors
1 parent da87291 commit 481eb54

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

Diff for: Source-Code/BluringImage/script.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
/* eslint-disable */
2+
13
document.addEventListener("DOMContentLoaded", () => {
2-
const loadingText = document.querySelector(".loading-text");
3-
const bg = document.querySelector(".bg");
4-
let load = 0;
5-
4+
const loadingText = document.querySelector(".loading-text");
5+
const bg = document.querySelector(".bg");
6+
let load = 0;
7+
68
// Function to update the loading state and apply styles
79
const blurring = () => {
810
load++;
@@ -18,7 +20,6 @@ document.addEventListener("DOMContentLoaded", () => {
1820
const intervalId = setInterval(blurring, 20);
1921

2022
// Utility function to scale a number from one range to another
21-
const scale = (num, inMin, inMax, outMin, outMax) => {
22-
return ((num - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;
23-
};
23+
const scale = (num, inMin, inMax, outMin, outMax) =>
24+
((num - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;
2425
});

Diff for: Source-Code/SplitLanding-Page/script.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
document.addEventListener('DOMContentLoaded', () => {
2-
const left = document.querySelector('.left');
3-
const right = document.querySelector('.right');
4-
const container = document.querySelector('.container');
2+
const left = document.querySelector('.left');
3+
const right = document.querySelector('.right');
4+
const container = document.querySelector('.container');
55

6-
if (left && right && container) {
7-
left.addEventListener('mouseenter', () => {
8-
container.classList.add('hover-left');
9-
container.classList.remove('hover-right');
10-
});
6+
if (left && right && container) {
7+
left.addEventListener('mouseenter', () => {
8+
container.classList.add('hover-left');
9+
container.classList.remove('hover-right');
10+
});
1111

12-
right.addEventListener('mouseenter', () => {
13-
container.classList.add('hover-right');
14-
container.classList.remove('hover-left');
15-
});
12+
right.addEventListener('mouseenter', () => {
13+
container.classList.add('hover-right');
14+
container.classList.remove('hover-left');
15+
});
1616

17-
left.addEventListener('mouseleave', () => {
18-
container.classList.remove('hover-left');
19-
});
17+
left.addEventListener('mouseleave', () => {
18+
container.classList.remove('hover-left');
19+
});
2020

21-
right.addEventListener('mouseleave', () => {
22-
container.classList.remove('hover-right');
23-
});
24-
}
21+
right.addEventListener('mouseleave', () => {
22+
container.classList.remove('hover-right');
23+
});
24+
}
2525
});

0 commit comments

Comments
 (0)