2019-01-13 16:45:50 +01:00
|
|
|
|
<!DOCTYPE html>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<title>ESP8266 + FastLED by Evil Genius Labs</title>
|
|
|
|
|
<!-- request CSS from internet CDN -->
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
|
|
|
|
|
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.4/jquery.minicolors.min.css" integrity="sha256-4wnSkPYU5B4yngAlx/rEb8LdfMah4teUth4AfhGEuaY=" crossorigin="anonymous" /> -->
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<!-- request CSS from the ESP8266 web server -->
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
|
|
|
<link rel="stylesheet" href="css/minicolors.min.css">
|
2016-03-10 14:57:02 +01:00
|
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
|
|
|
<link rel="icon" href="images/atom196.png">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<nav class="navbar navbar-default navbar-static-top" id="top" role="banner">
|
2016-03-10 14:57:02 +01:00
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="navbar-header">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
|
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
</button>
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<a class="navbar-brand" href="https://www.evilgeniuslabs.org" target="_blank"><img src="/images/atom196.png" style="width: 24px; height: 24px;" /></a>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<a class="navbar-brand" href="https://www.evilgeniuslabs.org" target="_blank">Evil Genius Labs</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
|
|
|
|
<ul class="nav navbar-nav">
|
2019-01-13 16:45:50 +01:00
|
|
|
|
<li class="active"><a href="/">DIY Nanoleaf control <span class="sr-only">(current)</span></a></li>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<li><a href="/simple.htm" target="_blank" title="Simple Mode">Simple</a></li>
|
|
|
|
|
<li><a href="/edit.htm" target="_blank" title="Edit Files">Files</a></li>
|
|
|
|
|
<li><a href="/update" target="_blank" title="Update Firmware">Firmware</a></li>
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<li><a href="/wifi.htm" target="_blank" title="Wi-Fi Settings">Wi-Fi</a></li>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</ul>
|
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
|
<li>
|
2017-02-18 21:40:56 +01:00
|
|
|
|
<a href="https://github.com/jasoncoon/esp8266-fastled-webserver">
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<img style="height: 16px;" src="/images/github.ico" />
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</nav>
|
|
|
|
|
<div id="container" class="container">
|
2019-01-13 16:45:50 +01:00
|
|
|
|
<form class="form-horizontal" id="form"></form>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="templates" style="display: none">
|
|
|
|
|
<div id="sectionTemplate" class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<hr style="margin-bottom: 5px;margin-top: 5px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="numberTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label"></label>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<input class="form-control input" type="number" step="1" min="0" max="255" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control slider" type="range" step="1" min="0" max="255" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="booleanTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label"></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default" id="btnOn">On</button>
|
|
|
|
|
<button type="button" class="btn btn-default" id="btnOff">Off</button>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="selectTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label"></label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control"><select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
|
|
|
<button type="button" class="btn btn-default btn-previous"
|
|
|
|
|
aria-label="Previous" title="Previous">
|
|
|
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-default btn-next"
|
|
|
|
|
aria-label="Next" title="Next">
|
|
|
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
|
|
|
</button>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
2019-01-13 16:45:50 +01:00
|
|
|
|
<div id="booleanTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label"></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default" id="btnOn">On</button>
|
|
|
|
|
<button type="button" class="btn btn-default" id="btnOff">Off</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="selectTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label"></label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control"><select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
|
|
|
<button type="button" class="btn btn-default btn-previous"
|
|
|
|
|
aria-label="Previous" title="Previous">
|
|
|
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-default btn-next"
|
|
|
|
|
aria-label="Next" title="Next">
|
|
|
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<div id="colorPaletteTemplate" class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label color-label"></label>
|
2019-01-13 16:45:50 +01:00
|
|
|
|
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<div class="btn-group btn-group-justified" role="group">
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FF0000;" title="Red"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FF8000;" title="Orange"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FFFF00;" title="Yellow"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #80FF00;" title="Chartreuse"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #00FF00;" title="Green"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #00FF80;" title="Spring Green"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #00FFFF;" title="Cyan"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #0080FF;" title="Azure"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #0000FF;" title="Blue"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #8000FF;" title="Violet"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FF00FF;" title="Magenta"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FF0080;" title="Rose"> </button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-color" style="background: #FFFFFF;" title="White"> </button>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div id="colorTemplate">
|
2016-03-10 14:57:02 +01:00
|
|
|
|
<div class="form-group">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<!-- <label class="col-sm-2 control-label color-label"></label> -->
|
|
|
|
|
<div class="col-sm-12 col-sm-offset-2">
|
|
|
|
|
<input type="text" class="form-control minicolors" />
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<label class="col-sm-2 control-label">Red</label>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<input class="form-control color-red-input" type="number" step="1" min="0" max="255" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control color-red-slider" type="range" step="1" min="0" max="255" />
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<label class="col-sm-2 control-label">Green</label>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<input class="form-control color-green-input" type="number" step="1" min="0" max="255" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control color-green-slider" type="range" step="1" min="0" max="255" />
|
2016-03-12 18:28:33 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<label class="col-sm-2 control-label">Blue</label>
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
<input class="form-control color-blue-input" type="number" step="1" min="0" max="255" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control color-blue-slider" type="range" step="1" min="0" max="255" />
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
</div>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</div>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="navbar-header">
|
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-2" aria-expanded="false">
|
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbar-collapse-2">
|
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/" aria-label="Refresh" title="Refresh">
|
|
|
|
|
<span class="glyphicon glyphicon-refresh" id="btnRefresh"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><p class="navbar-text" id="status">Loading, please wait...</p></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
<!-- request js from internet CDN -->
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<!-- <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> -->
|
|
|
|
|
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->
|
|
|
|
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.4/jquery.minicolors.min.js" integrity="sha256-XAFQ9dZ6hy8p/GRhU8h/8pMvM1etymiJLZW1CiHV3bQ=" crossorigin="anonymous"></script> -->
|
|
|
|
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/reconnecting-websocket/1.0.0/reconnecting-websocket.min.js" integrity="sha256-A4JwlcDvqO4JXpvEtvWY1RH8JAEMu5W21wP8GUXLUNs=" crossorigin="anonymous"></script> -->
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<!-- request js from the ESP8266 web server -->
|
2017-11-19 04:45:50 +01:00
|
|
|
|
<script src="js/jquery-3.1.1.min.js"></script>
|
|
|
|
|
<script src="js/bootstrap.min.js"></script>
|
|
|
|
|
<script src="js/minicolors.min.js"></script>
|
|
|
|
|
<script src="js/r-websocket.min.js"></script>
|
2016-12-18 23:02:44 +01:00
|
|
|
|
<script src="js/app.js"></script>
|
2016-03-10 14:57:02 +01:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|