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);
|
}, 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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -113,4 +113,13 @@ hr {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 5px;
|
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,12 +20,26 @@
|
||||||
</small>
|
</small>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
<fieldset style="margin-left: 35%; margin-right: 35%; margin-bottom: 2%;">
|
||||||
<textarea id="ntfy-title" placeholder="title" rows=1 style="resize: none;"></textarea>
|
<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-message" placeholder="message" rows=2></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;display: 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; display: none;"></textarea>
|
||||||
<br>
|
<br>
|
||||||
|
<br>
|
||||||
<button
|
<button
|
||||||
class="custom-btn btn-1"
|
class="custom-btn btn-1"
|
||||||
style="width: 42%;"
|
style="width: 42%;"
|
||||||
|
@ -34,6 +48,7 @@
|
||||||
<span>Send</span>
|
<span>Send</span>
|
||||||
</button>
|
</button>
|
||||||
<br>
|
<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>
|
<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>
|
</div>
|
||||||
</section>
|
</section>
|
Loading…
Reference in a new issue