Skip to content

Commit bc13d2b

Browse files
authored
Update tools.js
1 parent 45ac659 commit bc13d2b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tetris/js/tools.js

+10-12
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ function draw_background_title()
4040
var i = 0;
4141
title_contner.innerHTML = "";
4242
while (i < ((window.innerWidth / 25) * 5))
43-
{
44-
var rand_color = random_color();
45-
title_contner.innerHTML += "<div class=\"relative_piece low_opacity " + rand_color + "\">";
46-
i++;
47-
}
48-
// draw_title(i);
49-
// }
50-
// draw_background_title()
51-
// window.onresize = function(){
52-
//
53-
// draw_background_title();
54-
// }
43+
{
44+
var rand_color = random_color();
45+
title_contner.innerHTML += "<div class=\"relative_piece low_opacity " + rand_color + "\">";
46+
i++;
47+
}
48+
draw_title(i);
49+
}
50+
draw_background_title()
51+
window.onresize = function(){
52+
draw_background_title();
5553
}

0 commit comments

Comments
 (0)