-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (69 loc) · 2.72 KB
/
Copy pathindex.html
File metadata and controls
75 lines (69 loc) · 2.72 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Citely — Alphabetize Citations</title>
<meta name="description" content="Paste citations in bulk, sort alphabetically, and copy the results." />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="container">
<h1>Citely</h1>
<p class="tagline">Paste. Sort. Copy.</p>
</header>
<main class="container card">
<section class="controls">
<label for="input">Your citations</label>
<textarea id="input" placeholder="Paste citations here — one per line. We'll also try to split by bullets, semicolons, and numbered lists." rows="10"></textarea>
<div class="options">
<label class="toggle">
<input type="checkbox" id="ignoreArticles" checked />
<span>Ignore leading articles (A, An, The)</span>
</label>
<label class="toggle">
<input type="checkbox" id="caseInsensitive" checked />
<span>Case-insensitive sort</span>
</label>
<label class="toggle">
<input type="checkbox" id="removeDupes" checked />
<span>Remove duplicates</span>
</label>
<label class="toggle">
<input type="checkbox" id="autoFixApa" />
<span>Auto-fix APA 7 basics</span>
</label>
<label class="toggle">
<input type="checkbox" id="formatRefList" />
<span>Format as reference list (hanging indent)</span>
</label>
</div>
<div class="buttons">
<button id="sortBtn" class="primary">Alphabetize</button>
<button id="clearBtn" class="ghost">Clear</button>
<button id="checkApaBtn" class="secondary">Check APA 7</button>
</div>
</section>
<section class="results">
<div class="results-header">
<h2>Sorted citations</h2>
<div class="results-actions">
<button id="copyBtn" class="secondary" disabled>Copy</button>
<button id="downloadBtn" class="secondary" disabled>Download .txt</button>
</div>
</div>
<textarea id="output" rows="10" readonly placeholder="Sorted results appear here"></textarea>
<div id="outputRich" class="ref-list" hidden aria-label="Formatted reference list (read-only)"></div>
<div id="stats" class="stats" aria-live="polite"></div>
<details id="apaReport" class="apa-report" hidden>
<summary>APA 7 report</summary>
<ul id="apaIssues"></ul>
</details>
</section>
</main>
<footer class="container footer">
<small>Citely works entirely in your browser. No data leaves your device.</small>
</footer>
<script src="script.js"></script>
</body>
</html>