88 lines
1.6 KiB
HTML
88 lines
1.6 KiB
HTML
<!DOCKTYPE html>
|
|
<html lang=en-US>
|
|
<head>
|
|
<title>Trigger</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="Keywords" content="">
|
|
<meta name="Description" content="Door opener">
|
|
<link rel="icon" href="res/favicon.png" type="image/png">
|
|
|
|
<script>
|
|
const runCGI = () => {
|
|
const xmlhttp = new XMLHttpRequest();
|
|
// xmlhttp.open("GET", "https://ths.tnet.space/cgi-bin/unlock-main.cgi?passwd=c5S8De2TTPkDhkXREzSP&delay=5");
|
|
// xmlhttp.send();
|
|
}
|
|
|
|
//document.getElementById("unlock-button").onclick = runCGI();
|
|
</script>
|
|
|
|
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
font-family: sans;
|
|
font-size: 45px;
|
|
background-color: orange;
|
|
}
|
|
|
|
.button-container {
|
|
width: 100px;
|
|
height: 100px;
|
|
padding: 10px;
|
|
border-radius: 50px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#unlock-button {
|
|
background-color: limegreen;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: calc((100% / 2) - 50px);
|
|
padding: 10px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#unlock-button:active {
|
|
background-color: green;
|
|
}
|
|
|
|
#unlock-icon {
|
|
width: auto;
|
|
height: 75px;
|
|
position: relative;
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding: 5px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<h1 id="doorName">Main Door</h1>
|
|
</header>
|
|
|
|
<!--
|
|
<div>
|
|
<img src="res/doorstatus.png" alt="Door Status">
|
|
</div>
|
|
-->
|
|
|
|
<div class="button-container" id="unlock-button" onclick="runCGI()">
|
|
<img id="unlock-icon" src="res/unlockicon.png" alt="Unlock Button">
|
|
</div>
|
|
<!-- </a> -->
|
|
|
|
</body>
|
|
</html>
|