slayeroffice - web experiments gone horribly awry

05.14.2004 - DTC v1.2

Another update to the Document Tree Chart.

  • Color Coding: Each element label now has a semi-unique background color. This was accomplished by taking the character code value of the first three characters of the tag name and subtracting that value from 295 and applying the result as the individual red, green and blue components of the color. If the tag name is less than three characters long, the values are set to that of the red component. Thanks go to Andrew Wooldridge for the suggestion.
  • Branch Removal: Clicking on the text of any label will now remove that label and all of its child labels from the chart. Useful if you aren't interested in how many meta or link elements someone has in the head of their document.
  • Element Highlighting: This was intended to be a part of the original release but I didn't get around to it. Borrowing directly from the Mouseover DOM Inspector, hovering over any element label (except the HTML label as that seemed pointless) will turn the background color of the element it represents to gray. This is OFF by default, and can be toggled with the "B" key just like in the MODI.
  • Opacity: The chart's container element is now set to an opacity of 0.9 to allow you to see any elements that are being highlighted that happen to be obscured by the chart. This is, of course, a Mozilla/Firefox feature only as Opera 7.5 doesn't support it.

If you aren't seeing the changes in your bookmarked version, you'll want to clear your cache.

If I've introduced any bugs with this update, please let me know and I'll fix them ASAP. And finally - this one is my one-up, Stuart. :)

September 16 ???
Posted by Someone on June 26, 2004 @ 3:15 am
Stuart is a time traveller. You didn't know that?
Posted by Steve on June 26, 2004 @ 1:48 pm
Ha! Do your worst! I have some new features, some fixed features, and, er, some stolen features. :-)

Plus: my URLs are nicer than yours. And you smell! Ha ha ha ha!

Can I go to sleep now?
Posted by sil on September 17, 2004 @ 1:25 am

Comments have been closed for this post.