add email & fix dev setup
This commit is contained in:
parent
b7bb83404d
commit
832cbda196
@ -1 +1 @@
|
|||||||
<!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"><title>email.radio - Free E-mail for all amateur radio operators</title><meta name="title" content="email.radio - Free E-mail for all amateur radio operators"><meta name="description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."><meta property="og:type" content="website"><meta property="og:url" content="https://email.radio/"><meta property="og:title" content="email.radio - Free E-mail for all amateur radio operators"><meta property="og:description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."><meta property="twitter:card" content="summary_large_image"><meta property="twitter:url" content="https://email.radio/"><meta property="twitter:title" content="email.radio - Free E-mail for all amateur radio operators"><meta property="twitter:description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."></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>If you already have an account, you can access the <a href="https://mail.email.radio" target="_blank">dashboard here</a> and the <a href="https://mail.email.radio/SOGo" target="_blank">webmail here</a>.</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>
|
<!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"><title>email.radio - Free E-mail for all amateur radio operators</title><meta name="title" content="email.radio - Free E-mail for all amateur radio operators"><meta name="description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."><meta property="og:type" content="website"><meta property="og:url" content="https://email.radio/"><meta property="og:title" content="email.radio - Free E-mail for all amateur radio operators"><meta property="og:description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."><meta property="twitter:card" content="summary_large_image"><meta property="twitter:url" content="https://email.radio/"><meta property="twitter:title" content="email.radio - Free E-mail for all amateur radio operators"><meta property="twitter:description" content="email.radio is dedicated to providing free email hosting for all licensed ham radio operators."></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>If you already have an account, you can access the <a href="https://mail.email.radio" target="_blank">dashboard here</a> and the <a href="https://mail.email.radio/SOGo" target="_blank">webmail here</a>.</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><br><details><summary>E-Mail Settings</summary><h3>IMAP:</h3><p>Username: <code>CALLSIGN@email.radio</code></p><p>Host: <code>mail.email.radio</code></p><p>Port: <code>143</code></p><p>SSL: <code>STARTTLS</code></p><h3>SMTP:</h3><p>Username: <code>CALLSIGN@email.radio</code></p><p>Host: <code>mail.email.radio</code></p><p>Port: <code>587</code></p><p>SSL: <code>STARTTLS</code></p></details><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>
|
2
index.js
2
index.js
@ -1,2 +1,2 @@
|
|||||||
const execSync = require('child_process').execSync;
|
const execSync = require('child_process').execSync;
|
||||||
code = execSync('npm dev');
|
code = execSync('npm start');
|
15
index.njk
15
index.njk
@ -11,6 +11,21 @@ layout: base.njk
|
|||||||
<input placeholder="Your regular email" id="email">
|
<input placeholder="Your regular email" id="email">
|
||||||
<p id="emailf">Your email will be</p>
|
<p id="emailf">Your email will be</p>
|
||||||
<button id="btn" onclick="submit()">Submit!</button>
|
<button id="btn" onclick="submit()">Submit!</button>
|
||||||
|
<br>
|
||||||
|
<details>
|
||||||
|
<summary>E-Mail Settings</summary>
|
||||||
|
<h3>IMAP:</h3>
|
||||||
|
<p>Username: <code>CALLSIGN@email.radio</code></p>
|
||||||
|
<p>Host: <code>mail.email.radio</code></p>
|
||||||
|
<p>Port: <code>143</code></p>
|
||||||
|
<p>SSL: <code>STARTTLS</code></p>
|
||||||
|
|
||||||
|
<h3>SMTP:</h3>
|
||||||
|
<p>Username: <code>CALLSIGN@email.radio</code></p>
|
||||||
|
<p>Host: <code>mail.email.radio</code></p>
|
||||||
|
<p>Port: <code>587</code></p>
|
||||||
|
<p>SSL: <code>STARTTLS</code></p>
|
||||||
|
</details>
|
||||||
<script>
|
<script>
|
||||||
function updateEmail(){
|
function updateEmail(){
|
||||||
document.querySelector("#emailf").innerHTML = `Your email will be ${document.querySelector("#call").value}@email.radio!`
|
document.querySelector("#emailf").innerHTML = `Your email will be ${document.querySelector("#call").value}@email.radio!`
|
||||||
|
Loading…
Reference in New Issue
Block a user