Skip to content

Commit

Permalink
add: Temporary notice display
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokuyow committed Mar 1, 2024
1 parent 83537ee commit 6f65d49
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 21 deletions.
43 changes: 24 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@

<body>
<div class="main">

<div class="marquee">
<a href="https://btcln.shop/marche/">おいくらサッツ ステッカー、シール販売決定! 自由が丘 ライトニングマルシェ 3月2日 四谷ラボブースにて【詳細】</a>
</div>

<div class="bgcolor">
<div class="title-flex">
<a class="title" href="https://lokuyow.github.io/sats-rate/" aria-label="おいくらサッツ">
Expand Down Expand Up @@ -113,7 +118,8 @@
</svg>
</button>
<input class="currency-input" type="text" id="sats" aria-label="サッツの金額"
oninput="window.satsRate.calculateValues('sats')" pattern="[0-9]+([\.,][0-9]+)?" inputmode="decimal">
oninput="window.satsRate.calculateValues('sats')" pattern="[0-9]+([\.,][0-9]+)?"
inputmode="decimal">
<button class="currency-units" id="paste-sats" data-currency="sats" aria-label="サッツの数値をペースト">
sats
</button>
Expand All @@ -124,7 +130,8 @@
</svg>
</button>
<input class="currency-input" type="text" id="btc" aria-label="ビットコインの金額"
oninput="window.satsRate.calculateValues('btc')" pattern="[0-9]+([\.,][0-9]+)?" inputmode="decimal">
oninput="window.satsRate.calculateValues('btc')" pattern="[0-9]+([\.,][0-9]+)?"
inputmode="decimal">
<button class="currency-units" id="paste-btc" data-currency="btc" aria-label="ビットコインの数値をペースト">
BTC
</button>
Expand All @@ -135,7 +142,8 @@
</svg>
</button>
<input class="currency-input" type="text" id="jpy" aria-label="日本円の金額"
oninput="window.satsRate.calculateValues('jpy')" pattern="[0-9]+([\.,][0-9]+)?" inputmode="decimal">
oninput="window.satsRate.calculateValues('jpy')" pattern="[0-9]+([\.,][0-9]+)?"
inputmode="decimal">
<button class="currency-units" id="paste-jpy" aria-label="円の数値をペースト">
JPY
</button>
Expand All @@ -146,7 +154,8 @@
</svg>
</button>
<input class="currency-input" type="text" id="usd" aria-label="アメリカドルの金額"
oninput="window.satsRate.calculateValues('usd')" pattern="[0-9]+([\.,][0-9]+)?" inputmode="decimal">
oninput="window.satsRate.calculateValues('usd')" pattern="[0-9]+([\.,][0-9]+)?"
inputmode="decimal">
<button class="currency-units" id="paste-usd" data-currency="usd" aria-label="USドルの数値をペースト">
USD
</button>
Expand All @@ -157,7 +166,8 @@
</svg>
</button>
<input class="currency-input" type="text" id="eur" aria-label="ユーロの金額"
oninput="window.satsRate.calculateValues('eur')" pattern="[0-9]+([\.,][0-9]+)?" inputmode="decimal">
oninput="window.satsRate.calculateValues('eur')" pattern="[0-9]+([\.,][0-9]+)?"
inputmode="decimal">
<button class="currency-units" id="paste-eur" data-currency="eur" aria-label="ユーロの数値をペースト">
EUR
</button>
Expand All @@ -184,21 +194,16 @@
<dialog id="update-lightning-address-dialog">
<form id="lightning-address-form">
<label class="lightning-address-label" for="lightning-address">受取用ライトニングアドレス
<input
type="text"
name="lightning-address"
id="lightning-address-input"
class="lightning-address-input"
pattern="^[a-z0-9._%+\-]+@[a-z0-9\.\-]+\.[a-z]{2,3}$"
maxlength="200"
minlength="4"
required
title="ライトニングアドレスの形式で入力してください"
/>
<input type="text" name="lightning-address" id="lightning-address-input"
class="lightning-address-input" pattern="^[a-z0-9._%+\-]+@[a-z0-9\.\-]+\.[a-z]{2,3}$"
maxlength="200" minlength="4" required title="ライトニングアドレスの形式で入力してください" />
<div>
<button id="lightning-address-submit-button" type="submit" formmethod="dialog">設定する</button>
<button id="lightning-address-clear-button" value="clear" formmethod="dialog">削除</button>
<button id="lightning-address-close-button" value="cancel" formmethod="dialog">閉じる</button>
<button id="lightning-address-submit-button" type="submit"
formmethod="dialog">設定する</button>
<button id="lightning-address-clear-button" value="clear"
formmethod="dialog">削除</button>
<button id="lightning-address-close-button" value="cancel"
formmethod="dialog">閉じる</button>
</div>
</label>
</form>
Expand Down
25 changes: 24 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -736,4 +736,27 @@ input:checked+.slider:before {

#lightning-address-form button {
background-color: var(--main-bg-color);
}
}

.marquee {
display: block;
width: 100%; /* ビューポートに合わせて幅を設定 */
overflow: hidden; /* コンテナ外のテキストを非表示に */
white-space: nowrap; /* テキストを1行に */
max-width: 800px;
padding-top: 6px;
}

.marquee a {
display: inline-block;
animation: marquee 15s linear infinite;
text-decoration: none; /* リンクの下線を除去 */
font-size: 1rem;
color: var(--input-text-color);
}

@keyframes marquee {
0% { transform: translateX(100%); }
100% { transform: translateX(-100%); }
}

2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const urlsToCache = [
'./images/settings-solid.svg'
];

const VERSION = '1.41.1';
const VERSION = '1.41.2';
let CACHE_NAME = 'sats-rate-caches-' + VERSION;
const MY_CACHES = new Set([CACHE_NAME]);

Expand Down

0 comments on commit 6f65d49

Please sign in to comment.