Reformat JavaScript
This commit is contained in:
parent
b2154c3bd4
commit
e44bfa1c36
24
index.html
24
index.html
|
@ -19,7 +19,7 @@
|
||||||
<link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-common.css" crossorigin="anonymous" />
|
<link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-common.css" crossorigin="anonymous" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main class="wrapper">
|
<main class="wrapper">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<section class="container">
|
<section class="container">
|
||||||
|
@ -53,21 +53,19 @@
|
||||||
Source code available on <a href="https://git.fwdekker.com/FWDekker/converter/">git</a>.
|
Source code available on <a href="https://git.fwdekker.com/FWDekker/converter/">git</a>.
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="https://static.fwdekker.com/js/common.js" crossorigin="anonymous"></script>
|
<script src="https://static.fwdekker.com/js/common.js" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/big-integer/1.6.44/BigInteger.min.js"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/big-integer/1.6.44/BigInteger.min.js"
|
||||||
integrity="sha256-es+ex6Oj344uak+VnCPyaHY2nzQkqhr7ByWVQgdjATA=" crossorigin="anonymous"></script>
|
integrity="sha256-es+ex6Oj344uak+VnCPyaHY2nzQkqhr7ByWVQgdjATA=" crossorigin="anonymous"></script>
|
||||||
<script>
|
<script>
|
||||||
const stringReplaceAt = function (str, index, replacement) {
|
const stringReplaceAt =
|
||||||
return str.substr(0, index) + replacement + str.substr(index + replacement.length);
|
(str, index, replacement) => str.substr(0, index) + replacement + str.substr(index + replacement.length);
|
||||||
};
|
|
||||||
|
|
||||||
const stringReplaceAll = function (str, target, replacement) {
|
const stringReplaceAll =
|
||||||
return str.split(target).join(replacement);
|
(str, target, replacement) => str.split(target).join(replacement);
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class NumeralSystem {
|
class NumeralSystem {
|
||||||
|
@ -212,6 +210,6 @@
|
||||||
updateAllInputs(bigInt(42));
|
updateAllInputs(bigInt(42));
|
||||||
inputs[0].textarea.focus();
|
inputs[0].textarea.focus();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue