From 1d10d65eb1891d1d73ce8eeb8c8c7692147a7c35 Mon Sep 17 00:00:00 2001 From: Kirill Live Date: Sat, 5 Oct 2024 16:19:58 +0300 Subject: [PATCH] Update fifteen_puzzle.js --- fifteen_puzzle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fifteen_puzzle.js b/fifteen_puzzle.js index ce6462b..fb147bf 100644 --- a/fifteen_puzzle.js +++ b/fifteen_puzzle.js @@ -41,7 +41,7 @@ function stir_slots(){ for(var y=0;y<=p.grid[1];y++){ for(var x=0;x<=p.grid[0];x++){ if(m[y][x]){ - var e=document.getElementById("slot"+m[y][x]) + let e=document.getElementById("slot"+m[y][x]) e.style.left=(x*size[0])+"px"; e.style.top =(y*size[1])+"px"; }