forked from agracio/electron-edge-js-quick-start
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (47 loc) · 1.06 KB
/
index.html
File metadata and controls
47 lines (47 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<div>
<div>Email</div>
<input id="toInput"/>
</div>
<div>
<div>Subject</div>
<input id="subjectInput" />
</div>
<div>
<div>Body</div>
<input id="bodyInput" />
</div>
<div>
<div>ccEmail</div>
<input id="ccEmailInput" />
</div>
<div>
<div>bccEMail</div>
<input id="bccEmailInput" />
</div>
<br/>
<div>
<div>Select Attachment</div>
<input id="attachment" type="file" accept=".pdf" />
<input hidden id="attachmentInput" />
</div>
<br/>
<div>
<button id="btn" type="button">Create Email</button>
</div>
<script>
document.getElementById('attachment').addEventListener('change', (e) => {
const file = e.target.files[0];
const hiddenInput = document.getElementById('attachmentInput');
hiddenInput.value = file.path
});
</script>
<script src="./renderer.js"></script>
</body>
</html>