Web: Centralize websocket, add json port changer and led schemas (#209)

* add comp test

* update web

* .

* typo

[skip ci]
This commit is contained in:
brindosch
2016-08-30 23:25:27 +02:00
committed by GitHub
parent 02ee557300
commit 0603fadd21
26 changed files with 397 additions and 86 deletions

View File

@@ -21,14 +21,6 @@
<script>
var webSocket = new WebSocket('ws://'+document.location.hostname+':19444');
webSocket.onerror = function(event) {
alert(event.data);
};
webSocket.onopen = function(event) {
$(function() {
$('#cp2').colorpicker({
format: 'rgb',
@@ -66,7 +58,7 @@
webSocket.send('{"command":"clear", "priority":1}');
});
};
webSocket.onmessage = function(event){
console.log(event.data);