Option to copy the glink for client
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
// const submit = document.getElementById("button");
|
||||
function getRandomGLink() {
|
||||
//
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
// submit.addEventListener('click', validate);
|
||||
function validate() {
|
||||
@@ -49,8 +46,6 @@ function getRandomGLink() {
|
||||
var result = window.confirm("You have left the glink field blank. A random one will be generated for you.");
|
||||
if (result === false) {
|
||||
return false;
|
||||
} else {
|
||||
glinkStr = getRandomGLink();
|
||||
}
|
||||
}
|
||||
|
||||
|
14
public/src/response.js
Normal file
14
public/src/response.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function myFunction() {
|
||||
var copyText = document.getElementById("myInput");
|
||||
copyText.select();
|
||||
copyText.setSelectionRange(0, 99999);
|
||||
navigator.clipboard.writeText(copyText.value);
|
||||
|
||||
var tooltip = document.getElementById("myTooltip");
|
||||
tooltip.innerHTML = "Copied: " + copyText.value;
|
||||
}
|
||||
|
||||
function outFunc() {
|
||||
var tooltip = document.getElementById("myTooltip");
|
||||
tooltip.innerHTML = "Copy to clipboard";
|
||||
}
|
Reference in New Issue
Block a user