Skip to content

Commit eaf7f78

Browse files
committed
Fix cloud_len bug
1 parent d1e0e45 commit eaf7f78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Minimal/SkyFly-Day/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ <h1>4</h1>
2121
<script>
2222
let background = document.getElementById("background");
2323
let clouds = [];
24-
let cloud_len = 15;
25-
24+
let cloud_len = window.innerWidth >= 768 ? 14 : 7;
2625
function CreateCloud(length) {
2726
for (let i = 0; i < length; i++) {
2827
let Cloud = document.createElement("img");

0 commit comments

Comments
 (0)