trretretret commited on
Commit
06c9e63
·
1 Parent(s): 909b565
Files changed (1) hide show
  1. public/utils.js +5 -1
public/utils.js CHANGED
@@ -465,6 +465,8 @@ const utils = {
465
  textArea.style.left = x + "px";
466
  textArea.style.top = y + "px";
467
  textArea.style.zIndex = zIndex;
 
 
468
  textArea.disabled = true;
469
  document.body.appendChild(textArea);
470
  setTimeout(() => {
@@ -482,6 +484,8 @@ const utils = {
482
  textArea.style.left = "0";
483
  textArea.style.top = "0";
484
  textArea.style.zIndex = "9999999";
 
 
485
  document.body.appendChild(textArea);
486
  textArea.select();
487
  document.execCommand("copy");
@@ -490,7 +494,7 @@ const utils = {
490
  textArea.scrollTo(10000, 100000);
491
  setTimeout(() => {
492
  document.body.removeChild(textArea);
493
- }, 4000);
494
  },
495
 
496
  writeText: function writeText(targetElement, text, prefix = " ", endfix = " ") {
 
465
  textArea.style.left = x + "px";
466
  textArea.style.top = y + "px";
467
  textArea.style.zIndex = zIndex;
468
+ textArea.style.backgroundColor="black";
469
+ textArea.style.color="white";
470
  textArea.disabled = true;
471
  document.body.appendChild(textArea);
472
  setTimeout(() => {
 
484
  textArea.style.left = "0";
485
  textArea.style.top = "0";
486
  textArea.style.zIndex = "9999999";
487
+ textArea.style.backgroundColor="black";
488
+ textArea.style.color="white";
489
  document.body.appendChild(textArea);
490
  textArea.select();
491
  document.execCommand("copy");
 
494
  textArea.scrollTo(10000, 100000);
495
  setTimeout(() => {
496
  document.body.removeChild(textArea);
497
+ }, 1000);
498
  },
499
 
500
  writeText: function writeText(targetElement, text, prefix = " ", endfix = " ") {