#202 fix package install sh

This commit is contained in:
neil 2022-11-30 20:32:45 +08:00
parent 037bd8effe
commit 3aa0ca2342
2 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@
</section>
{{ range where $.Site.Data.packages "name" .Title }}
{{- partial "clipboard-copy-package-detail.html" -}}
{{- partial "clipboard-copy-package-detail.html" . -}}
{{ end }}

View file

@ -1,6 +1,6 @@
<hr>
<div class="row button-container" onclick="myFunction()" style="display:flex; justify-content:space-between;">
<input class="one-liner" type="text" value="sh <(curl tea.xyz)" id="shortcodeCopy" readonly>
<input class="one-liner" type="text" value="sh <(curl tea.xyz) +{{- .full_name -}}" id="shortcodeCopy" readonly>
<!-- The button used to copy the text -->
@ -178,7 +178,7 @@
<script>
function changeCopied() {
function changeCopied() {
// Get the text field
var copyText = document.getElementById("shortcodeCopy");
var copiedValue = "sh <(curl https://tea.xyz)";
@ -188,7 +188,7 @@
copyText.setSelectionRange(0, 99999); // For mobile devices
// Copy the text inside the text field
navigator.clipboard.writeText(copiedValue + "+{{- .full_name -}}");
navigator.clipboard.writeText(copiedValue + " +{{- .full_name -}}");
document.getElementById("liveToastBtn").innerHTML = "copied!";