14 lines
No EOL
447 B
JavaScript
14 lines
No EOL
447 B
JavaScript
class contactMailButton extends HTMLElement {
|
|
constructor() {
|
|
super();
|
|
this.addButton();
|
|
|
|
}
|
|
|
|
async addButton(){
|
|
let sitekey = await (await fetch("/API/config.php?name=sitekey")).text();
|
|
this.innerHTML = `E-Mail: <button id="emailButton" class="h-captcha" data-sitekey="${sitekey}" data-callback="onSubmit">laden</button><br>`;
|
|
}
|
|
}
|
|
|
|
customElements.define("jl-contact_mail_button", contactMailButton); |