Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

nice +/- buttons

allo5cae5e79c2c5
diff --git a/htroot/WatchWebStructure_p.html b/htroot/WatchWebStructure_p.html
index 949e7832e..c71e8f312 100644
--- a/htroot/WatchWebStructure_p.html
+++ b/htroot/WatchWebStructure_p.html
@@ -39,7 +39,11 @@
<dt>size</dt>
<dd><input type="text" name="width" value="#[width]#" size="4" maxlength="4" />&nbsp;x&nbsp;<input type="text" name="height" value="#[height]#" size="4" maxlength="4" /></dd>
<dt>nodes</dt>
- <dd><input type="text" name="nodes" value="#[nodes]#" size="4" maxlength="4" /></dd>
+ <dd>
+ <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depth]#&width=#[width]#&height=#[height]#&nodes=#[nodesd]#"><img src="env/grafics/minus.gif" /></a>
+ <input type="text" name="nodes" value="#[nodes]#" size="4" maxlength="4" />
+ <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depth]#&width=#[width]#&height=#[height]#&nodes=#[nodesi]#"><img src="env/grafics/plus.gif" /></a>
+ </dd>
<dt>&nbsp;</dt>
<dd><input type="submit" value="change" /></dd>
</dl>
diff --git a/htroot/WatchWebStructure_p.java b/htroot/WatchWebStructure_p.java
index 6be4f2853..af1aae41e 100644
--- a/htroot/WatchWebStructure_p.java
+++ b/htroot/WatchWebStructure_p.java
@@ -50,6 +50,8 @@ public class WatchWebStructure_p {
prop.put("width", width);
prop.put("height", height);
prop.put("nodes", nodes);
+ prop.put("nodesi", Math.min(1000, nodes + 50));
+ prop.put("nodesd", Math.max(0, nodes - 50));
return prop;
}