mirror of
https://github.com/Noratrieb/wakeonlan.git
synced 2026-01-14 16:55:01 +01:00
app
This commit is contained in:
parent
563ba7c519
commit
68d5e7360d
8 changed files with 1035 additions and 16 deletions
45
index.html
Normal file
45
index.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Wake on LAN</title>
|
||||
<style>
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wake-button {
|
||||
height: 200px;
|
||||
width: 300px;
|
||||
font-size: 48pt;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<h1>Wake on LAN</h1>
|
||||
<button class="wake-button">WAKE</button>
|
||||
</div>
|
||||
<script type="module">
|
||||
document.querySelector(".wake-button").addEventListener("click", () => {
|
||||
fetch("/wake", {
|
||||
method: "POST",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue