1import $ from "jquery"; 2import "../util/jquery.flagstrap.js"; 3import { bindCopyStateButton } from "../components/copy_state_button.js"; 4import Util from "../util/util.js"; 5 6$( function() { 7 const copyButton = document.getElementById( "copyToClipboardButton" ); 8 if ( copyButton ) { 9 bindCopyStateButton( copyButton, () => { 10 const selectedVal = $( "select[id^=\"flagstrap-\"] option:selected" ).val(); 11 const language = Util.covertFlagToLanguage( selectedVal ) ?? window.lang; 12 return window.htmlCode[ language ] || ""; 13 } ); 14 } 15 16 $( ".languageBtnItem" ).click( function() { 17 $( ".languageDropdownSpace .btn" ).html( $( this ).html() ); 18 window.lang = $( this ).attr( "data-code" ); 19 window.setPreviewTab(); 20 } ); 21} );
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.