-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplategen.html
More file actions
77 lines (71 loc) · 2.32 KB
/
templategen.html
File metadata and controls
77 lines (71 loc) · 2.32 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
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RMarkdown Report Template Generator</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<main>
<h1>RMarkdown Report Template Generator</h1>
<form id="template-form">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="subject-code">Subject Code:</label>
<input type="text" id="subject-code" name="subject-code" required>
<label for="title">Title:</label>
<input type="text" id="title" name="title" required>
<label for="student-id">Student ID:</label>
<input type="text" id="student-id" name="student-id" required>
<label for="font">Font:</label>
<select id="font" name="font" required>
<option value="Times New Roman">Times New Roman</option>
<option value="Arial">Arial</option>
<option value="Helvetica">Helvetica</option>
<option value="Garamond">Garamond</option>
</select>
<label for="date-format">Date Format:</label>
<input type="text" id="date-format" name="date-format" value="%B %d, %Y" required>
<div class="hint">
<span id="hint-toggle">Hint</span>
<div id="hint-content" class="hint-content">
<table>
<tr>
<th>Code</th>
<th>Meaning</th>
</tr>
<tr>
<td>%d</td>
<td>Decimal day</td>
</tr>
<tr>
<td>%b</td>
<td>Abbreviated month</td>
</tr>
<tr>
<td>%B</td>
<td>Full month</td>
</tr>
<tr>
<td>%m</td>
<td>Decimal month</td>
</tr>
<tr>
<td>%y</td>
<td>2-digit year</td>
</tr>
<tr>
<td>%Y</td>
<td>4-digit year</td>
</tr>
</table>
</div>
</div>
<button type="submit">Generate</button>
</form>
<textarea id="output" readonly></textarea>
</main>
</body>
</html>