No winners – “Can you guess what the code below is doing?”

No winners – “Can you guess what the code below is doing?”

Dec 22

Well thanks for the single response, time for me to popularize this site I guess ;)

 The code below is a left hand tree navigation built in ”Prototype“  without the tree elements ;) . Its unique because…

  • It highlights self, the parent it belongs to
  • Collapses everybody if the great grandparent is clicked but expands only to the first child if itself is clicked.

Put it on a page and see it in action.

 This was the third JS library I tried after Sarissa and Mochikit, nowadays I am dojoing a lot :)

Leave a Reply