81 lines
3.3 KiB
HTML
81 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>TP-Link Bulb Web</title>
|
|
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="assets/css/main.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">
|
|
<div>
|
|
<img class="bulb img-responsive center-block" src="assets/images/lb130-off.jpg">
|
|
</div>
|
|
<div>
|
|
<button class="on btn btn-success">ON</button>
|
|
<button class="off btn btn-warning">OFF</button>
|
|
</div>
|
|
<div>
|
|
<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>
|
|
</div>
|
|
<div>
|
|
<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="btn btn-primary">Set</button>
|
|
</form>
|
|
<form class="form-horizontal" id="colorform">
|
|
<div class="form-group">
|
|
<label class="control-label col-md-2 col-md-offset-4" for="color">Color Hex</label>
|
|
<div class="col-md-1">
|
|
<input class="form-control" id="color" type="color" value="#FFFFFF">
|
|
</div>
|
|
</div>
|
|
<button class="btn btn-success">Set Color</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |