-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (92 loc) · 5.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Arbitrary Precision Calculator</title>
<script async type="text/javascript" src="numbercruncher.js"></script>
<script async type="text/javascript" src="calc.js"></script>
<meta name="author" content="Oliver Lau">
<meta name="copyright" content="Oliver Lau">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="default.css" media="screen" />
<link rel="icon" sizes="48x48" href="icons/favicon-48.png">
<link rel="icon" sizes="96x96" href="icons/favicon-96.png">
<link rel="icon" sizes="144x144" href="icons/favicon-144.png">
<link rel="icon" sizes="192x192" href="icons/favicon-192.png">
<link rel="icon" sizes="256x256" href="icons/favicon-256.png">
<link rel="icon" sizes="384x384" href="icons/favicon-384.png">
<link rel="icon" sizes="512x512" href="icons/favicon-512.png">
<link rel="apple-touch-icon" sizes="57x57" href="icons/favicon-57.png">
<link rel="apple-touch-icon" sizes="60x60" href="icons/favicon-60.png">
<link rel="apple-touch-icon" sizes="72x72" href="icons/favicon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="icons/favicon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="icons/favicon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="icons/favicon-120.png">
<link rel="apple-touch-icon" sizes="152x152" href="icons/favicon-152.png">
<link rel="apple-touch-icon" sizes="167x167" href="icons/favicon-167.png">
<link rel="apple-touch-icon" sizes="180x180" href="icons/favicon-180.png">
</head>
<body>
<div id="overlay" class="hidden"></div>
<div id="app">
<header>
<span>Arbitrary Precision Calculator</span>
<span id="help-button" title="Help (F1)">
<svg width="24px" height="24px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<circle cx="8.484" cy="8.515" r="8.477" style="fill:rgb(237,237,237);" />
<g transform="matrix(1.32226,0,0,1.32226,-4.343,3.88685)">
<g transform="matrix(12.1005,0,0,12.1005,5.96651,7.87529)">
<path
d="M0.367,-0.185L0.242,-0.185C0.242,-0.202 0.242,-0.213 0.242,-0.217C0.242,-0.258 0.248,-0.291 0.262,-0.317C0.275,-0.343 0.302,-0.372 0.342,-0.405C0.382,-0.437 0.406,-0.459 0.414,-0.469C0.426,-0.485 0.432,-0.502 0.432,-0.521C0.432,-0.548 0.421,-0.571 0.4,-0.59C0.378,-0.609 0.35,-0.619 0.313,-0.619C0.279,-0.619 0.25,-0.609 0.226,-0.589C0.203,-0.569 0.187,-0.539 0.178,-0.498L0.052,-0.514C0.055,-0.572 0.08,-0.621 0.126,-0.662C0.172,-0.703 0.233,-0.723 0.308,-0.723C0.386,-0.723 0.449,-0.703 0.496,-0.661C0.542,-0.62 0.565,-0.572 0.565,-0.518C0.565,-0.487 0.557,-0.459 0.54,-0.432C0.523,-0.405 0.486,-0.368 0.43,-0.321C0.401,-0.297 0.383,-0.278 0.376,-0.263C0.369,-0.249 0.366,-0.222 0.367,-0.185ZM0.242,0L0.242,-0.137L0.379,-0.137L0.379,0L0.242,0Z"
style="fill:rgb(57,57,57);fill-rule:nonzero;" />
</g>
</g>
</svg>
</span>
</header>
<div id="input-pane" contenteditable="true" data-text="Enter your arithmetic expressions here, one per line">
</div>
<div id="base-selector">
<form id="base-form">
<strong>Output:</strong>
<input id="base-2" name="base" type="radio" value="2"></input>
<label for="base-2">binary</label>
<input id="base-8" name="base" type="radio" value="8"></input>
<label for="base-8">octal</label>
<input id="base-10" name="base" type="radio" value="10"></input>
<label for="base-10">decimal</label>
<input id="base-16" name="base" type="radio" value="16"></input>
<label for="base-16">hexadecimal</label>
</form>
</div>
<div id="output-pane" data-text="The results will be displayed here"></div>
<div class="msg-container" id="msg-container">
<span id="loader-icon" class="hidden">
<svg width="17" height="17" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="2" stroke-opacity="0" fill="none" stroke="#fff">
<animate attributeName="r" begin="1s" dur="2s" values="0;8" calcMode="linear" repeatCount="indefinite" />
<animate attributeName="stroke-opacity" begin="1s" dur="2s" values="1;0" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="stroke-width" begin="1s" dur="2s" values="2;1" calcMode="linear"
repeatCount="indefinite" />
</circle>
<circle cx="8" cy="8" r="2" fill="none" stroke="#fff">
<animate attributeName="r" begin="0s" dur="1s" values="6;1;2;4;6" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="stroke-width" begin="0s" dur="1s" values="1;0.5" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>
</span>
<span id="msg"></span>
</div>
<footer>
<span><a href="https://github.com/607011/bincalc" target="_blank">v1.0.5</a>
–
Copyright © 2019–2024 <a href="mailto:[email protected]">Oliver Lau</a>
</span>
</footer>
</div>
</body>
</html>