/[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

Annotation of /trunk2/output_template/tree.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (hide annotations)
Mon Nov 1 18:00:26 2004 UTC (17 years, 9 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 dpavlin 441 <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 dpavlin 448 <script type="text/javascript" src="js/getargs.js"></script>
8 dpavlin 470 <script type="text/javascript" src="js/popup.js"></script>
9 dpavlin 498 <script type="text/javascript" src="js/findpos.js"></script>
10 dpavlin 575 <script type="text/javascript" src="js/iframe.js"></script>
11 dpavlin 448 <script type="text/javascript">
12    
13     function outline_url() {
14     var args = getArgs();
15 dpavlin 498 var o = args['o'];
16 dpavlin 448
17 dpavlin 498 if (o) {
18     outline_display('o'+o);
19 dpavlin 499
20     // following reloads page in Opera == not good
21     //self.location = "#mfn"+o
22     var e = element_id('o'+o);
23     if (e) {
24 dpavlin 498 var y = findPosY(e);
25 dpavlin 499
26 dpavlin 498 // position 30px above found term
27     if (y > 30) y -= 30;
28     if (e) window.scrollTo(findPosX(e),y);
29     }
30 dpavlin 470 }
31     return true;
32 dpavlin 448 }
33    
34     </script>
35 dpavlin 456 <link rel="stylesheet" href="style.css" type="text/css">
36 dpavlin 441 </head>
37    
38 dpavlin 448 <body onLoad="outline_url();">
39 dpavlin 441
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 dpavlin 469 <!--
51 dpavlin 441 <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 dpavlin 444 <a href="#" onClick="var id=prompt('Enter ID to outline','id'); outline_display(id);">outline</a>
59 dpavlin 469 -->
60 dpavlin 441 </div>
61    
62     <ul>
63     [% tree %]
64     </ul>
65     </body>
66     </html>

  ViewVC Help
Powered by ViewVC 1.1.26