-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (58 loc) · 2.05 KB
/
index.html
File metadata and controls
75 lines (58 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<title>Email Encode</title>
</head>
<body>
<header>
<h1>Email Encode</h1>
</header>
<main class="container-fluid">
<div id="result" aria-live="polite" aria-atomic="true"></div>
<form id="email-encode">
<legend>Enter email details:</legend>
<fieldset>
<label for="txtTo">
To:
<input type="email" id="txtTo" name="to" required aria-required="true" placeholder="Enter recipient's email">
</label>
<label for="txtCc">
Cc:
<input type="email" id="txtCc" name="cc" placeholder="Optional">
</label>
<label for="txtBcc">Bcc:</label>
<input type="email" id="txtBcc" name="bcc" placeholder="Optional">
<label for="txtSubject">
Subject:
<input type="text" id="txtSubject" name="subject" placeholder="Enter subject">
</label>
<label for="txtBody">
Body:
<textarea id="txtBody" name="body" placeholder="Enter your message here" required
aria-required="true"></textarea>
</label>
<button type="submit">Submit</button>
</fieldset>
</form>
<fieldset>
<legend>Generated mailto link</legend>
<label for="mailtoLink">Copy this into your HTML email:</label>
<textarea id="mailtoLink" readonly rows="3" style="width:100%;"></textarea>
<button id="copyLink">Copy to Clipboard</button>
</fieldset>
</main>
<footer>
<p>
Built with <strong>vanilla JavaScript</strong>, <strong>TypeScript</strong>,
<strong>Pico.css</strong>, and <strong>Vite</strong>.
Check out the code on
<a href="https://github.com/jennifert/javascript-email-encode" target="_blank" rel="noopener">GitHub</a>.
</p>
</footer>
<script type="module" src="/src/main.ts"></script>
</body>
</html>