MrRockchip

blinker_HTML

Nov 9th, 2021 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  6. <title>LED Control</title>
  7. <style>html { background-color: white; color: black; display: inline-block; font-family: "Liberation Mono", monospace; font-size: 20px; text-align: center; position: absolute; left: 0px; }
  8. body { color: black; }
  9. h1 { color: darkgray; }
  10. h2 { color: gray; }
  11. h3 { color: lightgray; }
  12. .button { background-color: white; color: white; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; margin: 5px 5px 5px 5px; padding: 3px 3px 3px 3px; }
  13. .button-on { background-color: green; }
  14. .button-on:active { background-color: darkgreen; }
  15. .button-off { background-color: blue; }
  16. .button-off:active { background-color: darkblue; }
  17. p { font-size: 15px; }
  18. </style>
  19. </head>
  20. <body>
  21. <p>LED1 Status: ON</p><a class="button button-off" href="/led1off"><button>OFF</button></a>
  22. <p>LED1 Status: OFF</p><a class="button button-on" href="/led1on"><button>ON</button></a>
  23. </body>
  24. </html>
  25.  
Add Comment
Please, Sign In to add comment