-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (109 loc) · 3.54 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
102
103
104
105
106
107
108
109
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="hardCompress.js"></script>
<script src="encodeDecode.js"></script>
<script src="main.js"></script>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body onload="setTimeout(init, 100)">
<div class="title">Unlimited Size Number's Base Converter</div>
<div>Change base of very big numbers (no size limit, work with more than 1 trillion digits if you want).</div>
<div>Compressing time is linearly proportional to the number of digits.</div>
<div class="warning">Warning: Risks of speed decrease if this page is not the main process.</div>
<table class="main">
<tbody>
<tr>
<td>
<span>Number to convert (From)</span>
<textarea id="AreaFrom" onchange="checkInputs()">1234567890</textarea>
</td>
<td>
<div>Converted number (To)</div>
<textarea id="AreaTo" readonly=true>499602D2</textarea>
</td>
</tr>
<tr class="alphabase">
<td>
<span class="textBase">Alphabet:</span>
<input id="from" value="0123456789" onchange="checkInputs()">
<span class="textBase">Base:</span>
<input id="fromS" disabled=true value="10">
<br/>
<button id="autoFrom" disabled=true onClick="autoAreaFrom()">Auto Fill</button>
<button id="shuffleFrom" onClick="setAlphabetFrom('shuffle')">Shuffle</button>
<button id="sortFrom" onClick="setAlphabetFrom('sort')">Sort</button>
<button id="asciiFrom" onClick="setAlphabetFrom('ascii')">ASCII</button>
</td>
<td>
<span class="textBase">Alphabet:</span>
<input id="to" value="0123456789ABCDEF" onchange="checkInputs()">
<span class="textBase">Base:</span>
<input id="toS" disabled=true value="16">
<br/>
<button id="copyFromInTo" onClick="copyAlphabetFrominTo()">Import Alphabet From</button>
<button id="shuffleTo" onClick="setAlphabetTo('shuffle')">Shuffle</button>
<button id="sortTo" onClick="setAlphabetTo('sort')">Sort</button>
<button id="asciiTo" onClick="setAlphabetTo('ascii')">ASCII</button>
</td>
</tr>
<tr>
<td class="status" colspan="2">
<button id="start" onclick="ClickStart()">Start/Stop Convert</button>
<br>
<input id="compress" readonly=true value="Initializing...">
</td>
</tr>
<tr>
<td colspan="2">
<button id="decode" onclick="ClickDecode()">^ Decode ^</button>
<button id="encode" onclick="ClickEncode()">v Encode v</button>
<br/>
<textarea id="AreaEncoded" onchange="AreaEncodedChanged()">012345678900123456789ABCDEF499602D2</textarea>
</td>
</tr>
</tbody></table>
<div class="copyright">
Converter fully developed by Nathaël Noguès, since October 2015.
<br/>
<a href="https://github.com/NatNgs/maps">https://github.com/NatNgs/bnbc</a>
</div>
<table class="versions">
<tr><td>Ver.</td>
<td>Date</td>
<td>Description</td>
</tr>
<tr><td>1.4</td>
<td>August 2018</td>
<td>
Added buttons to set source and destination alphabet to all printable ASCII characters<br/>
</td>
</tr>
<tr><td>1.3</td>
<td>July 2018</td>
<td>
Added button to add all characteds from alphabet source to alphabet destination<br/>
Added Sort Alphabet button
</td>
</tr>
<tr><td>1.2</td>
<td>February 2018</td>
<td>
Added Encoder and Decoder<br/>
Added Shuffling alphabets buttons
</td>
</tr>
<tr><td>1.1</td>
<td>January 2018</td>
<td>
Optimizations: almost 30x faster than 1.0<br/>
Added Fill Alphabet button
</td>
</tr>
<tr><td>1.0</td>
<td>October 2015</td>
<td>First release</td>
</tr>
</table>
</body>
</html>