From: Andy Spencer Date: Mon, 7 May 2012 05:02:33 +0000 (+0000) Subject: add auto-show X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=df65de824acd2be98234300ba96436c696bc118e add auto-show --- diff --git a/index.cgi b/index.cgi index 527ffa1..1b8e41c 100755 --- a/index.cgi +++ b/index.cgi @@ -185,8 +185,8 @@ function do_help { margin-bottom: 0.5em; } .buttons { float: left; } .links { float: right; } - .links a { text-decoration: none; - margin-left: 0.4em; } + .links * { text-decoration: none; + margin-left: 0.5em; } .box { display: none; clear: both; margin-top: 2.7em; @@ -211,10 +211,15 @@ function do_help { box.style.display = "none" } } + function autoshow() { + id = document.location.toString().replace(/.*#/, '') + box = document.getElementById(id) + if (box) box.style.display = "block" + } - +
@@ -233,9 +238,10 @@ function do_help {