Skip to content

Commit ce64eeb

Browse files
committed
style: 🎨 format of the code
1 parent 4242d60 commit ce64eeb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

js/main-en.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
const kebbi = document.getElementById('svgKebbi');
2121
const circle = document.querySelector('.circle');
2222
function imgPosition() {
23-
const ww = content.offsetWidth;
24-
const wh = content.offsetHeight;
25-
kebbi.style.left = `${(ww - kebbi.offsetWidth) / 2}px`;
26-
kebbi.style.top = `${(wh * 0.8 - kebbi.offsetHeight) / 2}px`;
27-
circle.style.width = `${ww * 0.4}px`;
28-
circle.style.height = `${ww * 0.4}px`;
29-
circle.style.left = `${(ww - circle.offsetWidth) / 2}px`;
30-
circle.style.top = `${(wh * 0.8 - circle.offsetHeight) / 2}px`;
23+
const ww = content.offsetWidth;
24+
const wh = content.offsetHeight;
25+
kebbi.style.left = `${(ww - kebbi.offsetWidth) / 2}px`;
26+
kebbi.style.top = `${(wh * 0.8 - kebbi.offsetHeight) / 2}px`;
27+
circle.style.width = `${ww * 0.4}px`;
28+
circle.style.height = `${ww * 0.4}px`;
29+
circle.style.left = `${(ww - circle.offsetWidth) / 2}px`;
30+
circle.style.top = `${(wh * 0.8 - circle.offsetHeight) / 2}px`;
3131
}
3232

3333
imgPosition();

0 commit comments

Comments
 (0)