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" /> <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>