yeah
This commit is contained in:
parent
2237dff647
commit
50b40ad09f
3 changed files with 56 additions and 5 deletions
|
@ -81,3 +81,30 @@ async function ntfyClick() {
|
|||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
function toggleTitle() {
|
||||
if (ntfyTitle.style.display === "none") {
|
||||
ntfyTitle.style.display = "internal"
|
||||
}
|
||||
else {
|
||||
ntfyTitle.style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
function toggleAttach() {
|
||||
if (ntfyAttach.style.display === "none") {
|
||||
ntfyAttach.style.display = "internal"
|
||||
}
|
||||
else {
|
||||
ntfyAttach.style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
function toggleClick() {
|
||||
if (ntfyClickAction.style.display === "none") {
|
||||
ntfyClickAction.style.display = "internal"
|
||||
}
|
||||
else {
|
||||
ntfyClickAction.style.display = "none"
|
||||
}
|
||||
}
|
|
@ -114,3 +114,12 @@ hr {
|
|||
justify-content: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
-webkit-box-shadow: 0 0 20px var(--accent-color);
|
||||
-moz-box-shadow: 0 0 20px var(--accent-color);
|
||||
box-shadow: 0 0 20px var(--accent-color);
|
||||
border: 2.5px solid var(--accent);
|
||||
border-radius: 3px;
|
||||
display: inherit;
|
||||
}
|
|
@ -20,11 +20,25 @@
|
|||
</small>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none;"></textarea>
|
||||
<fieldset style="margin-left: 35%; margin-right: 35%; margin-bottom: 2%;">
|
||||
<div>
|
||||
<input type="checkbox" id="title" name="title" onchange="toggleTitle()" />
|
||||
<label for="title">Add Title?</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="attachment" name="attachment" onchange="toggleAttach()" />
|
||||
<label for="attachment">Add Attachment?</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="click" name="click" onchange="toggleClick()" />
|
||||
<label for="click">Add Click Action?</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none; display: none;"></textarea>
|
||||
<textarea id="ntfy-message" placeholder="message" rows=2></textarea>
|
||||
<textarea id="ntfy-attach" placeholder="attachment link" rows=1 style="resize: none;"></textarea>
|
||||
<textarea id="ntfy-click" placeholder="click link" rows=1 style="resize: none;"></textarea>
|
||||
<textarea id="ntfy-attach" placeholder="attachment link" rows=1 style="resize: none;display: none;"></textarea>
|
||||
<textarea id="ntfy-click" placeholder="click link" rows=1 style="resize: none; display: none;"></textarea>
|
||||
<br>
|
||||
<br>
|
||||
<button
|
||||
class="custom-btn btn-1"
|
||||
|
@ -34,6 +48,7 @@
|
|||
<span>Send</span>
|
||||
</button>
|
||||
<br>
|
||||
<br>s
|
||||
<small>if it doesnt seem to be working, or you have javascript disabled, <br>you can POST to <span class="glitch">https://ntfy.ouroboros.group/beep</span>.</small>
|
||||
</div>
|
||||
</section>
|
Loading…
Reference in a new issue