forked from .cyb/cyberman
15 lines
453 B
JavaScript
15 lines
453 B
JavaScript
function showOwnerEmail(in_name) {
|
|
let name = in_name;
|
|
if (!document.getElementById('owneremail-' + name)) {
|
|
return;
|
|
}
|
|
document.getElementById('owneremail-' + name).innerHTML = 'Loading...';
|
|
fetch('/api/get_owner_email?name=' + encodeURIComponent(name), {
|
|
method: 'GET',
|
|
mode: 'cors'
|
|
}).then(g => g.text()).then(g => {
|
|
document.getElementById('owneremail-' + name).innerHTML = g;
|
|
}).catch((e) => {
|
|
console.log('server error', e);
|
|
});
|
|
} |