PageSourceSearch

https://cricketmedia.com/wp-content/plugins/copy-the-code/assets/js/copy-inline.js?ver=3.8.2

js cricketmedia.com collected 2026-10-03 21:38:37 UTC 981 bytes, 48 lines download raw bytes

1(function ($) {
2    const CTCInline = {
3
4        /**
5         * Init
6         */
7        init: function () {
8            this._bind();
9        },
10
11        /**
12         * Binds events
13         */
14        _bind: function () {
15            $( document ).on( 'click', '.ctc-inline-copy', this.doCopy );
16        },
17
18        /**
19         * Do Copy to Clipboard
20         */
21        doCopy: function (event) {
22            event.preventDefault();
23
24            const self = $( this )
25            let text = self.find( '.ctc-inline-copy-textarea' ).val() || ''
26
27            // Remove first and last new line.
28            text = $.trim(text);
29
30            // Copy to clipboard.
31            CTCWP.copy(text);
32
33            // Copied!
34            self.addClass('copied');
35            setTimeout(function () {
36                self.removeClass('copied');
37            }, 1000);
38        }
39    };
40
41    /**
42     * Initialization
43     */
44    $(function () {
45        CTCInline.init();
46    });
47
48})(jQuery);

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.