summaryrefslogtreecommitdiffstats
path: root/LogReceiver/html/js/nd-functions.js
diff options
context:
space:
mode:
authorNiklas2011-09-21 16:59:09 +0200
committerNiklas2011-09-21 16:59:09 +0200
commit3b81d83bf449ef6242489805af15b7da7b197d58 (patch)
tree26f78d0c6321a11acccf6418deb557033268a28c /LogReceiver/html/js/nd-functions.js
parentthe checkConnectivity method is working now. we use the rtnl functions of the... (diff)
downloadfbgui-3b81d83bf449ef6242489805af15b7da7b197d58.tar.gz
fbgui-3b81d83bf449ef6242489805af15b7da7b197d58.tar.xz
fbgui-3b81d83bf449ef6242489805af15b7da7b197d58.zip
gui is now html based. still some problems with the jQuery stuff. it does not display anything.
Diffstat (limited to 'LogReceiver/html/js/nd-functions.js')
-rw-r--r--LogReceiver/html/js/nd-functions.js29
1 files changed, 29 insertions, 0 deletions
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(
+ "<div class='interface'>"+
+ " Interface: " +i+
+ " <span id='"+i+"_status'>Start DHCP </span>" +
+ " <div id='"+i+"_progress' class='progressbar' "+
+ " style='height: 10px;'></div>"+
+ "</div>"
+ );
+ $("#"+i+"_progress").progressbar({ value: 33 });
+};
+
+