mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Web: Centralize websocket, add json port changer and led schemas (#209)
* add comp test * update web * . * typo [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user