Mercurial > repos > tabletprog
comparison editor.js @ 0:3d1b8e96f5dc
Initial commit
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 18 Mar 2012 12:03:04 -0700 |
parents | |
children | 85fb6ba15bc6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3d1b8e96f5dc |
---|---|
1 | |
2 | |
3 onReady(function() { | |
4 each(qall('li'), function (idx,el) { | |
5 el.onclick = function (event) { | |
6 q('#src').innerHTML += el.innerHTML; | |
7 }; | |
8 }); | |
9 q('#ops_button').onclick = function (event) { | |
10 addClass(this.parentNode.parentNode, 'showops'); | |
11 }; | |
12 q('#builtin_button').onclick = function (event) { | |
13 removeClass(this.parentNode.parentNode, 'showops'); | |
14 }; | |
15 }); |