rename res to img
parent
019db4b7e1
commit
91ab80d67e
BIN
res/favicon.png
BIN
res/favicon.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.9 KiB |
29
trigger.html
29
trigger.html
|
|
@ -11,8 +11,8 @@
|
||||||
<script>
|
<script>
|
||||||
const runCGI = () => {
|
const runCGI = () => {
|
||||||
const xmlhttp = new XMLHttpRequest();
|
const xmlhttp = new XMLHttpRequest();
|
||||||
xmlhttp.open("GET", "https://ths.tnet.space/cgi-bin/unlock-main.cgi?passwd=c5S8De2TTPkDhkXREzSP&delay=5");
|
// xmlhttp.open("GET", "https://ths.tnet.space/cgi-bin/unlock-main.cgi?passwd=c5S8De2TTPkDhkXREzSP&delay=5");
|
||||||
xmlhttp.send();
|
// xmlhttp.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
//document.getElementById("unlock-button").onclick = runCGI();
|
//document.getElementById("unlock-button").onclick = runCGI();
|
||||||
|
|
@ -32,24 +32,28 @@ h1 {
|
||||||
font-size: 45px;
|
font-size: 45px;
|
||||||
background-color: orange;
|
background-color: orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-container {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 50px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
#unlock-button {
|
#unlock-button {
|
||||||
background-color: limegreen;
|
background-color: limegreen;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: calc((100% / 2) - 50px);
|
||||||
width: 100%;
|
|
||||||
height: 100px;
|
|
||||||
/*border-radius: 50%;*/
|
|
||||||
/*margin-left: 0;*/
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
/*width: 400px;*/
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
/*border: 3px solid red;*/
|
|
||||||
/* margin-right: auto; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#unlock-button:active {
|
#unlock-button:active {
|
||||||
background-color: green;
|
background-color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
#unlock-icon {
|
#unlock-icon {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 75px;
|
height: 75px;
|
||||||
|
|
@ -59,6 +63,7 @@ h1 {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -72,8 +77,8 @@ h1 {
|
||||||
<img src="res/doorstatus.png" alt="Door Status">
|
<img src="res/doorstatus.png" alt="Door Status">
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<!-- <a href="https://ths.tnet.space/cgi-bin/unlock-main.cgi?passwd=c5S8De2TTPkDhkXREzSP&delay=5"> -->
|
|
||||||
<div id="unlock-button" onclick="runCGI()">
|
<div class="button-container" id="unlock-button" onclick="runCGI()">
|
||||||
<img id="unlock-icon" src="res/unlockicon.png" alt="Unlock Button">
|
<img id="unlock-icon" src="res/unlockicon.png" alt="Unlock Button">
|
||||||
</div>
|
</div>
|
||||||
<!-- </a> -->
|
<!-- </a> -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue