PageSourceSearch

https://omnetpp.org/js/copyToClipboard.js

js omnetpp.org collected 2026-10-02 04:20:41 UTC 572 bytes, 15 lines download raw bytes

1
2document.addEventListener('DOMContentLoaded', function() {
3    var buttons = document.querySelectorAll('.copy-button');
4    buttons.forEach(function(button) {
5        button.addEventListener('click', function() {
6            var content = this.parentElement.querySelector('.content').innerText;
7            var elem = document.createElement("textarea");
8            document.body.appendChild(elem);
9            elem.value = content;
10            elem.select();
11            document.execCommand("copy");
12            document.body.removeChild(elem);
13        });
14    });
15});

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.