Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
SmartHome/Lights.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
94 lines (89 sloc)
2.02 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Team 2 agile work. </title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
margin: 0; | |
} | |
.header { /* Style the header */ | |
background-color: #f1f1f1; | |
padding: 20px; | |
text-align: center; | |
} | |
ul { | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
overflow: hidden; | |
background-color: rgb(216, 216, 216); | |
top: 0; | |
} | |
.active { | |
background-color: rgb(6, 247, 174); | |
border: none; | |
color: white; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
font-size: 16px; | |
margin: 4px 2px; | |
cursor: pointer; | |
-webkit-transition-duration: 0.4s; /* Safari */ | |
transition-duration: 0.4s; | |
} | |
.inactive { | |
background-color: rgb(230, 6, 6); | |
border: none; | |
color: white; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
font-size: 16px; | |
margin: 4px 2px; | |
cursor: pointer; | |
-webkit-transition-duration: 0.4s; /* Safari */ | |
transition-duration: 0.4s; | |
} | |
.active2 { | |
background-color: rgb(48, 130, 207); | |
} | |
li { | |
float: left; | |
} | |
li a { | |
display: block; | |
color: white; | |
text-align: center; | |
padding: 14px 16px; | |
text-decoration: none; | |
} | |
li a:hover { | |
background-color: rgb(206, 206, 206); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="header"> | |
<h1>Lights Page!</h1> | |
</div> | |
<ul> | |
<li> | |
<a class="active2" href="#Lights">Lights</a> | |
</li> | |
<li><a href="Tempature.html">Tempautre</a></li> | |
<li><a href="#Data">Data</a></li> | |
</ul> | |
<script type="text/javascript" src="script.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.2/mqttws31.min.js" type="text/javascript"></script> | |
<input class = "inactive" type="button" id="button" value="Interior Light" onclick="setColor(event);" /> | |
<input class = "inactive" type="button" id="button" value="Exterior Light" onclick="setColor(event);" /> | |
<input class = "inactive" type="button" id="button" value="Proximity Sensor" onclick="startConnect()" /> | |
<div id="messages"> | |
</div> | |
</body> | |
</html> |