2020-04-06 11:34:03 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Primes</title>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="syncPrime">result of primeSync() will show up here</div>
|
|
|
|
<div id="asyncPrime">result of prime() will show up here</div>
|
|
|
|
|
2020-04-07 22:21:02 +00:00
|
|
|
<script src="../../lib/index.browser.bundle.iife.js"></script>
|
2020-04-06 11:34:03 +00:00
|
|
|
<script>
|
|
|
|
(async () => {
|
|
|
|
document.getElementById(
|
|
|
|
"syncPrime"
|
|
|
|
).innerHTML = bigintCryptoUtils.primeSync(123);
|
|
|
|
document.getElementById(
|
|
|
|
"asyncPrime"
|
|
|
|
).innerHTML = await bigintCryptoUtils.prime(123);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|