function copy_text(event) {

  let text = event.target.getAttribute('data-clipboard-text');

  if(text === null) return {

    status: false,

    data: {}

  };

  let temp = document.createElement('textarea');

  temp.value = text;

  document.body.appendChild(temp);

  temp.select();

  document.execCommand('copy');

  document.body.removeChild(temp);

  alertPages('success', 'Berhasil menyalin teks', 2000)

  return {

    status: true,

    data: text

  }

}