From 3198aecd664f85008b70a7009262d3fa94634aa8 Mon Sep 17 00:00:00 2001 From: Patrick Boyd Date: Sun, 1 Jul 2018 15:48:31 -0500 Subject: [PATCH] Add ability to set device name --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index d35c463..cf2c561 100644 --- a/index.html +++ b/index.html @@ -95,7 +95,10 @@ var html = "

" + universe + "

"; for(var device in setup.universes[universe].devices) { var dev = setup.universes[universe].devices[device]; - html += '
' + html += '
'; + if(dev.name !== undefined) { + html += '

'+dev.name+'

' + } for(var channel in devices[dev.type].channels) { var channel_id = dev.address + Number(channel) var html_id = get_html_id(universe, channel_id); @@ -151,4 +154,4 @@
- \ No newline at end of file +