1$(function(){ 2 $("#view-all-comments").click(function(e) { 3 e.preventDefault(); 4 if($(this).hasClass('active')) { 5 $("#hiddenComments").slideUp(); 6 $(this).html("View All").removeClass("active"); 7 } else { 8 $("#hiddenComments").slideDown(); 9 $(this).html("Show Less").addClass("active"); 10 $(this).attr('title', 'Shows less comments for this post') 11 } 12 }) 13 14 $(".comment a").click(function() { 15 $('html, body').animate({ 16 scrollTop: $("#comments-section").offset().top 17 }, 1500); 18 }); 19 20 $(document).on('click', '.socialLink', function(){ 21 var url = $(this).data('url'), 22 token = encodeURIComponent(window.btoa(url)); 23 showSocialPopup(token, 600, 500); 24 }); 25 26 $(document).on('click', '.print', function(){ 27 window.print(); 28 return false; 29 }); 30 31}) 32 33function showSocialPopup(pageUrl, width, height) { 34 var specs = "width=" + width + ",height=" + height + ",location=0,resizeable=1,status=1,scrollbars=1"; 35 if(siteType == 'BANK') { 36 window.open("/disclaimer?url=" + pageUrl + "&social=true", "Social Popup", specs); 37 } else { 38 window.open(pageUrl, "Social Popup", specs); 39 } 40}
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.