Mercurial > repos > tabletprog
view editor.js @ 8:04ae32e91598
Move compiler and test page related code out of parser.js
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 21 Mar 2012 20:33:39 -0700 |
parents | 3d1b8e96f5dc |
children | 85fb6ba15bc6 |
line wrap: on
line source
onReady(function() { each(qall('li'), function (idx,el) { el.onclick = function (event) { q('#src').innerHTML += el.innerHTML; }; }); q('#ops_button').onclick = function (event) { addClass(this.parentNode.parentNode, 'showops'); }; q('#builtin_button').onclick = function (event) { removeClass(this.parentNode.parentNode, 'showops'); }; });