From 3b81d83bf449ef6242489805af15b7da7b197d58 Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 21 Sep 2011 16:59:09 +0200 Subject: gui is now html based. still some problems with the jQuery stuff. it does not display anything. --- LogReceiver/html/js/nd-functions.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 LogReceiver/html/js/nd-functions.js (limited to 'LogReceiver/html/js/nd-functions.js') diff --git a/LogReceiver/html/js/nd-functions.js b/LogReceiver/html/js/nd-functions.js new file mode 100644 index 0000000..7480763 --- /dev/null +++ b/LogReceiver/html/js/nd-functions.js @@ -0,0 +1,29 @@ +var updateStatus = function (s){ + +}; + +var updateIfProgressBar = function (i, p){ + if (p >= 0 && p <= 100){ + $("#"+i+"_progress").progressbar({ value: p }); + }else{ + $("#"+i+"_progress").progressbar({ value: 0 }); + } +}; + +var updateIfStatus = function(i, s){ + +}; + +var addInterface = function (i){ + $("#nd_progress_container").append( + "
"+ + " Interface: " +i+ + " Start DHCP " + + "
"+ + "
" + ); + $("#"+i+"_progress").progressbar({ value: 33 }); +}; + + -- cgit v1.2.3-55-g7522