MCPcopy Create free account
hub / github.com/pollinations/pollinations / copyCode

Function copyCode

apps/openclaw/src/script.js:3–14  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1const OPENCLAW_APP_KEY = "pk_6qmH5idGyIiJdbgA";
2
3function copyCode(id) {
4 const el = document.getElementById(id);
5 const inner = el.querySelector(".code-inner") || el;
6 const text = inner.textContent.trim();
7 navigator.clipboard.writeText(text).then(() => {
8 const btn = el.querySelector(".copy-btn");
9 btn.textContent = "Copied!";
10 setTimeout(() => {
11 btn.textContent = "Copy";
12 }, 1500);
13 });
14}
15
16function toggleManual() {
17 const el = document.getElementById("manual-config");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected