File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ const profilePicUrl = `https://github.com/${username}.png`;
7070 <img src = " /send.svg" alt = { ` One click installer for ${plugin .data .title } ` } class = " w-32 h-auto" />
7171 </a >
7272 <div class = " mt-2 relative" >
73- Manual installation:
74- <kbd onclick = " document.copyToClipboard(this)" class = " text-[#9171ad] underline hover:text-[#bf96e3] break-all cursor-pointer" data-url = { plugin .data .url } >
73+ < span > Manual installation:</ span >
74+ <a onclick = " document.copyToClipboard(this); return false; " class = " text-[#9171ad] underline hover:text-[#bf96e3] break-all cursor-pointer" href = { plugin .data .url } >
7575 { plugin .data .url }
7676 <CopyIcon />
77- </kbd >
77+ </a >
7878 <div class = " absolute -bottom-10 bg-[#291c36] border-[#51425e] border-1 border-solid px-2 py-1 rounded-2 opacity-0 transition-opacity duration-300" >Copied!</div >
7979 </div >
8080 </div >
@@ -97,8 +97,9 @@ const profilePicUrl = `https://github.com/${username}.png`;
9797 <script >
9898 // @ts-ignore
9999 document.copyToClipboard = (target: HTMLElement) => {
100- const url = target.dataset.url !;
100+ const url = target.href !;
101101 navigator.clipboard.writeText(url).then(() => {
102+ target.nextElementSibling!.style.left = `${target.previousElementSibling.getBoundingClientRect().width + target.getBoundingClientRect().width / 2 - target.nextElementSibling.getBoundingClientRect().width / 2}px`;
102103 target.nextElementSibling?.classList.remove("opacity-0");
103104 // @ts-ignore
104105 if(target.dataset.timeoutId !== undefined) {
You can’t perform that action at this time.
0 commit comments