This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (48 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sort Alphabetical</title>
<link rel="icon" type="image/svg+xml" href="favicon.svg?" sizes="any">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- Define Functions -->
<script src="./sort.js"></script>
<header>
<h1>Alphabetical Sorter</h1>
<p>
Sorts a given text line by line by alphabet, using the MergeSort algorithm.<br>
An uppercase letter is weighted lighter than a lowercase letter, with the following letter being
weighted even lighter.
</p>
</header>
<form id="id_reset">
<div class="input_container">
<!-- Input Text to sort -->
<fieldset>
<legend>Input</legend>
<textarea id="id_in"
oninput="document.getElementById('id_out').value = sort(document.getElementById('id_in').value);"></textarea>
</fieldset>
<div class="buttons">
<input type="button" value="Reset" onclick="reset_form('id_reset');">
<input type="button" value="Sort"
onclick="document.getElementById('id_out').value = sort(document.getElementById('id_in').value);">
</div>
<!-- Sorted Output -->
<fieldset class="output_container">
<legend>Sorted</legend>
<textarea readonly id="id_out"></textarea>
</fieldset>
</div>
</form>
<footer>
<a href="https://github.com/mobergmann/alphabetical-sorter">
View on GitHub
<img src="./image/GitHub-Mark-120px-plus.png"
height="24px" width="24px">
</a>
</footer>
</html>