/[cricket]/generate-overview.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /generate-overview.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by dpavlin, Mon May 26 16:56:11 2003 UTC revision 1.15 by dpavlin, Sat Aug 9 21:31:19 2003 UTC
# Line 36  BEGIN { Line 36  BEGIN {
36  #       $gBaseURL = "http://localhost/~cricket/grapher.cgi";  #       $gBaseURL = "http://localhost/~cricket/grapher.cgi";
37          my $hostname = `hostname -f`;          my $hostname = `hostname -f`;
38          chomp($hostname);          chomp($hostname);
39          $gBaseURL = "http://$hostname/cgi-bin/cricket/grapher.cgi";          $gBaseURL = "/cgi-bin/cricket/grapher.cgi";
40    
41          # change this to destination directory          # change this to destination directory
42          $path = "/data/mon/";          $path = "/data/mon/";
# Line 242  for (var i = 0; i < links.length; i++) { Line 242  for (var i = 0; i < links.length; i++) {
242                          if (elmref0) elmref0.bgColor = '#e0e0e0';                          if (elmref0) elmref0.bgColor = '#e0e0e0';
243                  }                  }
244          } else if(elmref) {          } else if(elmref) {
245                    // default: show all
246                    new_cookie |= 1 << links[i].name;
247                  if (elmref.style.display=='none') {                  if (elmref.style.display=='none') {
248                          elmref.style.display='';                          elmref.style.display='';
                         new_cookie |= 1 << links[i].name;  
249                          if (elmref0) elmref0.bgColor = '#eeeeee';                          if (elmref0) elmref0.bgColor = '#eeeeee';
250                  } else {                  } else {
251                          elmref.style.display = 'none';                          // hide? no...
252                          //new_cookie &= !( 1 << links[i].name );                          //elmref.style.display = 'none';
253                          if (elmref0) elmref0.bgColor = '#e0e0e0';                          //if (elmref0) elmref0.bgColor = '#e0e0e0';
254                            if (elmref0) elmref0.bgColor = '#eeeeee';
255                  }                  }
256          }          }
257      }      }
# Line 277  sub do_html { Line 279  sub do_html {
279          if ($dynamic_js) {          if ($dynamic_js) {
280                  my $html =<<'HTMLEND';                  my $html =<<'HTMLEND';
281  <tr bgcolor='#e0e0e0' id=##id##_h0>  <tr bgcolor='#e0e0e0' id=##id##_h0>
282  <td><a href="#" id=DynMessLink name=##id## >##desc##</a></td>  <td><a name="##id##"><a href="###id##" id=DynMessLink name=##id## >##desc##</a></td>
283  </tr>  </tr>
284  <tr id=##id##_h1 style='' bgcolor='#ffffff' >  <tr id=##id##_h1 style='' bgcolor='#ffffff' >
285  <td><a href="##url##"><img src="##img##"</td>  <td><a href="##url##"><img src="##img##"</td>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.26