diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/git-arr.css | 6 | ||||
-rw-r--r-- | static/git-arr.js | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/static/git-arr.css b/static/git-arr.css index b0f2de5..57bf13c 100644 --- a/static/git-arr.css +++ b/static/git-arr.css @@ -124,6 +124,12 @@ span.age-band2 { color: seagreen; } +/* Toggable titles */ +div.toggable-title { + font-weight: bold; + margin-bottom: 0.3em; +} + /* Commit message and diff. */ pre.commit-message { font-size: large; diff --git a/static/git-arr.js b/static/git-arr.js index d1e3b81..d39ca72 100644 --- a/static/git-arr.js +++ b/static/git-arr.js @@ -61,3 +61,13 @@ function replace_timestamps() { } } } + +function toggle(id) { + var e = document.getElementById(id); + + if (e.style.display == "") { + e.style.display = "none" + } else if (e.style.display == "none") { + e.style.display = "" + } +} |