2020-07-08 19:26:46 +00:00
|
|
|
<!DOCTYPE html>
|
2020-08-03 00:41:36 +00:00
|
|
|
<html lang="de-DE">
|
2020-07-08 19:26:46 +00:00
|
|
|
<head>
|
|
|
|
<title>datatrash</title>
|
2020-07-09 17:27:24 +00:00
|
|
|
<meta charset="utf-8" />
|
2020-07-13 13:59:16 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2020-07-08 19:26:46 +00:00
|
|
|
<link href="/static/index.css" rel="stylesheet" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main>
|
2020-07-09 17:27:24 +00:00
|
|
|
<h1><a href="/">datatrash</a></h1>
|
2020-07-08 19:26:46 +00:00
|
|
|
<p>
|
2020-08-03 00:41:36 +00:00
|
|
|
datei-link:
|
2020-08-19 14:26:47 +00:00
|
|
|
<a id="link" href="{url}">
|
2020-08-02 22:07:16 +00:00
|
|
|
{url}
|
2020-07-08 19:26:46 +00:00
|
|
|
</a>
|
|
|
|
</p>
|
2020-08-19 14:26:47 +00:00
|
|
|
<button id="copy" class="main button" onclick="copyToClipboard()">
|
|
|
|
link kopieren
|
|
|
|
</button>
|
2020-07-08 19:26:46 +00:00
|
|
|
</main>
|
2020-08-19 14:26:47 +00:00
|
|
|
<script lang="javascript">
|
|
|
|
function copyToClipboard() {
|
|
|
|
const button = document.getElementById("copy");
|
|
|
|
if (!navigator.clipboard) {
|
|
|
|
button.innerText = "nicht unterstützt";
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
const anchor = document.getElementById("link");
|
|
|
|
navigator.clipboard.writeText(anchor.href).then(
|
|
|
|
_ => { button.innerText = "kopiert!"; },
|
|
|
|
_ => { button.innerText = "nicht unterstützt"; },
|
|
|
|
);
|
|
|
|
}
|
|
|
|
</script>
|
2020-07-08 19:26:46 +00:00
|
|
|
</body>
|
|
|
|
</html>
|