head 1.3; access; symbols; locks; strict; comment @# @; 1.3 date 2005.11.25.16.20.58; author rse; state dead; branches; next 1.2; commitid c9X5QxZIdGHCX9br; 1.2 date 2005.11.25.16.16.06; author rse; state Exp; branches; next 1.1; commitid akWk9eMbXOYWV9br; 1.1 date 2005.11.25.13.13.34; author rse; state Exp; branches; next ; commitid 6m7MyNUJMyrkV8br; desc @@ 1.3 log @rename files to be more pretty on the shell ;-) @ text @ DIV.navbar { width: 180px; margin-bottom: 20px; font-family: sans-serif,helvetica,lucida,verdana,arial; font-size: 10pt; } DIV.navbar UL { padding: 0px; margin: 0px; white-space: nowrap; } DIV.navbar UL UL { margin-left: 0px; padding-left: 0px; } DIV.navbar LI.active > A { font-weight: bold; } DIV.navbar LI { display: block; list-style: none; padding: 0px 0px 0px 0px; } DIV.navbar A { text-decoration: none; font-weight: normal; color: #000000; } DIV.navbar UL UL LI { padding-left: 8px; } DIV.navbar LI:first-child { border-top: 1px solid #c5c0b0; } DIV.navbar LI { border-bottom: 1px solid #c5c0b0; } DIV.navbar LI:last-child { border-bottom: none; } DIV.navbar > UL > LI:last-child { border-bottom: 1px solid #c5c0b0; } /* smart deferred execution */ var defer_scheduled = Array(); var defer_handle = Array(); function defer_schedule (id, cmd, delay) { if (defer_scheduled[id]) clearTimeout(defer_handle[id]); defer_scheduled[id] = 1; defer_handle[id] = setTimeout("defer_scheduled["+id+"] = 0; " + cmd, delay); return; } function defer_cancel (id) { if (defer_scheduled[id]) clearTimeout(defer_handle[id]); defer_scheduled[id] = 0; return; } /* dynamic navigation bar item expading/collapsing */ var navbar_default = ""; var navbar_active = navbar_default; function navbar_over (id) { navbar_active = id; defer_cancel("navbar_out"); defer_schedule("navbar_over", "navbar_update();", 800); } function navbar_out (id) { defer_schedule("navbar_out", "navbar_out_stage2('"+id+"');", 4000); } function navbar_out_stage2 (id) { if (navbar_active != id) return; navbar_active = navbar_default; navbar_update(); } function navbar_update (id) { if (!document.getElementById) return; var active_a = navbar_active.split("."); active_a.pop(); var active_prefix = active_a.join("."); var li = document.getElementsByTagName("li"); for (var i = 0; i < li.length; i++) { var id_s = li[i].id; var id_a = id_s.split("."); if (id_a[0] != "navbar") continue; id_a.pop(); var id_prefix = id_a.join("."); if ( active_prefix.indexOf(id_prefix) == 0 /* siblings */ || id_prefix == navbar_active) /* childs */ display = 'block'; else display = 'none'; if (li[i].style.display != display) li[i].style.display = display; } return; } @ 1.2 log @add support for one and two pane layouts: one pane for applications like cvstrac which need the full browser width, and two pane for regular web pages @ text @@ 1.1 log @first cut for new meta.openpkg.org canvas rendering framework @ text @d77 1 a77 79 divert("navbar");