UNPKG

brite

Version:

DOM Centric Minimalistic MVC Framework

24 lines (19 loc) 396 B
function showTestSources(){ $(".sTestSrc.sTestShowSrc").each(function(){ var $sTestSrc = $(this); $sTestSrc.after("<h3>Source</h3><textarea class='sTestSrcTA'></textarea>"); $sTestSrc.nextAll("textarea:first").val($sTestSrc.html()); }); } if (!console){ console = { log: function(txt){ // for now, nothing. } }; } function log(txt){ if (console){ console.log(txt); } }