Pipe 2V2 Expandable Comments

Expandable Comments

by
in pipedot on (#2V2)
Good news everyone! I've just pushed out the first version of expandable comments! They may still be a little rough around the edges, but you are welcome to try them out below or on any other story.

As for the nerdy details, the scripts are using jQuery to pull the raw comments in JSON format from the server. The two HTML5 slider elements control the display thresholds. Comments that are under the "Hide" threshold are completely hidden. Comments that are under the "Expand" threshold are collapsed. The rest of the comments are shown in full. Collapsed comments show the subject text + the first line of body text. You can click on any collapsed comment to expand it.

For those that prefer to be script free, we will offer an "Enable JavaScript" checkbox in your user settings page. Unchecking this option will present you with server-side-generated pages instead of the the JavaScript enabled pages.

History


Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /var/pipedot/include/diff.php on line 25

Deprecated: Creation of dynamic property FineDiff::$granularityStack is deprecated in /var/pipedot/lib/finediff/finediff.php on line 217

Deprecated: Creation of dynamic property FineDiff::$edits is deprecated in /var/pipedot/lib/finediff/finediff.php on line 218

Deprecated: Creation of dynamic property FineDiff::$from_text is deprecated in /var/pipedot/lib/finediff/finediff.php on line 219

Deprecated: Creation of dynamic property FineDiff::$last_edit is deprecated in /var/pipedot/lib/finediff/finediff.php on line 372

Deprecated: Creation of dynamic property FineDiff::$stackpointer is deprecated in /var/pipedot/lib/finediff/finediff.php on line 373

Deprecated: Creation of dynamic property FineDiff::$from_offset is deprecated in /var/pipedot/lib/finediff/finediff.php on line 375

Deprecated: Creation of dynamic property FineDiffReplaceOp::$fromLen is deprecated in /var/pipedot/lib/finediff/finediff.php on line 126

Deprecated: Creation of dynamic property FineDiffReplaceOp::$text is deprecated in /var/pipedot/lib/finediff/finediff.php on line 127

Deprecated: Creation of dynamic property FineDiffCopyOp::$len is deprecated in /var/pipedot/lib/finediff/finediff.php on line 155

Deprecated: Creation of dynamic property FineDiffReplaceOp::$fromLen is deprecated in /var/pipedot/lib/finediff/finediff.php on line 126

Deprecated: Creation of dynamic property FineDiffReplaceOp::$text is deprecated in /var/pipedot/lib/finediff/finediff.php on line 127

Deprecated: Creation of dynamic property FineDiffCopyOp::$len is deprecated in /var/pipedot/lib/finediff/finediff.php on line 155

Deprecated: Creation of dynamic property FineDiffCopyOp::$len is deprecated in /var/pipedot/lib/finediff/finediff.php on line 155

Deprecated: Creation of dynamic property FineDiffDeleteOp::$fromLen is deprecated in /var/pipedot/lib/finediff/finediff.php on line 86
2014-03-06 13:02
Expandable Comments
bryan@pipedot.org
Good news everyone! I've just pushed out the first version of expandable comments! They may still be a little rough around the edges, but you are welcome to try them out below or on any other story.

As for the nerdy details, the scripts are using jQuery to pull the raw comments in JSON format from the server. The two HTML5 slider elements control the display thresholds. Comments that are under the "Hide" threshold are completely hidden. Comments that are under the "Expand" threshold are collapsed. The rest of the comments are shown in full. Collapsed comments show the subject text + the first line of body text. You can click on any collapsed comment to expand it.

For those that prefer to be script free, we will offer an "Enable JavaScript" checkbox in your user settings page. Unchecking this option will present you with server-side-generated pages instead of the the JavaScript enabled pages.
Reply 0 comments