PageSourceSearch

https://www.techniques-ingenieur.fr/assets/controllers/copy_url_controller-gP9ETO_.js

js techniques-ingenieur.fr collected 2026-09-24 09:15:11 UTC 434 bytes, 14 lines download raw bytes

1import {Controller} from '@hotwired/stimulus';
2
3export default class extends Controller {
4    static values = {url: String};
5
6    copy() {
7        navigator.clipboard.writeText(this.urlValue).then(() => {
8            const btn = this.element;
9            const original = btn.innerHTML;
10            btn.innerHTML = '<i class="fas fa-check"></i>';
11            setTimeout(() => { btn.innerHTML = original; }, 1500);
12        });
13    }
14}

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.