Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <style>
- body {background-color: lightyellow}
- h1 {color:blue}
- button {
- border: 1px solid #0a3c59;
- background: #808385;
- background: -webkit-gradient(linear, left top, left bottom, from(#e0e0e0), to(#808385));
- background: -webkit-linear-gradient(top, #e0e0e0, #808385);
- background: -moz-linear-gradient(top, #e0e0e0, #808385);
- background: -ms-linear-gradient(top, #e0e0e0, #808385);
- background: -o-linear-gradient(top, #e0e0e0, #808385);
- background-image: -ms-linear-gradient(top, #e0e0e0 0%, #808385 100%);
- padding: 10.5px 21px;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
- -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
- box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
- text-shadow: #7ea4bd 0 1px 0;
- color: #06426c;
- font-size: 14px;
- font-family: helvetica, serif;
- text-decoration: none;
- vertical-align: middle;
- }
- button:hover {
- border: 1px solid #0a3c59;
- text-shadow: #1e4158 0 1px 0;
- background: #747678;
- background: -webkit-gradient(linear, left top, left bottom, from(#c0c1c2), to(#747678));
- background: -webkit-linear-gradient(top, #c0c1c2, #747678);
- background: -moz-linear-gradient(top, #c0c1c2, #747678);
- background: -ms-linear-gradient(top, #c0c1c2, #747678);
- background: -o-linear-gradient(top, #c0c1c2, #747678);
- background-image: -ms-linear-gradient(top, #c0c1c2 0%, #747678 100%);
- color: #fff;
- }
- button:active {
- text-shadow: #1e4158 0 1px 0;
- border: 1px solid #0a3c59;
- background: #707070;
- background: -webkit-gradient(linear, left top, left bottom, from(#969696), to(#747678));
- background: -webkit-linear-gradient(top, #969696, #707070);
- background: -moz-linear-gradient(top, #969696, #707070);
- background: -ms-linear-gradient(top, #969696, #707070);
- background: -o-linear-gradient(top, #969696, #707070);
- background-image: -ms-linear-gradient(top, #969696 0%, #707070 100%);
- color: #fff;
- }
- </style>
- <body>
- <div style="text-align:center">
- <h1> Robotoid's lights control <img style="height: 100px"src="/images/robot52.png"> </h1>
- <br><br>
- <span style="display:inline-block;padding:5px;border:1px solid #fc0; font-size: 140%;font-weight: bold;">
- <button style="height: 70px; width: 100px" onclick="lighton()"><img style="height: 40px"src="/images/lighton.png"></button>
- <img hspace="20" style="padding-left: 200px">
- <button style="height: 70px; width: 100px" onclick="lightoff()"><img style="height: 35px"src="/images/lightoff.png"></button>
- </span>
- <br><br>
- <br>
- <button style="height: 90px; width: 100px" onclick="forward()"><img style="height: 65px"src="/images/forward.png"></button>
- <br><br><br><br>
- <img hspace="10" style="padding-left: 5px">
- <button style="height: 90px; width: 100px" onclick="left()"><img style="height: 65px"src="/images/left.png"></button>
- <img hspace="20" style="padding-left: 10px">
- <button style="height: 90px; width: 100px" onclick="stop()"><img style="height: 63px"src="/images/stop.png"></button>
- <img hspace="20" style="padding-left: 10px">
- <button style="height: 90px; width: 100px" onclick="right()"><img style="height: 65px"src="/images/right.png"></button>
- <img hspace="10" style="padding-left: 5px">
- <br><br><br><br>
- <button style="height: 90px; width: 100px" onclick="reverse()"><img style="height: 65px"src="/images/reverse.png"></button>
- <br><br><br>
- <p>Motor speed control</p>
- <img hspace="10" style="padding-left: 5px">
- <button style="height: 50px; width: 50px; font-size: 18px" onclick="nospeed()">0</button>
- <img hspace="30" style="padding-left: 20px">
- <button style="height: 50px; width: 50px; font-size: 18px" onclick="lowspeed()">--</button>
- <img hspace="30" style="padding-left: 20px">
- <button style="height: 50px; width: 50px; font-size: 18px" onclick="regularspeed()">==</button>
- <img hspace="30" style="padding-left: 20px">
- <button style="height: 50px; width: 50px; font-size: 18px" onclick="highspeed()">++</button>
- <img hspace="10" style="padding-left: 5px">
- <br><br>
- <script>
- var xmlhttp;
- xmlhttp=new XMLHttpRequest();
- function lighton()
- {
- xmlhttp.open("GET","cgi-bin/lighton.cgi",true);
- xmlhttp.send();
- }
- function lightoff()
- {
- xmlhttp.open("GET","cgi-bin/lightoff.cgi",true);
- xmlhttp.send();
- }
- function forward()
- {
- xmlhttp.open("GET","cgi-bin/forward.cgi",true);
- xmlhttp.send();
- }
- function stop()
- {
- xmlhttp.open("GET","cgi-bin/nospeed.cgi",true);
- xmlhttp.send();
- }
- function left()
- {
- xmlhttp.open("GET","cgi-bin/left.cgi",true);
- xmlhttp.send();
- }
- function right()
- {
- xmlhttp.open("GET","cgi-bin/right.cgi",true);
- xmlhttp.send();
- }
- function reverse()
- {
- xmlhttp.open("GET","cgi-bin/reverse.cgi",true);
- xmlhttp.send();
- }
- function lowspeed()
- {
- xmlhttp.open("GET","cgi-bin/lowspeed.cgi",true);
- xmlhttp.send();
- }
- function regularspeed()
- {
- xmlhttp.open("GET","cgi-bin/medspeed.cgi",true);
- xmlhttp.send();
- }
- function highspeed()
- {
- xmlhttp.open("GET","cgi-bin/highspeed.cgi",true);
- xmlhttp.send();
- }
- function nospeed()
- {
- xmlhttp.open("GET","cgi-bin/nospeed.cgi",true);
- xmlhttp.send();
- }
- function arm_up()
- {
- xmlhttp.open("GET","cgi-bin/ARM_Up.cgi",true);
- xmlhttp.send();
- }
- function arm_center()
- {
- xmlhttp.open("GET","cgi-bin/ARM_Center.cgi",true);
- xmlhttp.send();
- }
- function arm_down()
- {
- xmlhttp.open("GET","cgi-bin/ARM_Down.cgi",true);
- xmlhttp.send();
- }
- function grip_open()
- {
- xmlhttp.open("GET","cgi-bin/GRIP_OPEN.cgi",true);
- xmlhttp.send();
- }
- function grip_small()
- {
- xmlhttp.open("GET","cgi-bin/GRIP_Small.cgi",true);
- xmlhttp.send();
- }
- function grip_med()
- {
- xmlhttp.open("GET","cgi-bin/GRIP_Med.cgi",true);
- xmlhttp.send();
- }
- function grip_big()
- {
- xmlhttp.open("GET","cgi-bin/GRIP_Big.cgi",true);
- xmlhttp.send();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement