1$(document).ready(function(){$("[preview-target]").each(function(i,val){$(this).is("input")||$(this).is("text")||$(this).is("textarea")?$(this).on("input",function(){updatePreview(this)}):$(this).change(function(){updatePreview(this)}),updatePreview(this)})});function updatePreview(el){if($(el).length){let nlToBr=0;$(el).attr("name")&&$(el).attr("name").toLowerCase()=="summary"&&(nlToBr=1);var cssTarget=$(el).attr("preview-target");if(cssTarget!="undefined"&&cssTarget!=""){var targetType=$(el).attr("preview-target-type");(targetType==null||targetType=="undefined"||targetType=="")&&(targetType="html");var targetVal=$(el).val();(targetVal==null||typeof targetVal=="undefined"||targetVal=="")&&($(el).attr("name")=="fb_url"?targetVal="qrChimp":targetVal=$(el).attr("placeholder"),(targetVal==null||typeof targetVal=="undefined")&&(targetVal="")),typeof nlToBr!="undefined"&&nlToBr&&(targetVal=nl2br(targetVal)),updatePrevieElement(cssTarget,targetType,targetVal)}}}function updatePrevieElement(cssTarget,targetType,targetVal){if(targetType=="html"||targetType==""||targetType==null)$(""+cssTarget).html(targetVal);else if(targetType=="html-href")$(""+cssTarget).text(targetVal),$(""+cssTarget).attr("href",cleanupUrlForLink(targetVal));else if(targetType=="fb-like-button"){var url="https://www.facebook.com/plugins/like.php?href="+encodeURIComponent(cleanupUrlForLink(targetVal))+"&width=87&layout=button_count&action=like&size=large&show_faces=true&share=false&height=21";$(""+cssTarget).attr("src",url)}else if(targetType=="val")$(""+cssTarget).val(targetVal);else if(targetType.startsWith("css:")){var typeVal=targetType.split(":");$(""+cssTarget).css(typeVal[1],targetVal)}else if(targetType.startsWith("attr:")){var typeVal1=targetType.split(":");$(""+cssTarget).attr(typeVal1[1],cleanupUrlForLink(targetVal))}}function cleanupUrlForLink(targetVal){if(targetVal==null||targetVal=="")return"";var hrefVal=targetVal.toLowerCase();return!hrefVal.startsWith("http:")&&!hrefVal.startsWith("https:")&&!hrefVal.startsWith("//")&&(hrefVal="http://"+hrefVal),hrefVal}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.