www/js/global.js

Sat, 13 Apr 2024 16:50:26 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 13 Apr 2024 16:50:26 +0200
changeset 675
825210ba2707
child 686
372b2442a30f
permissions
-rw-r--r--

Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.



/* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */
var websocket = new ReconnectingWebSocket('ws://'+location.hostname+'/ws');

websocket.onerror = function(event) {
 console.log('Websocket error: ' + event.data);
}



$(document).ready(function() {

 $('#jqxMenu').jqxMenu({
  width: 1280,
  height: '30px',
  autoOpen: false,
  clickToOpen: true,
  theme: theme
 });
 $('#jqxWidget').css('visibility', 'visible');
});

mercurial