no tags
This commit is contained in:
parent
8c04183bfe
commit
a52060180a
2 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
const ntfyMessage = document.getElementById("ntfy-message");
|
const ntfyMessage = document.getElementById("ntfy-message");
|
||||||
const ntfyTitle = document.getElementById("ntfy-title");
|
const ntfyTitle = document.getElementById("ntfy-title");
|
||||||
const ntfyTags = document.getElementById("ntfy-tags");
|
|
||||||
const ntfyAttach = document.getElementById("ntfy-attach");
|
const ntfyAttach = document.getElementById("ntfy-attach");
|
||||||
const ntfyClickAction = document.getElementById("ntfy-click");
|
const ntfyClickAction = document.getElementById("ntfy-click");
|
||||||
const ntfyButton = document.getElementById("ntfy-button");
|
const ntfyButton = document.getElementById("ntfy-button");
|
||||||
|
@ -47,12 +46,11 @@ function getPlaceholder() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send function
|
// send function
|
||||||
function send(message, title, tags, attachment, click) {
|
function send(message, title, attachment, click) {
|
||||||
const r = new XMLHttpRequest();
|
const r = new XMLHttpRequest();
|
||||||
r.open("POST", "https://ntfy.ouroboros.group/beep", true);
|
r.open("POST", "https://ntfy.ouroboros.group/beep", true);
|
||||||
r.setRequestHeader("Content-Type", "text/plain");
|
r.setRequestHeader("Content-Type", "text/plain");
|
||||||
r.setRequestHeader("Title", title);
|
r.setRequestHeader("Title", title);
|
||||||
r.setRequestHeader("Tags", tags);
|
|
||||||
r.setRequestHeader("Attach", attachment);
|
r.setRequestHeader("Attach", attachment);
|
||||||
r.setRequestHeader("Click", click);
|
r.setRequestHeader("Click", click);
|
||||||
r.send(message);
|
r.send(message);
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none;"></textarea>
|
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none;"></textarea>
|
||||||
<textarea id="ntfy-message" placeholder="message" rows=2></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-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-click" placeholder="click link" rows=1 style="resize: none;"></textarea>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in a new issue