We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ac659 commit bc13d2bCopy full SHA for bc13d2b
tetris/js/tools.js
@@ -40,16 +40,14 @@ function draw_background_title()
40
var i = 0;
41
title_contner.innerHTML = "";
42
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
+ {
+ var rand_color = random_color();
+ title_contner.innerHTML += "<div class=\"relative_piece low_opacity " + rand_color + "\">";
+ i++;
+ }
+ draw_title(i);
+}
+draw_background_title()
+window.onresize = function(){
+ draw_background_title();
55
}
0 commit comments