-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
100 lines (99 loc) · 5.73 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<title>Line Duplicates</title>
</head>
<body>
<div class="container">
<div class="row mt-5">
<div class="col text-center">
<h1 class="display-4 mb-5">Line Duplicates</h1>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<textarea class="form-control" id="lines" rows="19" placeholder="Add some lines of text" autofocus></textarea>
</div>
</div>
<div class="col-sm-4 col-md-3">
<div class="row">
<div class="col">
<div class="card">
<table class="table mb-0 bg-light">
<tbody>
<tr>
<th class="border-top-0">Lines</th>
<td class="border-top-0 text-right" id="total-lines">0</td>
</tr>
<tr class="border-bottom">
<th>Duplicates</th>
<td class="text-right" id="total-dupes">0</td>
</tbody>
</table>
<div class="card-body border-bottom">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="ignore-empty" checked>
<label class="form-check-label" for="ignore-empty">Ignore empty lines</label>
</div>
</div>
<div class="card-body border-bottom">
<div id="form-check-all" class="form-check">
<input class="form-check-input" type="radio" name="display" id="display-all" value="all" checked>
<label class="form-check-label" for="display-all">
Show all
</label>
</div>
<div id="form-check-duplicates" class="form-check">
<input class="form-check-input" type="radio" name="display" id="display-duplicates" value="duplicates" disabled>
<label class="form-check-label" for="display-duplicates">
Show duplicates
</label>
</div>
<div id="form-check-non-duplicates" class="form-check">
<input class="form-check-input" type="radio" name="display" id="display-non-duplicates" value="non-duplicates" disabled>
<label class="form-check-label" for="display-non-duplicates">
Show non-duplicates
</label>
</div>
</div>
<div class="card-body">
<div id="form-check-all" class="form-check">
<input class="form-check-input" type="radio" name="keep" id="keep-first" value="first" disabled checked>
<label class="form-check-label" for="keep-first">
Keep first instance
</label>
</div>
<div id="form-check-duplicates" class="form-check">
<input class="form-check-input" type="radio" name="keep" id="keep-last" value="last" disabled>
<label class="form-check-label" for="keep-last">
Keep last instance
</label>
</div>
</div>
<div class="list-group list-group-flush">
<a href="#lines" id="remove-dupes" class="list-group-item list-group-item-action list-group-item-danger text-center disabled">Remove duplicates</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col mt-4">
<button type="button" id="clear" class="btn btn-danger btn-block" disabled>Clear</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col m-5">
<p class="lead text-center">The purpose of this page is to quickly review or remove duplicate lines from a body of text. The content is handled entirely in the browser and so is not stored or logged anywhere.<p>
</div>
</div>
</div>
<a href="https://github.com/carlnewton/line-duplicates"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>