Skip to content

Instantly share code, notes, and snippets.

@vilmibm
Created January 22, 2012 21:32
Show Gist options
  • Save vilmibm/1658920 to your computer and use it in GitHub Desktop.
Save vilmibm/1658920 to your computer and use it in GitHub Desktop.
frepl
// IN CASE OF IPAD AND/OR IE EMERGENCIES!
// UNCOMMENT ME
cmg.query(function() {
if (!window.console) {
window.console = {
log: function(x) { alert(x); }
};
}
var repl = document.createElement('input');
repl.type = 'text';
repl.size=100;
repl.onchange = function() {
console.log(repl.value);
console.log(eval(repl.value));
};
cmg.query('body').prepend(cmg.query(repl));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment