daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Jun 22nd, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function AlteraRele1(){var estado=document.getElementById("estado").innerHTML;if(estado==="0"){document.getElementById("estado").innerHTML="1";document.getElementById("rele").innerHTML="<div class='rele1_ligado'></div>";document.getElementById("botao").innerHTML="<a href='/?desligar' class='botao'>Desliga</a>";}else{document.getElementById("estado").innerHTML="0";document.getElementById("rele").innerHTML="<div class='rele1_desligado'></div>";document.getElementById("botao").innerHTML="<a href='/?ligar' class='botao'>Liga</a>";}}
  2. function AlteraRele2(){var estado_2=document.getElementById("estado_2").innerHTML;if(estado_2==="0"){document.getElementById("estado_2").innerHTML="1";document.getElementById("rele_2").innerHTML="<div class='rele2_ligado'></div>";document.getElementById("botao_2").innerHTML="<a href='/?2_desligar' class='botao_2'>Desliga</a>";}else{document.getElementById("estado_2").innerHTML="0";document.getElementById("rele_2").innerHTML="<div class='rele2_desligado'></div>";document.getElementById("botao_2").innerHTML="<a href='/?2_ligar' class='botao_2'>Liga</a>";}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top