diff --git a/fortune_generator/fortune.js b/fortune_generator/fortune.js
index 91a9327..8583e13 100644
--- a/fortune_generator/fortune.js
+++ b/fortune_generator/fortune.js
@@ -43,16 +43,12 @@ async function fetch_data(){
})
}
-// color adjust
-const specialEventColor = "#3e4fbb";
-const daystoSpecialEvent = "#485ccd";
-
const textColorClass = ["good-fortune", "good-fortune", "good-fortune", "good-fortune", "good-fortune", "middle-fortune", "bad-fortune", "bad-fortune"];
const fortuneStatus = ["大吉", "中吉", "小吉", "吉", "末吉", "中平", "凶", "大凶"];
const chineseMonth = ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"];
const week = ['日', '一', '二', '三', '四', '五', '六'];
-const title = `今日運勢`;
+const title = `今日運勢`;
const allGood = `萬事皆宜`;
const allBad = `諸事不宜`;
@@ -119,12 +115,12 @@ async function init_page(){
// if there is upcoming event then show
if(eventIndex_1 != -1){
let days = daysDiff(eventIndex_1);
- let upcoming_event_1 = `距離${special_events[eventIndex_1].event}還剩${days}天`;
+ let upcoming_event_1 = `距離${special_events[eventIndex_1].event}還剩${days}天`;
$('#upcoming-event-1').html(upcoming_event_1);
}
if(eventIndex_2 != -1){
let days = daysDiff(eventIndex_2);
- let upcoming_event_2 = `距離${special_events[eventIndex_2].event}還剩${days}天`;
+ let upcoming_event_2 = `距離${special_events[eventIndex_2].event}還剩${days}天`;
$('#upcoming-event-2').html(upcoming_event_2);
}
diff --git a/fortune_generator/styles.css b/fortune_generator/styles.css
index 09c540b..09faaa3 100644
--- a/fortune_generator/styles.css
+++ b/fortune_generator/styles.css
@@ -9,7 +9,7 @@
--date-color: #096e1bC9;
--special-event-color: #3e4fbb;
--days-to-special-event-color: #485ccd;
-
+ --title-color: #000000CC;
}
.dark-mode {
@@ -17,13 +17,13 @@
--button-hover-color: #9ac6f1;
--bg-color: #1e1d24;
--good-fortune-color: #e74c3c;
- --bad-fortune-color: #c1c1c1d9;
+ --bad-fortune-color: #d4d4d4d9;
--middle-fortune-color: #57c857;
--desc-color: #838282;
- --date-color: #2fc64aed;
- --special-event-color: #3e4fbb;
- --days-to-special-event-color: #485ccd;
+ --date-color: #0ed64aed;
+ --special-event-color: #6477f3;
--dark-mode-icon-color: #ffffff;
+ --title-color: #cdcdcd;
}
@@ -75,6 +75,14 @@ body {
color: var(--date-color);
}
+.title {
+ color: var(--title-color);
+}
+
+.special-event {
+ color: var(--special-event-color);
+}
+
button {
background-color: var(--button-color);
color: var(--bg-color);