From d5f0775e94fb502df5adb85243e7b8874c952eeb Mon Sep 17 00:00:00 2001 From: lifeadventurer Date: Mon, 6 Nov 2023 19:37:45 +0800 Subject: [PATCH] fix: responsive font-size bug --- fortune_generator/fortune.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fortune_generator/fortune.js b/fortune_generator/fortune.js index fb3ecb6..73a8c51 100644 --- a/fortune_generator/fortune.js +++ b/fortune_generator/fortune.js @@ -17,8 +17,8 @@ fetch("fortune.json") const textColor = ["#e74c3c", "#e74c3c", "#e74c3c", "#70ad47", "#000000bf", "#000000bf", "#000000bf"]; const fortuneStatus = ["大吉", "中吉", "小吉", "中平", "凶", "小凶", "大凶"]; -const allGood = `萬事皆宜`; -const allBad = `諸事不宜`; +const allGood = `萬事皆宜`; +const allBad = `諸事不宜`; function Appear() { $('#btn').html('打卡成功'); @@ -33,7 +33,7 @@ function Appear() { } let d = new Date(); - let date = d.getDate(); + let date = d.getDate() + 4; let seed = (num[0] >> 3) * (num[1] >> 2) + (num[2] << 1) * (num[3] >> 3) + (date << 3) * ((d.getMonth() + 1) << 5) + d.getFullYear(); const goodLen = goodFortunes.length; const badLen = badFortunes.length;