Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html = """<!DOCTYPE html>
- <html>
- <head>
- <title>Yunshan Interface by MASUGUX</title>
- <script>
- var ON = 1;
- var OFF = 0;
- function turnRelay(state){
- if (state == ON){
- var location_now = window.location.hostname;
- window.location.replace("/?relay=on");
- }
- else if (state == OFF){
- var location_now = window.location.hostname;
- window.location.replace("?relay=off");
- }
- }
- </script>
- </head>
- <body>
- <h1>Interface de controle</h1>
- <br>
- <h3>MASUGUX e Do bit Ao Byte</h3>
- <table border="0">
- <tr>
- <th>
- <button type="button" onclick="turnRelay(ON)">Ligar</button>
- </th>
- <th>
- <button type="button" onclick="turnRelay(OFF)">Desligar</button>
- </th>
- </tr>
- </table>
- </body>
- </html>
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement