This commit is contained in:
nelle 2024-09-03 03:54:18 -06:00
parent 8c04183bfe
commit a52060180a
2 changed files with 1 additions and 4 deletions

View file

@ -1,6 +1,5 @@
const ntfyMessage = document.getElementById("ntfy-message");
const ntfyTitle = document.getElementById("ntfy-title");
const ntfyTags = document.getElementById("ntfy-tags");
const ntfyAttach = document.getElementById("ntfy-attach");
const ntfyClickAction = document.getElementById("ntfy-click");
const ntfyButton = document.getElementById("ntfy-button");
@ -47,12 +46,11 @@ function getPlaceholder() {
}
// send function
function send(message, title, tags, attachment, click) {
function send(message, title, attachment, click) {
const r = new XMLHttpRequest();
r.open("POST", "https://ntfy.ouroboros.group/beep", true);
r.setRequestHeader("Content-Type", "text/plain");
r.setRequestHeader("Title", title);
r.setRequestHeader("Tags", tags);
r.setRequestHeader("Attach", attachment);
r.setRequestHeader("Click", click);
r.send(message);

View file

@ -23,7 +23,6 @@
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none;"></textarea>
<textarea id="ntfy-message" placeholder="message" rows=2></textarea>
<textarea id="ntfy-tags" placeholder="tags" rows=1 style="resize: none;"></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>
<br>