Reformat JavaScript

This commit is contained in:
Florine W. Dekker 2019-11-25 00:01:11 +01:00
parent b2154c3bd4
commit e44bfa1c36
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 174 additions and 176 deletions

View File

@ -19,7 +19,7 @@
<link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-common.css" crossorigin="anonymous" />
</head>
<body>
<main class="wrapper">
<main class="wrapper">
<!-- Header -->
<header class="header">
<section class="container">
@ -53,21 +53,19 @@
Source code available on <a href="https://git.fwdekker.com/FWDekker/converter/">git</a>.
</section>
</footer>
</main>
</main>
<!-- Scripts -->
<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"
<!-- Scripts -->
<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"
integrity="sha256-es+ex6Oj344uak+VnCPyaHY2nzQkqhr7ByWVQgdjATA=" crossorigin="anonymous"></script>
<script>
const stringReplaceAt = function (str, index, replacement) {
return str.substr(0, index) + replacement + str.substr(index + replacement.length);
};
<script>
const stringReplaceAt =
(str, index, replacement) => str.substr(0, index) + replacement + str.substr(index + replacement.length);
const stringReplaceAll = function (str, target, replacement) {
return str.split(target).join(replacement);
};
const stringReplaceAll =
(str, target, replacement) => str.split(target).join(replacement);
class NumeralSystem {
@ -212,6 +210,6 @@
updateAllInputs(bigInt(42));
inputs[0].textarea.focus();
});
</script>
</script>
</body>
</html>