1/* 2 * jQuery v1.9.1 included 3 */ 4 5$(document).ready(function() { 6 7 // social share popups 8 $(".share a").click(function(e) { 9 e.preventDefault(); 10 window.open(this.href, "", "height = 500, width = 500"); 11 }); 12 13 // toggle the share dropdown in communities 14 $(".share-label").on("click", function(e) { 15 e.stopPropagation(); 16 var isSelected = this.getAttribute("aria-selected") == "true"; 17 this.setAttribute("aria-selected", !isSelected); 18 $(".share-label").not(this).attr("aria-selected", "false"); 19 }); 20 21 $(document).on("click", function() { 22 $(".share-label").attr("aria-selected", "false"); 23 }); 24 25 // show form controls when the textarea receives focus or backbutton is used and value exists 26 var $answerbodyTextarea = $(".answer-body textarea"), 27 $answerFormControls = $(".answer-form-controls"), 28 $commentContainerTextarea = $(".comment-container textarea"), 29 $commentContainerFormControls = $(".comment-form-controls"); 30 31 $answerbodyTextarea.one("focus", function() { 32 $answerFormControls.show(); 33 }); 34 35 $commentContainerTextarea.one("focus", function() { 36 $commentContainerFormControls.show(); 37 }); 38 39 if($commentContainerTextarea.val() !== "") { 40 $commentContainerFormControls.show(); 41 } 42 43 if($answerbodyTextarea.val() !== "") { 44 $answerFormControls.show(); 45 } 46 47});
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.