-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (94 loc) · 3.04 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
101
<!DOCTYPE html>
<html>
<head>
<script src='index.js'></script>
<title>Generate stringnames</title>
<style>
#myFile {
opacity: 0;
width: 0.1px;
height: 0.1px;
position: absolute;
}
.file-input {
display: block;
position: relative;
width: 100%;
height: 50px;
border-radius: 25px;
background: linear-gradient(69deg,#D69420, #42069D);
box-shadow: 0 4px 7px rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
color: #ffe3e3;
font-weight: bold;
cursor: pointer;
transition: transform .2s ease-out;
}
input[type='radio'] {
transform: scale(1.5);
}
input[type='checkbox'] {
transform: scale(1.5);
}
#CheckOptions {
max-width: fit-content;
/* border: 1px double black; */
/* display: block; */
}
p#demo {
font-size: 1.1em;
}
.form-control {
font-family: system-ui, sans-serif;
font-size: 1.5em;
display: grid;
grid-template-columns: 1em auto;
gap: 0.5em;
}
.checkbox-control > input {
font-family: system-ui, sans-serif;
font-size: 1.2em;
display: grid;
gap: 0.5em;
}
</style>
</head>
<body onload="myFunction()">
<h3>Generate stringnames from Telegram language files</h3>
<p>Currently accepted translation files are of type <code>.xml</code> and <code>.strings</code></p>
<div id="CheckOptions">
<fieldset>
<legend>Choose an option</legend>
<label class="form-control">
<input type="radio" value="default" name="stringvalue" checked aria-checked="true" onclick="document.querySelector('#onevalue').disabled=true">
(default) string-name as translation
</label><br>
<label class="form-control">
<input type="radio" value="randomvalue" name="stringvalue" onclick="document.querySelector('#onevalue').disabled=true">
Random value translation
</label><br>
<label class="form-control">
<input type="radio" value="onevalueradio" name="stringvalue" onclick="document.querySelector('#onevalue').disabled=false">
One value for all strings
</label>
<label class="checkbox-control">
<input type="text" id="onevalue" value="EEEEEE" placeholder="EEEEEE" disabled><br> <!-- show textbox with radio for input -->
</label>
</fieldset>
<label class="form-control">
<input type="checkbox" id="preservetokens">
Keep Tokens
</label><br>
<label class="file-input">
<input type="file" id="myFile" multiple accept=".xml, .strings" onchange="myFunction()">
Choose files to generate
</label>
</div>
<p id="demo"></p>
<a href='#' id='saveFiles'></a>
<footer>Last updated: 02 Feb 2024
</footer>
</body>
</html>