PageSourceSearch

https://www.excellent.org/assets/js/user/widget_step2-bKQ9i-W.js

js excellent.org collected 2026-10-05 21:46:44 UTC 802 bytes, 21 lines download raw bytes

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.