Skip to content

Instantly share code, notes, and snippets.

@briandk
Created November 30, 2014 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briandk/6cde6b70756de1ff92ca to your computer and use it in GitHub Desktop.
Save briandk/6cde6b70756de1ff92ca to your computer and use it in GitHub Desktop.
transdown debugging
var transdownNamespace = {
updatePreviewAfterEachKeypress : function () {
$('#text-to-transdownify').keyup(this.renderTranscriptPreview);
},
transdownify : function (text) {
return (text);
},
renderTranscriptPreview : function () {
var textToTransdownify = $('#text-to-transdownify').val(),
outputText = this.transdownify(textToTransdownify);
$('#live-preview').html(outputText);
console.log("render");
}
};
transdown = Object.create(transdownNamespace);
transdown.updatePreviewAfterEachKeypress();
transdown.renderTranscriptPreview();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment