Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (120 loc) · 3.72 KB
/
Copy pathindex.html
File metadata and controls
138 lines (120 loc) · 3.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Char Converter</title>
<script src="charConverter.js" defer></script>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
max-width: 900px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
margin-bottom: 30px;
}
img.logo {
display: block;
margin: 0 auto 20px;
width: 120px; /* Increased size */
}
h2 {
margin-top: 0;
}
.content {
display: flex;
justify-content: space-between;
}
.left-section {
flex: 1;
margin-right: 20px;
}
.right-section {
flex: 1;
}
label,
select,
textarea,
button {
box-sizing: border-box;
width: 100%;
margin-bottom: 15px;
padding: 10px;
border-radius: 4px;
}
button {
background-color: #ADD8E6; /* Light Blue */
color: #fff;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #87CEEB; /* Slightly darker shade of Light Blue */
}
textarea#inputText {
margin-bottom: 20px; /* Added margin to the bottom */
}
input[type="file"] {
margin-bottom: 20px; /* Added margin to the bottom */
}
.button-row {
display: flex;
gap: 10px;
}
.button-row button {
width: auto;
flex: 1;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<img src="https://raw.githubusercontent.com/yukiyuqichen/CHAR/main/img/icon.png" alt="Char Converter Logo" class="logo">
<h2>Char Converter</h2>
</div>
<div class="content">
<div class="left-section">
<!-- Option and Mode Selection -->
<h3>Settings</h3>
<label for="optionSelect">Option:</label>
<select id="optionSelect">
<option value="v2s">v2s (Simplified)</option>
<option value="v2t">v2t (Traditional)</option>
</select>
<label for="modeSelect">Mode:</label>
<select id="modeSelect">
<option value="one2one">one2one</option>
<option value="one2many">one2many</option>
</select>
<!-- For convert_file -->
<h3>Convert File</h3>
<input type="file" id="fileInput">
<button onclick="convertFile()">Convert and Download</button>
</div>
<div class="right-section">
<!-- For convert_text -->
<h3>Convert Text</h3>
<textarea id="inputText" rows="10" cols="50"></textarea>
<div class="button-row">
<button onclick="convertText()">Convert</button>
<button onclick="copyOutput()">Copy Result</button>
</div>
<textarea id="outputText" rows="10" cols="50" readonly></textarea>
</div>
</div>
</div>
</body>
</html>