News for hackers. Stuff that matters.
Re:Show HN: Tool to turn your HTML into a collapsible tree by diasks2 on Friday May 16, 2014 @11:08PM (#7759127)
Neat idea. At first it wasn't completely obvious to me that you could click on a node to expand it. You might want to add just a little bit of text to help people out there.

Additionally, it seems that as the graph spreads to the right it disappears outside of the div and I can't find any way to click or scroll to keep following it horizontally.

Re:Show HN: Tool to turn your HTML into a collapsible tree by gamegoblin on Friday May 16, 2014 @08:44PM (#7758790)
This perfectly illustrates the table-hell the hackernews is designed on.
Re:Show HN: Tool to turn your HTML into a collapsible tree by hrjet on Saturday May 17, 2014 @07:12AM (#7759840)
Is it because of tables, or because the HTML is not valid?

I had reported this sometime back, but was turned down: https://github.com/HackerNews/HN/issues/78

Re:Show HN: Tool to turn your HTML into a collapsible tree by crowhack on Friday May 16, 2014 @10:53PM (#7759103)
Yeah won't even open the tables for me, and wow 38.1kb.
Re:Show HN: Tool to turn your HTML into a collapsible tree by ChrisNorstrom on Friday May 16, 2014 @06:19PM (#7758258)
Nice project. Very smooth. You should make a todo list app out of this. The tree layout would make it very easy to organize projects and tasks.

One thing: you should increase the minimum size of the smallest sized clickable circles. They're hard to click on to expand.

Re:Show HN: Tool to turn your HTML into a collapsible tree by peterbe on Friday May 16, 2014 @07:18PM (#7758470)
A minimum is coming. I have a friend and colleague who's hopefully going to help me make the area of the circles be proportional to the size instead of the radius. Then we'll give it a minimum.
Re:Show HN: Tool to turn your HTML into a collapsible tree by mmun on Friday May 16, 2014 @07:42PM (#7758562)
Just take the radius to be the square root of the size and then multiply it by a suitable scaling constant.

This will ensure that the area, which is proportional to the square of the radius, remains proportional to the size.

Re:Show HN: Tool to turn your HTML into a collapsible tree by zebra on Saturday May 17, 2014 @06:15AM (#7759761)
Tree based todo list: http://todo.yt
Re:Show HN: Tool to turn your HTML into a collapsible tree by ChrisNorstrom on Sunday May 18, 2014 @10:48PM (#7765451)
Woah thank you. Did you make this? My only problem is that when I check off a task the loading icon stays up forever.
Re:Show HN: Tool to turn your HTML into a collapsible tree by karangoeluw on Friday May 16, 2014 @10:02PM (#7758988)
Re:Show HN: Tool to turn your HTML into a collapsible tree by joeheyming on Friday May 16, 2014 @08:00PM (#7758649)
Re:Show HN: Tool to turn your HTML into a collapsible tree by vram22 on Friday May 16, 2014 @08:11PM (#7758689)
Re:Show HN: Tool to turn your HTML into a collapsible tree by gisenberg on Friday May 16, 2014 @07:10PM (#7758430)
Entered http://www.google.com, got infinite loading spinner.
Re:Show HN: Tool to turn your HTML into a collapsible tree by peterbe on Friday May 16, 2014 @07:16PM (#7758457)
Worked now http://htmltree.peterbe.com/?url=www.google.com Could have just been a dead squirrel in the pipes. All cleared.
Re:Show HN: Tool to turn your HTML into a collapsible tree by leeoniya on Friday May 16, 2014 @06:32PM (#7758303)
nice, i'd prefer more to be unfolded from the get-go. maybe 3 levels
Re:Show HN: Tool to turn your HTML into a collapsible tree by peterbe on Friday May 16, 2014 @07:17PM (#7758462)
I kinda like the idea of starting gently so you can see what's going on.
Re:Show HN: Tool to turn your HTML into a collapsible tree by kitwalker12 on Friday May 16, 2014 @07:12PM (#7758440)
smooth. Though, for some reason it couldn't parse my top-level address. Worked fine if I provided a second level URL
Re:Show HN: Tool to turn your HTML into a collapsible tree by peterbe on Friday May 16, 2014 @07:16PM (#7758459)
What was the URL so I can debug?
Re:Show HN: Tool to turn your HTML into a collapsible tree by kitwalker12 on Wednesday May 28, 2014 @08:30PM (#7813908)
I checked again. It's working now.
Re:Show HN: Tool to turn your HTML into a collapsible tree by vladikoff on Friday May 16, 2014 @05:59PM (#7758175)
Cool! Can't scroll right though? :(
Re:Show HN: Tool to turn your HTML into a collapsible tree by peterbe on Friday May 16, 2014 @07:17PM (#7758464)
What browser?
Re:Show HN: Tool to turn your HTML into a collapsible tree by runarberg on Saturday May 17, 2014 @09:24AM (#7760044)
firefox 29 on ubuntu 14.04. Unable to scroll right when the tree expands past the windows width.