Fix format bug

master
Caleb Fontenot 2023-03-23 10:04:38 +07:00
parent 2a5e82f32c
commit 6c518693dc
1 changed files with 5 additions and 7 deletions

@ -78,15 +78,13 @@
var subOffset = 0;
var addOffset = 1;
}
for (let i = 0; i < mid - addOffset; i++) {
for (let i = 0; i < mid + addOffset; i++) {
for (let j = 0; j < i; j++) {
if (i % 2 == 1) {
if (i != (mid - 1)) {
if (i == 0 || (j == 0 || j == (i - 1))) { // Check if we're at the beginning or end of the line
document.getElementById("jsOutput").innerHTML += "*";
} else {
document.getElementById("jsOutput").innerHTML += "&nbsp;";
}
if (i == 0 || (j == 0 || j == (i - 1))) { // Check if we're at the beginning or end of the line
document.getElementById("jsOutput").innerHTML += "*";
} else {
document.getElementById("jsOutput").innerHTML += "&nbsp;";
}
}
}