This repository was archived by the owner on Jan 11, 2021. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (56 loc) · 2.42 KB
/
Copy pathindex.html
File metadata and controls
73 lines (56 loc) · 2.42 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<title>CSSU PostGen</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body class="wrap">
<header class="header">
<h1 class="header__logo">CSSU PostGen</h1>
<p>Tool for generating news and events post Markdown files for the <a href="https://cssu.ca/">CSSU website</a>.</p>
</header>
<form class="post_form">
<h2>Post metadata</h2>
<label class="form_label">Post type</label>
<label for="post_type_news" class="form_radio">
<input type="radio" id="post_type_news" name="post_type" checked>
News
</label>
<label for="post_type_events" class="form_radio">
<input type="radio" id="post_type_events" name="post_type">
Event
</label>
<label class="form_label">Post title</label>
<input type="text" id="post_title" placeholder="Post title">
<div id="post_news_author">
<label class="form_label">Author</label>
<input type="text" id="post_author" placeholder="Author">
</div>
<div id="post_event_description">
<label class="form_label">Short description</label>
<input type="text" id="post_description" placeholder="Short description">
</div>
<label class="form_label">Date (YYYY-MM-DD HH:mm)</label>
<input type="text" id="post_date" placeholder="Date">
<div id="post_event_expiry">
<label class="form_label">Expiry date (YYYY-MM-DD HH:mm)</label>
<input type="text" id="post_expiry" placeholder="Expiry date">
</div>
<label class="form_label">Tags (separate with spaces)</label>
<input type="text" id="post_tags" placeholder="Tags (space-separated)">
<div id="form_content">
<h2>Post content (Markdown)</h2>
<textarea id="post_content" placeholder="Post content"></textarea>
</div>
<input type="submit" id="post_generate" class="button" value="Generate">
</form>
<section class="preview">
<label class="form_label">Preview</label>
<textarea id="post_preview" disabled></textarea>
<input type="button" id="post_download" class="button" value="Download Markdown file">
</section>
<script src="js/script.js"></script>
</body>
</html>