-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindexe.html
49 lines (48 loc) · 1.81 KB
/
indexe.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Certificate Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Certificate Generator</h1>
<form id="certificateForm">
<div>
<label for="certificate">Upload Certificate Image (JPEG/PNG):</label>
<input type="file" id="certificate" accept="image/*" required>
</div>
<div>
<label for="csvFile">Upload CSV with 'name' and 'email' columns:</label>
<input type="file" id="csvFile" accept=".csv" required>
</div>
<div id="imagePreviewContainer">
<canvas id="certificateCanvas"></canvas>
</div>
<div>
<label for="xCoord">X Coordinate:</label>
<input type="number" id="xCoord" required>
<label for="yCoord">Y Coordinate:</label>
<input type="number" id="yCoord" required>
</div>
<div>
<label for="fontSelect">Select Font:</label>
<select id="fontSelect">
<option value="FONT_HERSHEY_SIMPLEX">Simplex</option>
<option value="FONT_HERSHEY_COMPLEX">Complex</option>
<option value="FONT_HERSHEY_TRIPLEX">Triplex</option>
<option value="FONT_HERSHEY_SCRIPT_SIMPLEX">Script Simplex</option>
</select>
</div>
<div>
<label for="email">Sender Email:</label>
<input type="email" id="email" required>
<label for="password">Password:</label>
<input type="password" id="password" required>
</div>
<button type="submit">Generate and Send Certificates</button>
</form>
<script src="app.js"></script>
</body>
</html>