-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
200 lines (185 loc) · 9.02 KB
/
index.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="favicon.ico?v=4" type="image/x-icon">
<meta name="description" content="A tool to help create prefilled message links for Reddit.">
<meta name="google-site-verification" content="Md0lGya6UfEzakuZWL1IZSZUaS_sEbQgW7-6UKljKKk" />
<link rel="stylesheet" href="css/style.css" />
<title>Reddit Message Link Generator</title>
</head>
<body class='d-flex flex-column h-100'>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js"></script>
<script src="js/generator.js" defer></script>
<script src="js/clipboard.js" defer></script>
<main class="container">
<h1>Reddit Message Generator</h1>
<form>
<div class="form-group">
<label for="recipient-input">Message Recipient</label>
<input required type="text" class="form-control" id="recipient-input" />
<small class="form-text text-muted">/r/subreddit for that subreddit's moderators</small>
</div>
<div class="form-group">
<label for="title-input">Message Title</label>
<input required type="text" class="form-control" id="title-input" />
</div>
<div class="form-group">
<label for="message-content">Message Content</label>
<textarea required class="form-control" id="message-content"></textarea>
<small class="text-muted cheatsheet-buttons">
<a href="javascript:void(0);" data-toggle="collapse" data-target="#markdown-collapse" aria-expanded="false" aria-controls="markdown-collapse">Markdown Cheat Sheet</a>
<a href="javascript:void(0);" data-toggle="collapse" data-target="#toolbox-collapse" aria-expanded="false" aria-controls="toolbox-collapse">Toolbox Cheat Sheet</a>
<a href="javascript:void(0);" data-toggle="collapse" data-target="#automod-collapse" aria-expanded="false" aria-controls="automod-collapse">Automoderator Cheat Sheet</a>
</small>
<div class="cheatsheets">
<div class="collapse cheatsheets" id="markdown-collapse">
<div class="card card-body">
<table class="table table-sm table-striped">
<thead>
<th scope="col">What you write</th>
<th scope="col">What the user sees</th>
</thead>
<tbody>
<tr>
<td>*text*</td>
<td><i>text</i></td>
</tr>
<tr>
<td>**text**</td>
<td><strong>text</strong></td>
</tr>
<tr>
<td>`text`</td>
<td><code>text</code></td>
</tr>
<tr>
<td>~~text~~</td>
<td><strike>text</strike></td>
</tr>
<tr>
<td>>text</td>
<td><span class="quote">text</span></td>
</tr>
</tbody>
</table>
<a href="https://reddit.com/wiki/markdown" target="_blank" rel="noreferrer">See the full help page</a>
</div>
</div>
<div class="collapse" id="toolbox-collapse">
<div class="card card-body">
<table class="table table-sm table-striped">
<thead>
<th scope="col">What you write</th>
<th scope="col">Description</th>
<th scope="col">Example</th>
</thead>
<tbody>
<tr>
<td>{author}</td>
<td>The author's name</td>
<td>Xeelee1123</td>
</tr>
<tr>
<td>{title}</td>
<td>The submission's title</td>
<td>Mega Skyhook design by Jullius Granada</td>
</tr>
<tr>
<td>{link}</td>
<td>The permalink to the actioned content</td>
<td>https://reddit.com/r/ImaginaryTechnology/comments/lhhkzv/mega_skyhook_design_by_jullius_granada/</td>
</tr>
<tr>
<td>{subreddit}</td>
<td>Your subreddit name (without the r/)</td>
<td>ImaginaryTechnology</td>
</tr>
<tr>
<td>{kind}</td>
<td>Either "submission" or "comment"</td>
<td>submission</td>
</tr>
<tr>
<td>{mod}</td>
<td>Moderator's username (without the u/)</td>
<td>alteoth</td>
</tr>
</tbody>
</table>
<a href="https://www.reddit.com/r/toolbox/wiki/docs/removalreasons#wiki_tokens" target="_blank" rel="noreferrer">See the full help page</a>
</div>
</div>
<div class="collapse" id="automod-collapse">
<div class="card card-body">
<table class="table table-sm table-striped">
<thead>
<th scope="col">What you write</th>
<th scope="col">Description</th>
<th scope="col">Example</th>
</thead>
<tbody>
<tr>
<td>{{author}}</td>
<td>The author's name</td>
<td>Xeelee1123</td>
</tr>
<tr>
<td>{{title}}</td>
<td>The submission's title</td>
<td>Aegis Hammer Head Promo by Sarah MCculloch</td>
</tr>
<tr>
<td>{{body}}</td>
<td>The full body of the text submission or comment</td>
<td>I really like when their glasses have that suspicious looking gleam, and it's amazing how it can look really cool or just be a joke. I really like how it can fulfill all those abstract needs. Being able to switch up the styles and colors of glasses based on your mood is a lot of fun too!</td>
</tr>
<tr>
<td>{{subreddit}}</td>
<td>Subreddit name</td>
<td>ImaginaryStarships</td>
</tr>
<tr>
<td>{{kind}}</td>
<td>Either "submission" or "comment"</td>
<td>submission</td>
</tr>
<tr>
<td>{{permalink}}</td>
<td>The permalink to the actioned content</td>
<td>https://reddit.com/r/ImaginaryStarships/comments/jv0jvm/aegis_hammer_head_promo_by_sarah_mcculloch/</td>
</tr>
</tbody>
</table>
<a href="https://www.reddit.com/wiki/automoderator/full-documentation#wiki_placeholders" target="_blank" rel="noreferrer">See the full help page</a>
</div>
</div>
</div>
</div>
<button class="btn btn-primary" id="generate-btn" type="button"> <img src="./icons/gear-fill.svg" alt="gear icon" class="icon"> Generate</button>
<button class="btn btn-danger" id="clear-btn" type="button"> <img src="./icons/trash2-fill.svg" alt="Trash icon" class="icon"> Clear all</button>
</form>
<div class="results" id="results">
<h2>Results</h2>
<pre id="results-field">Your link will appear here once you hit "Generate"!</pre>
<button class="btn btn-outline-secondary" id="copy-btn" type="button" data-clipboard-target="#results-field">
<img src="./icons/clipboard.svg" alt="clipboard icon" class="icon">
Copy
</button>
</div>
</main>
<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted">
Made <strike>over the weekend</strike> with 💛 by <a href="https://github.com/xeoth">xeoth</a>. Like the site? Consider giving <a href="https://github.com/Xeoth/redditmessages">the repo</a> a star! ⭐
</span>
</div>
</footer>
</body>
</html>