view editor.js @ 0:3d1b8e96f5dc

Initial commit
author Mike Pavone <pavone@retrodev.com>
date Sun, 18 Mar 2012 12:03:04 -0700
parents
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');
	};
});