1 2/* reset requirejs definitions so that people who 3 put requirejs in legacy compilation do not get errors */ 4var _old_define = define; 5var _old_require = require; 6define = undefined; 7require = undefined; 8try{ 9 10/* resource: ++resource++static/script/jquery.textareaCounter.plugin.js */ 11(function($){$.fn.textareaCount=function(options,fn){var defaults={maxCharacterSize:-1,originalStyle:'originalTextareaInfo',warningStyle:'warningTextareaInfo',warningNumber:20,displayFormat:'#left caracteres restantes'};var options=$.extend(defaults,options);var container=$(this);$("<div class='charleft'> </div>").insertAfter(container);var charLeftCss={'width':'100%'};var charLeftInfo=getNextCharLeftInformation(container);charLeftInfo.addClass(options.originalStyle);charLeftInfo.css(charLeftCss);var numInput=0;var maxCharacters=options.maxCharacterSize;var numLeft=0;var numWords=0;container.bind('keyup',function(event){limitTextAreaByCharacterCount();}).bind('mouseover',function(event){setTimeout(function(){limitTextAreaByCharacterCount();},10);}).bind('paste',function(event){setTimeout(function(){limitTextAreaByCharacterCount();},10);});function limitTextAreaByCharacterCount(){charLeftInfo.html(countByCharacters());if(typeof fn!='undefined')fn.call(this,getInfo());return true;}function countByCharacters(){var content=container.val();var contentLength=content.length;if(options.maxCharacterSize>0){if(contentLength>=options.maxCharacterSize)content=content.substring(0,options.maxCharacterSize);var newlineCount=getNewlineCount(content);var systemmaxCharacterSize=options.maxCharacterSize-newlineCount;if(!isWin())systemmaxCharacterSize=options.maxCharacterSize;if(contentLength>systemmaxCharacterSize){var originalScrollTopPosition=this.scrollTop;container.val(content.substring(0,systemmaxCharacterSize));this.scrollTop=originalScrollTopPosition;}charLeftInfo.removeClass(options.warningStyle);if(systemmaxCharacterSize-contentLength<=options.warningNumber)charLeftInfo.addClass(options.warningStyle);numInput=container.val().length+newlineCount;if(!isWin())numInput=container.val().length;numWords=countWord(getCleanedWordString(container.val()));numLeft=maxCharacters-numInput;}else{var newlineCount=getNewlineCount(content);numInput=container.val().length+newlineCount;if(!isWin())numInput=container.val().length;numWords=countWord(getCleanedWordString(container.val()));}return formatDisplayInfo();}function formatDisplayInfo(){var format=options.displayFormat;format=format.replace('#input',numInput);format=format.replace('#words',numWords);if(maxCharacters>0){format=format.replace('#max',maxCharacters);format=format.replace('#left',numLeft);}return format;}function getInfo(){var info={input:numInput,max:maxCharacters,left:numLeft,words:numWords};return info;}function getNextCharLeftInformation(container){return container.next('.charleft');}function isWin(){var strOS=navigator.appVersion;if(strOS.toLowerCase().indexOf('win')!=-1)return true;return false;}function getNewlineCount(content){var newlineCount=0;for(var i=0;i<content.length;i++)if(content.charAt(i)=='\n')newlineCount++;return newlineCount;}function getCleanedWordString(content){var fullStr=content+" ";var initial_whitespace_rExp=/^[^A-Za-z0-9]+/gi;var left_trimmedStr=fullStr.replace(initial_whitespace_rExp,"");var non_alphanumerics_rExp=rExp=/[^A-Za-z0-9]+/gi;var cleanedStr=left_trimmedStr.replace(non_alphanumerics_rExp," ");var splitString=cleanedStr.split(" ");return splitString;}function countWord(cleanedWordString){var word_count=cleanedWordString.length-1;return word_count;}};})(jQuery); 12}catch(e){ 13 // log it 14 if (typeof console !== "undefined"){ 15 console.log('Error loading javascripts!' + e); 16 } 17}finally{ 18 define = _old_define; 19 require = _old_require; 20}
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.