mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:45:05 +03:00
Default placeholder value sans 'https'
This commit is contained in:
parent
49f71a65d5
commit
dd66800c9f
1 changed files with 3 additions and 2 deletions
|
@ -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 https://tea.xyz)" id="shortcodeCopy" readonly>
|
<input class="one-liner" type="text" value="sh <(curl tea.xyz)" id="shortcodeCopy" readonly>
|
||||||
|
|
||||||
<!-- The button used to copy the text -->
|
<!-- The button used to copy the text -->
|
||||||
|
|
||||||
|
@ -182,6 +182,8 @@
|
||||||
// Get the text field
|
// Get the text field
|
||||||
var copyText = document.getElementById("shortcodeCopy");
|
var copyText = document.getElementById("shortcodeCopy");
|
||||||
|
|
||||||
|
copyText.value = "sh <(curl https://tea.xyz)";
|
||||||
|
|
||||||
// Select the text field
|
// Select the text field
|
||||||
copyText.select();
|
copyText.select();
|
||||||
copyText.setSelectionRange(0, 99999); // For mobile devices
|
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||||
|
@ -189,7 +191,6 @@
|
||||||
// Copy the text inside the text field
|
// Copy the text inside the text field
|
||||||
navigator.clipboard.writeText(copyText.value);
|
navigator.clipboard.writeText(copyText.value);
|
||||||
|
|
||||||
|
|
||||||
document.getElementById("liveToastBtn").innerHTML = "copied!";
|
document.getElementById("liveToastBtn").innerHTML = "copied!";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue