Y
Y
yorg2021-09-06 13:12:01
Email
yorg, 2021-09-06 13:12:01

How to hide mail on php website?

Hello, please tell me the solution as on this site https://randomus.ru/

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-06
@Rsa97

What's so difficult about it? A handler hangs on the button, replacing it with a div with the address and opening the text.

function() {
  let p = ['bWFpbHRvOg==', 'c3VwcG9ydA==', 'QA==', 'cmFuZG9tdXMucnU=']; // 'mailto:', 'support', '@', 'randomus.ru'
  let beta = document.getElementById('beta');
  let beta_descript = document.getElementById('beta_decript');
  beta.href = p.map(atob).join('');
  beta.textContent = p.slice(1).map(atob).join('');
  beta_descript.classList.remove('is-hidden');
  alpha.remove();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question