1jQuery(document).ready(function ($) { 2 3 var sharePermalinkNode = document.getElementById('SharePermalink'); 4 5 if (sharePermalinkNode) { 6 var sharePermalinkPopover = new bootstrap.Popover(sharePermalinkNode, { 7 html: true, 8 title: "", 9 container: 'body', 10 content: $('#SharePermalinkModal [data-name="popover-content"]') 11 }); 12 13 $("#SharePermalinkModal .copyclipboard").on("click", function(e) { 14 15 var textareaValue = $("#SharePermalinkText").val(); 16 17 var tempTextarea = $("<textarea>"); 18 tempTextarea.val(textareaValue); 19 20 $("body").append(tempTextarea); 21 tempTextarea.select(); 22 document.execCommand("copy"); 23 24 tempTextarea.remove(); 25 26 e.stopPropagation(); 27 sharePermalinkPopover.hide(); 28 return false; 29 }); 30 31 document.addEventListener('click', function (event) { 32 if ( !sharePermalinkNode.contains(event.target)) { 33 sharePermalinkPopover.hide(); 34 } 35 }); 36 37 document.addEventListener('scroll', function (event) { 38 sharePermalinkPopover.hide(); 39 }); 40 } 41 42 // 43 // Clipboard Copy Toast 44 // 45 46 const copyclipboardNode = document.getElementById('SharePermalinkCopyClipboardBtn') 47 const copyCliboardCompleteToast = document.getElementById('copyCliboardCompleteToast') 48 49 if (copyclipboardNode) { 50 const toastBootstrap = bootstrap.Toast.getOrCreateInstance(copyCliboardCompleteToast) 51 copyclipboardNode.addEventListener('click', () => { 52 toastBootstrap.show(); 53 }) 54 } 55});
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.