summaryrefslogtreecommitdiffstats
path: root/LogReceiver/html/networkdiscovery.html
diff options
context:
space:
mode:
authorNiklas2011-09-22 13:49:46 +0200
committerNiklas2011-09-22 13:49:46 +0200
commit72df64f423d579bcd2fd156e48007055faf57ca7 (patch)
treeffb631311f144b9da83d6809bd6a67d11df0c8c9 /LogReceiver/html/networkdiscovery.html
parentgui is now html based. still some problems with the jQuery stuff. it does not... (diff)
downloadfbgui-72df64f423d579bcd2fd156e48007055faf57ca7.tar.gz
fbgui-72df64f423d579bcd2fd156e48007055faf57ca7.tar.xz
fbgui-72df64f423d579bcd2fd156e48007055faf57ca7.zip
the html gui is working now. problem solved: LogReceiver/NetworkDiscovery started to early. so javascript jquery was not usable. also put the js code into the html file. it seems that qt has a problem using the code if it is not in the html file. also implemented the fast version. if one interface is usable we now go on directly to the continue boot screen
Diffstat (limited to 'LogReceiver/html/networkdiscovery.html')
-rw-r--r--LogReceiver/html/networkdiscovery.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/LogReceiver/html/networkdiscovery.html b/LogReceiver/html/networkdiscovery.html
index 9ae0c5b..5e7aa64 100644
--- a/LogReceiver/html/networkdiscovery.html
+++ b/LogReceiver/html/networkdiscovery.html
@@ -5,6 +5,37 @@
<script type="text/javascript" src="qrc:/html/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="qrc:/html/js/jquery-ui-1.8.16.min.js"></script>
<script type="text/javascript" src="qrc:/html/js/nd-functions.js"></script>
+
+<script type="text/javascript">
+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){
+ $("#"+i+"_status").html(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 });
+};
+ </script>
+
</head>
<body>
<div id="top">