-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjapsort.html
More file actions
68 lines (64 loc) · 2.06 KB
/
japsort.html
File metadata and controls
68 lines (64 loc) · 2.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Japanese Sorting</title>
</head>
<body>
<div id='text'>
<h1>Japanese Characters Sorter</h1>
<p>This script was developed in response to an article that asserted that it was "impossible" or "overly-difficult" to alphabetize Japanese Characters. I took it as a challenge to do just that with a relatively small amount of code. While the code is unable to sort Kanji Characters, it works quite well for the Kana Characters seen here. First, view the list of names to see that they are out of any sort of order. Second, click the "Sort" button to observe that the list has now sorted the names in a way that follows traditional Japanese Kana Order.</p>
</div>
<div id='container'>
<button onClick="orderFunc()">Sort</button>
<select id = 'dropdown'>
<option>List...</option>
</select>
</div>
<!-- Style -->
<style>
body {
background-image: url('images/japan.jpg');
background-repeat: no-repeat;
background-size: cover;
}
#text {
background-color: rgba(0, 0, 0, 0.7)
}
h1 {
font-size: 30px;
color: rgb(255,255,255);
}
p {
font-size: 25px;
color: rgb(255,255,255);
}
#container {
position:fixed;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -100px;
}
button {
display: block;
background-color: rgba(0, 0, 0, 0.9);
color: white;
border: none;
font-size: 24px;
margin-bottom: 10px;
padding: 10px 30px;
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}
button:hover {
padding: 8px 28px;
background-color: darkred;
}
select {
margin-right: 2px;
}
</style>
<!--js-->
<script src="javascript.js"></script>
</body>
</html>