/[webpac]/trunk2/output_template/tree.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk2/output_template/tree.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (show annotations)
Mon Nov 1 18:00:26 2004 UTC (19 years, 4 months ago) by dpavlin
File size: 2014 byte(s)
first iframe implementation of tree, shuffled a bit paramters to
WebPAC::Tree (so, node dir is now parametar to new and not to output)

1 <html>
2 <head>
3 <title>Browse</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
5 <script type="text/javascript" src="bfilter/hide.js"></script>
6 <script type="text/javascript" src="[% js %]"></script>
7 <script type="text/javascript" src="js/getargs.js"></script>
8 <script type="text/javascript" src="js/popup.js"></script>
9 <script type="text/javascript" src="js/findpos.js"></script>
10 <script type="text/javascript" src="js/iframe.js"></script>
11 <script type="text/javascript">
12
13 function outline_url() {
14 var args = getArgs();
15 var o = args['o'];
16
17 if (o) {
18 outline_display('o'+o);
19
20 // following reloads page in Opera == not good
21 //self.location = "#mfn"+o
22 var e = element_id('o'+o);
23 if (e) {
24 var y = findPosY(e);
25
26 // position 30px above found term
27 if (y > 30) y -= 30;
28 if (e) window.scrollTo(findPosX(e),y);
29 }
30 }
31 return true;
32 }
33
34 </script>
35 <link rel="stylesheet" href="style.css" type="text/css">
36 </head>
37
38 <body onLoad="outline_url();">
39
40 <span style="background: #e0e0e0;">
41 <a href="search.html">search</a> |
42 <a href="thesaurus.html">thesarus</a> |
43 <a href="browse.html"><b>browse</b></a>
44 </span>
45
46 <div style="float: right; width: 10em; text-align: center; margin: 0.5m; background: #e0e0e0; border: 1px dashed #c0c0c0; z-index: 1;">
47 Folding:
48 <br/>
49 <a href="#" onClick="back_display();">&laquo;</a>&nbsp;<a href="#" onClick="default_display();">default</a>&nbsp;<a href="#" onClick="forward_display();">&raquo;</a>
50 <!--
51 <br/>
52 <a href="#" onClick="show_hide_display(show,hide);">reset</a>
53 <a href="#" onClick="show_display(show); show_display(hide);">all</a>
54 <a href="#" onClick="hide_display(hide); hide_display(show);">none</a>
55 <br/>
56 <a href="#" onClick="alert('show: '+show.length+', hide: '+hide.length+', changed:'+changed_display_ids.length+', positin: '+changed_display_pos);">debug</a>
57
58 <a href="#" onClick="var id=prompt('Enter ID to outline','id'); outline_display(id);">outline</a>
59 -->
60 </div>
61
62 <ul>
63 [% tree %]
64 </ul>
65 </body>
66 </html>

  ViewVC Help
Powered by ViewVC 1.1.26