Mercurial > repos > tabletprog
annotate editor.js @ 10:02b20292f187
Added fib sample
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 21 Mar 2012 21:25:10 -0700 |
parents | 3d1b8e96f5dc |
children | 85fb6ba15bc6 |
rev | line source |
---|---|
0 | 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 }); |