1223

121


 function copyClipboard(value) {
  /* Get the text field */
  navigator.clipboard.writeText(value);

  //onclick=”copyClipboard(\” + value + ‘\’)”
  var aux = ‘i[onclick=”copyClipboard(\” + value + ‘\’)”]’;

  $(aux).removeClass(“far fa-copy”);
  $(aux).addClass(“fas fa-check”);
  $(aux).css(“color”, “green”);
  setTimeout(
   function() {
    $(aux).removeClass(“fas fa-check”);
    $(aux).addClass(“far fa-copy”);
    $(aux).css(“color”, “”);
   }, 1000);
 }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *