mirror of
https://github.com/ivabus/www
synced 2024-11-22 18:35:06 +03:00
#202 fix package install sh
This commit is contained in:
parent
037bd8effe
commit
3aa0ca2342
2 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{ range where $.Site.Data.packages "name" .Title }}
|
{{ range where $.Site.Data.packages "name" .Title }}
|
||||||
{{- partial "clipboard-copy-package-detail.html" -}}
|
{{- partial "clipboard-copy-package-detail.html" . -}}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row button-container" onclick="myFunction()" style="display:flex; justify-content:space-between;">
|
<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 -->
|
<!-- The button used to copy the text -->
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
copyText.setSelectionRange(0, 99999); // For mobile devices
|
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||||
|
|
||||||
// Copy the text inside the text field
|
// Copy the text inside the text field
|
||||||
navigator.clipboard.writeText(copiedValue + "+{{- .full_name -}}");
|
navigator.clipboard.writeText(copiedValue + " +{{- .full_name -}}");
|
||||||
|
|
||||||
document.getElementById("liveToastBtn").innerHTML = "copied!";
|
document.getElementById("liveToastBtn").innerHTML = "copied!";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue