summaryrefslogtreecommitdiffstats
path: root/LogReceiver/html/js/nd-functions.js
diff options
context:
space:
mode:
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 });
+};
+
+