|
|
|
@ -70,10 +70,10 @@ Grid.prototype.drawWalls = function() { |
|
|
|
|
|
|
|
|
|
if (i1 === i2) { |
|
|
|
|
wall.className = 'content-wall-y'; |
|
|
|
|
wall.style.height = this.squareSideLength + 'px'; |
|
|
|
|
wall.style.height = `${this.squareSideLength + 2}px`; |
|
|
|
|
} else { |
|
|
|
|
wall.className = 'content-wall-x'; |
|
|
|
|
wall.style.width = this.squareSideLength + 'px'; |
|
|
|
|
wall.style.width = `${this.squareSideLength + 2}px`; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grid.appendChild(wall) |
|
|
|
@ -236,10 +236,10 @@ Grid.prototype.drawObjective = function() { |
|
|
|
|
|
|
|
|
|
star.appendChild(path); |
|
|
|
|
star.style.position = 'absolute'; |
|
|
|
|
star.style.left = `${s * this.objective.i}px` |
|
|
|
|
star.style.top = `${s * this.objective.j}px` |
|
|
|
|
star.style.height = `${s}px`; |
|
|
|
|
star.style.width = `${s}px`; |
|
|
|
|
star.style.left = `${s * this.objective.i + 4}px` |
|
|
|
|
star.style.top = `${s * this.objective.j + 4}px` |
|
|
|
|
star.style.height = `${s - 8}px`; |
|
|
|
|
star.style.width = `${s - 8}px`; |
|
|
|
|
|
|
|
|
|
grid.appendChild(star); |
|
|
|
|
}; |
|
|
|
|