Skip to content

Commit

Permalink
Parse Challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxRefire committed Aug 5, 2024
1 parent 2807074 commit f263aab
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
<head>
<script type="module">
import getChallenge from './getChallenge.js'
import parseChallenge from './parseChallenge.js'
window.onload = async () => {
let b64encode = b => btoa(String.fromCharCode(...new Uint8Array(b)))
let challenge = await getChallenge()
console.log(b64encode(challenge))
let parsedChallenge = await parseChallenge(challenge)

console.log(challenge)
document.getElementById("result").innerText = parsedChallenge
}
</script>
</head>
<body>
<div id="result"></div>
</body>
</html>
Loading

0 comments on commit f263aab

Please sign in to comment.