1 line
1.4 KiB
HTML
1 line
1.4 KiB
HTML
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/holiday.css@0.11.0"></head><body><h1>email.radio</h1><p>email.radio is dedicated to providing free email hosting for all licensed ham radio operators. You will get a (free!) email @email.radio address.</p><p>A magical signup form will appear here on May 3rd, 2023.</p><input placeholder="Callsign" id="call" oninput="updateEmail()"><br><input placeholder="Your regular email" id="email"><p id="emailf">Your email will be</p><button id="btn" onclick="submit()">Submit!</button><script>function updateEmail(){document.querySelector("#emailf").innerHTML=`Your email will be ${document.querySelector("#call").value}@email.radio!`}function submit(){document.querySelector("#btn").disabled=!0;var e=document.querySelector("#call").value,l=document.querySelector("#email").value;fetch(`https://signup.email.radio/signup?email=${l}&callsign=`+e).then(e=>e.json()).then(e=>{e.success?alert("Please check your email for more information. Your callsign will be validated before your mailbox is created. This may take up to 48 hours."):(document.querySelector("#btn").disabled=!1,alert(e.error))})}</script></body><footer><small>© email.radio, 2022. All rights reserved</small></footer></html> |