Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
sk5s committed Jun 25, 2023
1 parent b938522 commit bd9828f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h5 class="title is-5 has-text-grey has-text-weight-light" id="whatToWear"></h5>
<span class="icon is-small">
<i class="fab fa-weebly"></i>
</span>
<span class="ml-3" data-i18n-key="week_forecast">Week forecast</span>
<span class="ml-3" data-i18n-key="week_forecast">一周天氣</span>
</button>

<!-- SpeechSynthesis button -->
Expand All @@ -93,13 +93,13 @@ <h5 class="title is-5 has-text-grey has-text-weight-light" id="whatToWear"></h5>
<span class="icon is-small">
<i class="fas fa-cloud"></i>
</span>
<span class="ml-3" data-i18n-key="radar">Radar</span>
<span class="ml-3" data-i18n-key="radar">雷達回波</span>
</button>
<div class="modal" id="radar_iframe_modal" data-modal-name="radar">
<div class="modal-background" onclick="close_modal(this)" data-modal-to-close="radar"></div>
<div class="modal-card" style="min-height: 99%">
<header class="modal-card-head">
<p class="modal-card-title" data-i18n-key="radar">Radar</p>
<p class="modal-card-title" data-i18n-key="radar">雷達回波</p>
<button class="delete" aria-label="close" onclick="close_modal(this)" data-modal-to-close="radar"></button>
</header>
<section class="modal-card-body" style="padding: 0">
Expand Down Expand Up @@ -129,7 +129,7 @@ <h5 class="title is-5 has-text-grey has-text-weight-light" id="whatToWear"></h5>
<span class="card-header-icon">
<i class="fas fa-angle-double-right"></i>
</span>
<span class="card-header-title" data-i18n-key="quote"> Quote </span>
<span class="card-header-title" data-i18n-key="quote">佳句</span>
</div>
<div class="card-content">
<div class="content" id="quote_block_inner_content">
Expand All @@ -155,7 +155,7 @@ <h5 class="title is-5 has-text-grey has-text-weight-light" id="whatToWear"></h5>
<span class="icon is-small">
<i class="fas fa-cog"></i>
</span>
<span data-i18n-key="config" class="ml-3">Config</span>
<span data-i18n-key="config" class="ml-3">設定</span>
</button>
</div>
</div>
Expand All @@ -166,7 +166,7 @@ <h5 class="title is-5 has-text-grey has-text-weight-light" id="whatToWear"></h5>
<div class="modal-background" onclick="close_modal(this)" data-modal-to-close="config"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" data-i18n-key="config">Config</p>
<p class="modal-card-title" data-i18n-key="config">設定</p>
<button class="delete" aria-label="close" onclick="close_modal(this)" data-modal-to-close="config"></button>
</header>
<section class="modal-card-body">
Expand Down
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,9 @@ function whatToWearNow(high, low, pop) {
if (precipProbability < 20) {
return `不用帶${precipType}衣!`
} else if (precipProbability > 70) {
return `帶著${precipType}衣出門吧!(你有 ${100 - precipProbability}% 的機會不會被雨淋)`
return `帶著${precipType}衣出門吧!`
} else {
return `最好帶著${precipType}(你有 ${100 - precipProbability}% 的機會不會被雨淋)`
return `最好帶著${precipType}衣`
}
}
return `可以穿<b>${genClothingMsg(low, high)}</b>並且<b>${genCoatMsg(pop, '雨')}</b>`
Expand Down

0 comments on commit bd9828f

Please sign in to comment.