From 98b00630b31e40c3d44c4818a1e7285dcee02d16 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:12:55 -0300 Subject: [PATCH] add command --- godlike.css | 7 +++++++ godlike.js | 7 +++++++ index.html | 8 +++++--- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 godlike.js diff --git a/godlike.css b/godlike.css index 500abb5..acbbcb1 100644 --- a/godlike.css +++ b/godlike.css @@ -16,3 +16,10 @@ background-repeat: no-repeat; background-image: url("data:image/svg+xml;utf8,"); } +.command-install { + display: inline-block; + width: 374px; + text-align: center; + font-size: 1.2em; + margin-top: 30px; +} diff --git a/godlike.js b/godlike.js new file mode 100644 index 0000000..0d86c11 --- /dev/null +++ b/godlike.js @@ -0,0 +1,7 @@ +document + .querySelector("#command-install") + .addEventListener("click", event => { + event.target.select(); + // event.target.setSelectionRange(0, 99999); + // navigator.clipboard.writeText(event.target.value); + }); diff --git a/index.html b/index.html index dc83a77..7e1fb15 100644 --- a/index.html +++ b/index.html @@ -30,11 +30,11 @@ @@ -58,6 +58,7 @@

xrDebug

Lightweight beautiful debugging tool. Quickly resolve bugs, optimize performance, and save valuable time at every stage of your project.

+
@@ -450,5 +451,6 @@
xrDebu +