mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
26 lines
882 B
HTML
26 lines
882 B
HTML
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Discord webhook yeeter</title>
|
|
</head>
|
|
<body>
|
|
<label>Url:</label><br>
|
|
<textarea value="" rows="6" cols="80" id="input" required></textarea><br>
|
|
<button type="button" onclick="YEET();">YEET</button>
|
|
<h1 id="out"></h1>
|
|
<script>
|
|
function YEET(){
|
|
const url = document.getElementById("input").value
|
|
const output = document.getElementById("out")
|
|
fetch(url, { method: 'DELETE' })
|
|
.then((response) => {
|
|
if(response.ok) {
|
|
output.innerHTML = 'Succesfully yeeted';
|
|
}
|
|
else {
|
|
output.innerHTML = 'Failed to yeet';
|
|
}
|
|
|
|
})
|
|
}
|
|
</script>
|
|
</body> |