tplink-bulb-web/public/index.html
2018-07-01 13:57:22 +02:00

79 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>TP-Link Bulb Web</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</head>
<body class="text-center col-md-12">
<h2>TP-Link Bulb Web</h2>
<div class="col-md-8 col-md-offset-2 container">
<p>
<img class="bulb img-responsive center-block">
</p>
<p class="lead">
<button class="on btn btn-success">ON</button>
<button class="off btn btn-warning">OFF</button>
</p>
<p>
<span class="text-primary">Brightness:
<span class="brightness"></span>
</span>
<br>
<span class="text-success">Hue:
<span class="hue"></span>
</span>
<br>
<span class="text-warning">Saturation:
<span class="saturation"></span>
</span>
<br>
<span class="text-info">Color Temp:
<span class="colortemp"></span>
</span>
</p>
<form class="form-horizontal" id="chsb">
<div class="form-group">
<label class="control-label col-md-2 col-md-offset-4" for="brightness">Brightness (0-100)</label>
<div class="col-md-1">
<input class="form-control" id="brightness" type="number" min="0" max="100">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-md-offset-4" for="hue">Hue (0-360)</label>
<div class="col-md-1">
<input class="form-control" id="hue" type="number" min="0" max="360">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-md-offset-4" for="saturation">Saturation (0-100)</label>
<div class="col-md-1">
<input class="form-control" id="saturation" type="number" min="0" max="100">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-md-offset-4" for="colortemp">Color Temp (0-7000)</label>
<div class="col-md-1">
<input class="form-control" id="colortemp" type="number" min="0" max="7000">
</div>
</div>
<button class="setCHSB btn btn-primary">Set</button>
</form>
<p>&nbsp;</p>
<form class="form-horizontal" id="colorform">
<div class="form-group">
<label class="control-label col-md-2 col-md-offset-4" for="brightness">Color Hex</label>
<div class="col-md-1">
<input class="form-control" id="color" type="color" value="#FFFFFF">
</div>
</div>
<button class="setColor btn btn-success">Set Color</button>
</form>
</div>
</body>
</html>