diff --git a/Electrical/index.html b/Electrical/index.html index 8b3a549..c2b18e2 100644 --- a/Electrical/index.html +++ b/Electrical/index.html @@ -1,5 +1,9 @@ + + Electronative + + @@ -38,7 +42,7 @@

S2:off

function ClickS2Off(){ S2=0; document.getElementById("status2").innerHTML = "S2:off"; update();} function update() { - if ((S1==1)&&(S2==1)) {c=1;} + if ((S1==1)&&(S2==1)) {c=1; alert("Closed Curcuit")} else if ((S1==1)&&(S2==0)) {c=2;} else if ((S1==0)&&(S2==1)) {c=3;} else {c=4;} @@ -63,50 +67,7 @@

S2:off

- diff --git a/Electrical/style.css b/Electrical/style.css new file mode 100644 index 0000000..8c3b516 --- /dev/null +++ b/Electrical/style.css @@ -0,0 +1,41 @@ + +.buttonon { + background-color: #4CAF50; + border: black; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 4px 2px; + cursor: pointer; +} + +.buttonoff { + background-color: aqua; + border: black; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 4px 2px; + cursor: pointer; +} + + +h1 { + color: white; + +} + +table { +background-color: black; +padding: 5px; +align: center; +width: 80%; +height: 25%; + +}