News for hackers. Stuff that matters.
Re:Collapsible Blog Posts by evmar on Tuesday September 04, 2012 @11:37PM (#4477861)
I think the time spent on writing a summary for each paragraph could be better spent editing the paragraph to its essence, such that a summary isn't necessary.
Re:Collapsible Blog Posts by dbieber on Tuesday September 04, 2012 @11:47PM (#4477889)
I agree, and I think I was suggesting the wrong use case at first.

In a typical blog post, the summaries shouldn't be necessary. A good use case for Collapsible Blogging is when you are listing multiple items or events, and the reader may only be interested in reading about one or two. Then the reader can choose to expand just those. May be better as Expandable Blogging rather than Collapsible Blogging.

I'm going to try it out this way and see what people think.

Re:Collapsible Blog Posts by firefoxman1 on Wednesday September 05, 2012 @12:07AM (#4477932)
That's very true. I had a very similar idea a while ago, but it worked the other way around: semi-relevant tangents and sidenotes would be collapsed by default, and you click to expand them.
Re:Collapsible Blog Posts by njs12345 on Wednesday September 05, 2012 @12:12AM (#4477947)
A bit like an inline footnote?
Re:Collapsible Blog Posts by firefoxman1 on Wednesday September 05, 2012 @01:08AM (#4478101)
Very much like one, just intended to be used more liberally with other related content as well.
Re:Collapsible Blog Posts by volaski on Tuesday September 04, 2012 @11:07PM (#4477773)
I really don't get the point. Why not just have two divs inside one paragraph, where the display property alternates whenever you click on it? Also why use an id when what you're actually doing is alternating certain classes of divs? Am I missing something?
Re:Collapsible Blog Posts by dbieber on Tuesday September 04, 2012 @11:50PM (#4477891)
One thing I was going for is being able to type the post quickly without having to think much about HTML. <p id="x"> and <p id="_x"> is really the shortest I could get it. Maybe you could spell out your two div idea in a bit more detail for me- I don't know exactly what you have in mind.
Re:Collapsible Blog Posts by volaski on Wednesday September 05, 2012 @02:33AM (#4478260)
There are many ways, but you could also do something like this:

<script> $(document).on("click", "p", function(event){ if($(this).hasClass("expanded"){ $(this).removeClass("expanded").addClass("collapsed"); } else{ $(this).removeClass("collapsed").addClass("expanded"); } }); </script>

<style> p.collapsed > div.big{ display:none; } p.collapsed > div.small{ display:block; }

  p.expanded > div.big{
    display:block;
  }
  p.expanded > div.small{
    display:none;
  }
</style>

<p class = 'expanded'> <div class = "big">click to collapse this</div> <div class = "small">click to expand this</div> </p> <p class = 'collapsed'> <div class = "big">click to collapse me</div> <div class = "small">click to expand me</div> </p>

Re:Collapsible Blog Posts by learc83 on Wednesday September 05, 2012 @01:35AM (#4478147)
I'm pretty sure he's thinking of something like this:

    <p>
      <div class="active">Short Form</div>
      <div class="inactive">Long Form</div>
    </p>
,where clicking switches the classes.
Re:Collapsible Blog Posts by Andrenid on Wednesday September 05, 2012 @02:38AM (#4478273)
I'm not sure where I saw it, but I once saw a blog post that just had the main line of each paragraph bolded, and at the top said "For the TL;DR read the bold bits"... as much as random bolded sentences through an article can be kind of annoying, in some circumstances it works quite well.

Also easier than clicking each paragraph to see the point.

Re:Collapsible Blog Posts by carlesfe on Wednesday September 05, 2012 @03:53AM (#4478399)
It is a very good idea. However, I feel that there is something off. Maybe the excess clicking. Maybe that it's not clear whether a paragraph is expanded or collapsed.

Don't want to discourage you, quite the opposite. Give it some more thought and try to refine these points, I'd really like to see a new iteration

Re:Collapsible Blog Posts by APuschilov on Wednesday September 05, 2012 @06:41AM (#4478756)
Puh...I'm not sure if I like that. Yes for skimming a text it might be useful, but then why not just write a very good description/summary at the top or bullet-point conclusion at the bottom.

Also the first sentence of a paragraph should provide a summary of the following paragraph if following good writing guidelines (kinda http://www.une.edu.au/tlc/aso/students/factsheets/paragraph....)

On the other hand, collapsible blog posts could help the writer. For instance after writing a blog post I would love if in iAWriter or WriteMonkey I could collapse all the paragraphs to just their respective first sentence. If the collapsed text would still bring my argument across I did a good job, if not I'd have to rework it.

Re:Collapsible Blog Posts by shortformblog on Tuesday September 04, 2012 @10:54PM (#4477734)
Interesting effect. I've done things similar to that in the past on my Tumblr. http://sfbne.ws/PH8kO8

It does have some downsides, and alas, the biggest ones show up in the reblogs of the content on Tumblr — you reblog that post and you see everything. My suggestion would be to see if you could do the collapsible effect with a p title tag, rather than setting two paragraph with two CSS classes, and embedding the Javascript into the post. That way, the effect follows people on Tumblr reblogs.

I'm a bit of a nut for visual effects like this, though. I might try it at some point. Good work.

Re:Collapsible Blog Posts by dbieber on Wednesday September 05, 2012 @12:12AM (#4477944)
Neat. I like what you did with the mouseovers. There's definitely a lot you can do with simple scripts like this, especially if you craft each post individually.

I was going for something that could be quickly reused without much thought. I'll have to see if my script lives up to that as I continue blogging.

Re:Collapsible Blog Posts by smacktoward on Tuesday September 04, 2012 @10:13PM (#4477575)
Ummm... it works in Chrome, but not in Firefox.

Firebug shows this error:

TypeError: e.srcElement is undefined

http://david-bieber.tumblr.com/post/30907535147/collapsible-...

Line 372

Re:Collapsible Blog Posts by dbieber on Tuesday September 04, 2012 @10:16PM (#4477590)
That's why you should never test in production. Fixed.
Re:Collapsible Blog Posts by gw666 on Wednesday September 05, 2012 @02:04AM (#4478205)
As a former magazine editor of 20+ years, I think the idea shows great promise. I agree with your statement in the comments that it might be better used as Expandable Blogging. But try stuff out--see what the market likes!
Re:Collapsible Blog Posts by niklaslogren on Wednesday September 05, 2012 @12:44AM (#4478031)
This doesn't really work for me: whenever I read articles on the internet, I tend to select text by double-clicking and dragging, which trigger the collapsation. Neat concept, though!
Re:Collapsible Blog Posts by dbieber on Wednesday September 05, 2012 @12:48AM (#4478045)
There's probably a way for me to not collapse on a double-click-and-drag. But you should consider switching over to single-click-and-drag! Saves loads of clicks over the course of a year!
Re:Collapsible Blog Posts by lmm on Wednesday September 05, 2012 @06:36AM (#4478742)
Double-click and drag makes the selection be whole words, which saves time over having to find the start and end more precisely. (I actually often triple-click and drag, for selecting whole paragraphs)
Re:Collapsible Blog Posts by kibwen on Wednesday September 05, 2012 @08:58AM (#4479106)
Whoa! As someone who compulsively clicks on text to select it while reading, I can't believe I've never realized this.
Re:Collapsible Blog Posts by ysph on Tuesday September 04, 2012 @11:22PM (#4477816)
The idea itself is right. Kudos for that. I could see it in combination with something like redraftable as a powerful mechanism for expression and collaboration.
Re:Collapsible Blog Posts by tectonic on Tuesday September 04, 2012 @11:54PM (#4477903)
Very cool effect! I did something similar, in reverse, on my personal site- http://andrewcantino.com
Re:Collapsible Blog Posts by dbieber on Wednesday September 05, 2012 @12:18AM (#4477958)
That looks really nice. And thanks for the link to http://www.telescopictext.com/ another neat implementation of a similar concept.
Re:Collapsible Blog Posts by ArekDymalski on Wednesday September 05, 2012 @06:45AM (#4478768)
reminded me about awesome concept of TiddlyWiki.
Re:Collapsible Blog Posts by noirman on Wednesday September 05, 2012 @12:29AM (#4477991)
What's wrong with just tl;dr?