Recently I added a feature for our forum at
http://www.perl-community.de.
The forum is threaded like perlmonks.
It stores on the server which articles are already read, and those are automatically collapsed with javascript, so that one has a better overview and only sees the new articles.
However, in long discussions, when there are a lot of new articles, you still can lose track.
So I added a mini thread navigation with javascript. Its position is fixed and it can be closed in case it overlaps other elements.
You can click on an author, and it will automatically scroll to the selected article.
When a scroll event happens, the currently visible articles in the window are marked in the mini navigation with a grey bar.
I now wrote a perlmonks version of it which you can use by activating the js file (and jquery-2.x.*) and the css file in your browser (
user js/
css, greasemonkey, ...).
You can download the files here:
https://github.com/perlpunk/mytools/tree/master/perlmonks-js-css
Comments, bug reports? Do you find it useful?
Edit: todo: add configurable shortcut for toggling navi; remember status of navi with localStorage
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.