1var process = process || {env: {NODE_ENV: "development"}}; 2function subscribeForHeartBeat(client) { 3 client.subscribe("/topic/device/heart-beat", function (message) { 4 var data = JSON.parse(message.body); 5 var deviceUUID = data.deviceUUID; 6 $("#heart-beat-date-" + deviceUUID).text(data.heartBeatDate); 7 var diode = $("#heart-beat-diode-" + deviceUUID); 8 diode.addClass('on'); 9 diode.removeClass('off'); 10 $("#heart-beat-text-" + deviceUUID).text('online'); 11 }); 12} 13 14function subscribeForNoHeartBeat(client) { 15 client.subscribe("/topic/device/no-heart-beat", function (message) { 16 var data = JSON.parse(message.body); 17 var deviceUUID = data.deviceUUID; 18 $("#heart-beat-date-" + deviceUUID).text(data.heartBeatDate); 19 var diode = $("#heart-beat-diode-" + deviceUUID); 20 diode.removeClass('on'); 21 diode.addClass('off'); 22 23 $("#heart-beat-text-" + deviceUUID).text('offline'); 24 }); 25} 26 27function subscribeForServiceCommandResult(client) { 28 client.subscribe("/topic/device/service-command", function (message) { 29 location.reload(); 30 }); 31} 32 33 34function refreshPage() { 35 setTimeout(function () { 36 console.log('Will reload the page'); 37 window.location.reload(true); 38 }, 1000 * 5); 39} 40
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.