Posts

Showing posts with the label source

PyramiDOM - from Alpha to Beta

As promised, I have commented and improved my last experiment: PyramiDOM , ( IE version) now with some new feature: One click from bookmark to add PyramiDOM, another one to remove it In a single session, colors are preserved even if PyramiDOM is added and removed more than once Good browsers with W3C DOM events support and/or a console, will experience a better PyramiDOM thanks to automatic update feature and related dom nodes logged in the console last part of the bookmark is the size of each brick. Right now it is 2 but you can easily change it to 4, 6, 8, whatever multiple of 2 you prefer The PyramiDOM Source Code It is really simple and the main logic is behind the Brick constructor and every brick instance. (function(size){ var // shortcut to attach/detach events add = document.addEventListener ? function(node, name, callback){ node.addEventListener(name, callback, false); }: function(node, name, callback){ node....