Hi
I have created a HTTP web server and I define some button for turning on and turning of som LEDs
I want to know how can I set a command on this Buttons to set value 1 to When I push the button and send 1 via USART of my ESP8266 Module.
in my web server I can see the button but I want to set command for that button.
My code of defining Button is here:
.button { position: relative; background-color: #4CAF50; border: none; font-size: 28px; color: #FFFFFF; padding: 20px; width: 200px; text-align: center; -webkit-transition-duration: 0.4s; /* Safari */ transition-duration: 0.4s; text-decoration: none; overflow: hidden; cursor: pointer; }.button:after {
content: "";
background: #90EE90;
display: block;
position: absolute;
padding-top: 300%;
padding-left: 350%;
margin-left: -20px!important;
margin-top: -120%;
opacity: 0;
transition: all 0.8s
}
.button:active:after {
padding: 0;
margin: 0;
opacity: 1;
transition: 0s
}
Animated Button - Ripple Effect
Click Me