187 |
<div style="float: right; width: 10em; text-align: center; margin: 0.5m; background: #e0e0e0; border: 1px dashed #c0c0c0; z-index: 1;"> |
<div style="float: right; width: 10em; text-align: center; margin: 0.5m; background: #e0e0e0; border: 1px dashed #c0c0c0; z-index: 1;"> |
188 |
Folding: |
Folding: |
189 |
<br/> |
<br/> |
190 |
<a href="#" onClick="back_display();">«</a> <a href="#" onClick="apply_changed_display();">default</a> <a href="#" onClick="forward_display();">»</a> |
<a href="#" onClick="back_display();">«</a> <a href="#" onClick="default_display();">default</a> <a href="#" onClick="forward_display();">»</a> |
191 |
<br/> |
<br/> |
192 |
<a href="#" onClick="show_hide_display(show,hide);">reset</a> |
<a href="#" onClick="show_hide_display(show,hide);">reset</a> |
193 |
<a href="#" onClick="show_display(show); show_display(hide);">all</a> |
<a href="#" onClick="show_display(show); show_display(hide);">all</a> |
356 |
|
|
357 |
my $have_children = $tree[$level]->{'have_children'}->($code,$v900,$start_code); |
my $have_children = $tree[$level]->{'have_children'}->($code,$v900,$start_code); |
358 |
if ($have_children) { |
if ($have_children) { |
359 |
($link_start,$link_end) = (qq{<a href="#mfn$mfn" onClick="return toggle_display('mfn$mfn');">},qq{</a>}); |
($link_start,$link_end) = (qq{<a href="#mfn$mfn" onClick="return toggle_display('id$mfn');">},qq{</a>}); |
360 |
} else { |
} else { |
361 |
$log->debug("# $level doesn't have_children($code,$v900,$start_code)"); |
$log->debug("# $level doesn't have_children($code,$v900,$start_code)"); |
362 |
} |
} |
376 |
my $style = $tree[$level]->{'style'}; |
my $style = $tree[$level]->{'style'}; |
377 |
|
|
378 |
print HTML " " x $level . |
print HTML " " x $level . |
379 |
qq{<a name="mfn$mfn"></a>\n <ul id="mfn$mfn"}. |
qq{<a name="mfn$mfn"></a>\n <ul id="id$mfn"}. |
380 |
($style ? ' style="'.$style.'"' : ''). |
($style ? ' style="'.$style.'"' : ''). |
381 |
qq{>\n}; |
qq{>\n}; |
382 |
|
|
383 |
if ($style) { |
if ($style) { |
384 |
if ($style =~ m/display\s*:\s*none/i) { |
if ($style =~ m/display\s*:\s*none/i) { |
385 |
push @hide_ids, "mfn$mfn"; |
push @hide_ids, "id$mfn"; |
386 |
} else { |
} else { |
387 |
push @show_ids, "mfn$mfn"; |
push @show_ids, "id$mfn"; |
388 |
} |
} |
389 |
} else { |
} else { |
390 |
# default: show |
# default: show |
391 |
push @show_ids, "mfn$mfn"; |
push @show_ids, "id$mfn"; |
392 |
} |
} |
393 |
|
|
394 |
unroll($level+1, $tree[$level]->{'child_code'}->($code,$v900,$start_code)); |
unroll($level+1, $tree[$level]->{'child_code'}->($code,$v900,$start_code)); |