Added index
This commit is contained in:
parent
f0b2c2261e
commit
7a616198ab
1 changed files with 30 additions and 0 deletions
30
index.html
Normal file
30
index.html
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Life Raft Page</title>
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/picocss@1.0.0-beta.8/dist/pico.min.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<h1>🛟 This is your Life Raft</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<pre id="codeBlock">curl -O https://abc.com/rustdesk.sh && chmod +x rustdesk.sh && ./rustdesk.sh</pre>
|
||||||
|
<button onclick="copyCode()">Copy</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function copyCode() {
|
||||||
|
const codeBlock = document.getElementById('codeBlock').innerText;
|
||||||
|
navigator.clipboard.writeText(codeBlock).then(() => {
|
||||||
|
alert('Code copied to clipboard!');
|
||||||
|
}, (err) => {
|
||||||
|
console.error('Error in copying text: ', err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in a new issue