style issue

This commit is contained in:
nelle 2024-08-18 20:08:42 -06:00
parent 961ab63e36
commit 77e35ecb85
2 changed files with 11 additions and 11 deletions

View file

@ -17,24 +17,24 @@ function sendNotification() {
async function ntfyClick() {
if (ntfyInput.value.length >= 0) {
ntfyButton.innerHTML = "ಠ﹏ಠ";
ntfyButton.innerHTML = "<span>ಠ﹏ಠ</span>";
setTimeout(()=> {
ntfyButton.innerHTML = "Send";
ntfyButton.innerHTML = "<span>Send</span>";
return;
}, 1000);
}
if (ntfyInput.value === ' ') {
ntfyButton.innerHTML = "ಠ﹏ಠ";
ntfyButton.innerHTML = "<span>ಠ﹏ಠ</span>";
setTimeout(()=> {
ntfyButton.innerHTML = "Send";
ntfyButton.innerHTML = "<span>Send</span>";
return;
}, 1000);
}
if (ntfyInput.value.length >= 1 && ntfyInput.value !== " ") {
ntfyButton.innerHTML = "Sent! ( ꈍᴗꈍ)";
ntfyButton.innerHTML = "<span>Sent! ( ꈍᴗꈍ)</span>";
sendNotification();
setTimeout(()=> {
ntfyButton.innerHTML = "Send";
ntfyButton.innerHTML = "<span>Send</span>";
}, 1000);
}
}

View file

@ -52,13 +52,13 @@ import Layout from "../layouts/Layout.astro";
<div class="ntfy-box">
<h4 style="margin-bottom: 0px;">send me a notification! type words and press send</h4>
<small style="font-size: 15px;">music recs, questions, jokes, confessions of your sins, etc, welcome, I respond to all or most as vagueposts on the fediverse</small>
<div style="display: flex;">
<div style="display: flex; justify-content: space-between;">
<br style="margin-bottom: 10px;">
<textarea id="ntfy-input" placeholder="Hi nelle! (。><。)"></textarea><button
class="ntfy-send nob4 custom-btn btn-1"
<textarea id="ntfy-input" placeholder="Hi nelle! (。><。)"></textarea>
<button
class="custom-btn btn-1"
onclick="ntfyClick()"
style="margin-left:10px;"
id="ntfy-send">Send</button
id="ntfy-send"><span>Send</span></button
>
</div>
</div>