2022-10-17 19:38:31 +03:00
|
|
|
<hr>
|
2022-10-19 23:07:48 +03:00
|
|
|
<div class="row button-container" onclick="myFunction()" style="display:flex; justify-content:space-between;">
|
2022-11-25 17:26:02 +03:00
|
|
|
<input class="one-liner" type="text" value="sh <(curl tea.xyz)" id="shortcodeCopy" readonly>
|
2022-10-17 19:38:31 +03:00
|
|
|
|
2022-10-18 00:16:50 +03:00
|
|
|
<!-- The button used to copy the text -->
|
2022-10-19 23:07:48 +03:00
|
|
|
|
2022-10-29 00:19:52 +03:00
|
|
|
<button type="button" class="clipboard-copy" id="liveToastBtn" onclick="changeCopied()">copy</button>
|
2022-10-18 00:16:50 +03:00
|
|
|
</div>
|
|
|
|
<hr>
|
2022-10-17 19:38:31 +03:00
|
|
|
|
|
|
|
<style>
|
|
|
|
|
2022-10-19 23:07:48 +03:00
|
|
|
.button-container{
|
|
|
|
background-color: #1a1a1a;
|
2022-10-18 00:16:50 +03:00
|
|
|
}
|
|
|
|
|
2022-10-28 22:19:00 +03:00
|
|
|
@media only screen and (min-width: 992px) {
|
2022-10-19 23:07:48 +03:00
|
|
|
|
|
|
|
.one-liner{
|
|
|
|
width: 80%;
|
|
|
|
padding: 2.455vw 4.185vw;
|
|
|
|
border-radius: 0px;
|
|
|
|
border: none;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
font-family: "pp-neue-machina";
|
|
|
|
color:#ffffff;
|
|
|
|
font-size: 2vw;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.one-liner:focus{
|
|
|
|
border:none;
|
|
|
|
outline: none;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy{
|
|
|
|
height: 8.371vw;
|
|
|
|
width: 18%;
|
|
|
|
font-family: "pp-neue-machina";
|
|
|
|
color:#ffffff;
|
|
|
|
font-size: 2.1vw;
|
|
|
|
float:right !important;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
border: none;
|
|
|
|
border-right: 2px solid #949494;
|
|
|
|
transition: 0.2s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy:hover{
|
|
|
|
background-color: #00ffd0 !important;
|
|
|
|
color: #1a1a1a !important;
|
|
|
|
box-shadow: inset 0vw 0vw 0vw 0.558vw #1a1a1a !important;
|
|
|
|
}
|
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
}
|
|
|
|
|
2022-10-28 22:19:00 +03:00
|
|
|
@media only screen and (min-width: 768px) and (max-width: 992px) {
|
|
|
|
|
|
|
|
.button-container{
|
|
|
|
padding:0px 6.1vw !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.one-liner{
|
|
|
|
width: 80%;
|
|
|
|
padding: 2.455vw 5.040vw !important;
|
|
|
|
border-radius: 0px;
|
|
|
|
border: none;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
font-family: "pp-neue-machina";
|
|
|
|
color:#ffffff;
|
|
|
|
font-size: 2vw;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.one-liner:focus{
|
|
|
|
border:none;
|
|
|
|
outline: none;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy{
|
|
|
|
height: 8.371vw;
|
|
|
|
width: 18%;
|
|
|
|
font-family: "pp-neue-machina";
|
|
|
|
color:#ffffff;
|
|
|
|
font-size: 2.1vw;
|
|
|
|
float:right !important;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
border: none;
|
|
|
|
border-right: 2px solid #949494;
|
|
|
|
transition: 0.2s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy:hover{
|
|
|
|
background-color: #00ffd0 !important;
|
|
|
|
color: #1a1a1a !important;
|
|
|
|
box-shadow: inset 0vw 0vw 0vw 0.558vw #1a1a1a !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-10-19 23:07:48 +03:00
|
|
|
@media only screen and (min-width: 576px) and (max-width: 768px) {
|
|
|
|
|
2022-10-28 22:52:39 +03:00
|
|
|
.button-container{
|
|
|
|
padding: 0vw 8vw !important;
|
|
|
|
}
|
|
|
|
|
2022-10-19 23:07:48 +03:00
|
|
|
.one-liner{
|
2022-10-28 22:52:39 +03:00
|
|
|
width: 77%;
|
2022-10-19 23:07:48 +03:00
|
|
|
padding: 5vw 4vw;
|
|
|
|
border-radius: 0px;
|
|
|
|
border: none;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
font-family: "pp-neue-machina";
|
2022-10-19 23:28:39 +03:00
|
|
|
color:#ffffff;
|
2022-10-19 23:07:48 +03:00
|
|
|
font-size: 3.5vw;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.one-liner:focus{
|
|
|
|
border:none;
|
|
|
|
outline: none;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy{
|
|
|
|
padding: 5vw 4vw;
|
2022-10-28 22:52:39 +03:00
|
|
|
width: 20%;
|
2022-10-19 23:07:48 +03:00
|
|
|
font-family: "pp-neue-machina";
|
2022-10-19 23:28:39 +03:00
|
|
|
color:#ffffff;
|
2022-10-19 23:07:48 +03:00
|
|
|
font-size: 3.5vw;
|
|
|
|
float:right;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
border: none;
|
|
|
|
border-right: 2px solid #949494;
|
|
|
|
transition: 0.2s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy:hover{
|
|
|
|
background-color: #00ffd0 !important;
|
|
|
|
color: #1a1a1a !important;
|
|
|
|
box-shadow: inset 0vw 0vw 0vw 0.558vw #1a1a1a !important;
|
|
|
|
}
|
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
}
|
|
|
|
|
2022-10-19 23:07:48 +03:00
|
|
|
@media only screen and (max-width: 576px) {
|
|
|
|
|
|
|
|
.one-liner{
|
|
|
|
width: 100%;
|
|
|
|
padding: 7.5vw 7.5vw !important;
|
|
|
|
border-radius: 0px;
|
|
|
|
border: none;
|
|
|
|
background-color: #1a1a1a !important;
|
|
|
|
font-family: "pp-neue-machina";
|
2022-10-19 23:28:39 +03:00
|
|
|
color:#ffffff;
|
2022-10-19 23:07:48 +03:00
|
|
|
text-align: center !important;
|
|
|
|
font-size: 4vw;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
border-right: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.one-liner:focus{
|
|
|
|
border:none;
|
|
|
|
outline: none;
|
|
|
|
border-left: 2px solid #949494;
|
|
|
|
border-right: 2px solid #949494;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-copy{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
2022-10-18 00:37:39 +03:00
|
|
|
|
2022-10-29 00:19:52 +03:00
|
|
|
function changeCopied() {
|
2022-10-17 19:38:31 +03:00
|
|
|
// Get the text field
|
2022-10-29 01:05:12 +03:00
|
|
|
var copyText = document.getElementById("shortcodeCopy");
|
2022-11-25 17:45:04 +03:00
|
|
|
var copiedValue = "sh <(curl https://tea.xyz)";
|
2022-11-25 17:26:02 +03:00
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
// Select the text field
|
|
|
|
copyText.select();
|
|
|
|
copyText.setSelectionRange(0, 99999); // For mobile devices
|
|
|
|
|
|
|
|
// Copy the text inside the text field
|
2022-11-25 17:45:04 +03:00
|
|
|
navigator.clipboard.writeText(copiedValue);
|
2022-10-17 19:38:31 +03:00
|
|
|
|
2022-10-29 00:19:52 +03:00
|
|
|
document.getElementById("liveToastBtn").innerHTML = "copied!";
|
2022-10-19 23:07:48 +03:00
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
}
|
2022-10-18 00:16:50 +03:00
|
|
|
|
2022-10-17 19:38:31 +03:00
|
|
|
</script>
|