1jQuery(function() { 2 3 /*jQuery("#ahrefSubmitLogin").click(function(event) { 4 event.preventDefault(); 5 jQuery("#frmAccountLogin").submit(); 6 return false; 7 });*/ 8 9 10 11 addReadMore(300); 12 13}); 14 15jQuery(window).on("load", function(e) { 16 17}); 18 19 20jQuery(document).ready(function() { 21 22}); 23 24function addReadMore(nbCaracteres) { 25 // Text to show when text is collapsed 26 var readMoreTxt = " ... read more"; 27 // Text to show when text is expanded 28 var readLessTxt = " read less"; 29 30 31 //Traverse all selectors with this class and manipulate HTML part to show Read More 32 jQuery(".add-read-more").each(function () { 33 if (jQuery(this).find(".first-section").length) { 34 return; 35 } 36 37 jQuery(this).addClass("show-less-content"); 38 39 var allstr = jQuery(this).text(); 40 if (allstr.length > nbCaracteres) { 41 var firstSet = allstr.substring(0, nbCaracteres); 42 var secdHalf = allstr.substring(nbCaracteres, allstr.length); 43 var strtoadd = firstSet + "<span class='second-section'>" + secdHalf + "</span><span class='read-more' title='Click to Show More'>" + readMoreTxt + "</span><span class='read-less' title='Click to Show Less'>" + readLessTxt + "</span>"; 44 jQuery(this).html(strtoadd); 45 } 46 }); 47 48 //Read More and Read Less Click Event binding 49 jQuery(document).on("click", ".read-more,.read-less", function () { 50 jQuery(this).closest(".add-read-more").toggleClass("show-less-content show-more-content"); 51 }); 52}
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.