From: drowe67 Date: Tue, 7 Dec 2010 05:20:36 +0000 (+0000) Subject: nicer info window displays X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=9da2431f29be620239ee2d8df7c578085bdaaaf5;p=freetel-svn-tracking.git nicer info window displays git-svn-id: https://svn.code.sf.net/p/freetel/code@259 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/dilimesh/README.txt b/dilimesh/README.txt index 8c1e91b5..622edba6 100644 --- a/dilimesh/README.txt +++ b/dilimesh/README.txt @@ -152,7 +152,7 @@ Installation 4/ (Optional) Signal strength daemon: - Copy these scripts to each MP in your mesh that you wish to read sis + Copy these scripts to each MP in your mesh that you wish to read sig strength from: $ cd dilimesh/script diff --git a/dilimesh/dilimesh/dilimesh.html b/dilimesh/dilimesh/dilimesh.html index 793800ff..393d834b 100644 --- a/dilimesh/dilimesh/dilimesh.html +++ b/dilimesh/dilimesh/dilimesh.html @@ -358,12 +358,17 @@ var packet_loss_formatted = Math.round(nodes[j].packet_loss*100); nodes[j].marker.setTitle(nodes[j].ip + ' Packet Loss: ' + packet_loss_formatted + '%'); - var html = nodes[j].ip + '
Packet Loss: ' + packet_loss_formatted + '%'; + var html = ''; + html += ''; + html += ''; if (nodes[j].neighbour_ips != undefined) { for(var i=0; i
' + nodes[j].ip + '
Packet Loss' + packet_loss_formatted + '%
'; + html += trim(nodes[j].neighbour_sigs[i]) + ' dBm'; } } + html += '
'; + nodes[j].infowindow.setContent(html); } @@ -413,12 +418,11 @@ if (nodes[j].ip == ip) { nodes[j].neighbour_ips = neighbour_ips; nodes[j].neighbour_sigs = neighbour_sigs; - var html=""; + var html=""; for(var i=0; i'; } + html += '
' + trim(neighbour_sigs[i]) + ' dBm
'; document.getElementById('sigstr_last_node').innerHTML = ip; document.getElementById('sigstr_results').innerHTML = html; } @@ -431,7 +435,7 @@ function drawPathesBetweenNodes() { - // delete all exisiting paths, this is inefficient but is OK for a first pass + // delete all existing paths, this is inefficient but is OK for a first pass if (pathes) { for (j in pathes) { @@ -516,8 +520,7 @@ // add to nodes array var newInfoWindow = new google.maps.InfoWindow( - { content: newIp, - maxWidth: 20 + { content: newIp }); var newNode = {marker : newMarker, ip: newIp, @@ -562,8 +565,7 @@ // add node to nodes array var newInfoWindow = new google.maps.InfoWindow( - { content: dragIp, - maxWidth: 20 + { content: dragIp }); var newNode = {marker : newMarker, ip: dragIp, diff --git a/dilimesh/dilimesh_screenshot.png b/dilimesh/dilimesh_screenshot.png index e74f69f9..7c260866 100644 Binary files a/dilimesh/dilimesh_screenshot.png and b/dilimesh/dilimesh_screenshot.png differ