Skip to content

Commit

Permalink
fix: change bubbles number
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Nov 13, 2023
1 parent 290819d commit 1c2d440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function calcRandomArr() {
const width = document
.getElementsByTagName("body")[0]
.getBoundingClientRect().width;
if (width >= 1500) num = 40;
else if (width <= 800) num = 15;
else num = 25;
if (width >= 1500) num = 45;
else if (width <= 800) num = 25;
else num = 30;
let bubbles = [];
for (let i = 0, len = num; i < len; ++i) {
let a = Math.round(Math.random() * 15) + 5;
Expand Down

0 comments on commit 1c2d440

Please sign in to comment.