Skip to content

Instantly share code, notes, and snippets.

@bglgwyng
Created June 5, 2022 16:38
Show Gist options
  • Save bglgwyng/63e7a3d2ac1fe2035c3e60a29f911e20 to your computer and use it in GitHub Desktop.
Save bglgwyng/63e7a3d2ac1fe2035c3e60a29f911e20 to your computer and use it in GitHub Desktop.
<body>
<input type="file" accept="image/*" capture="user" />
<script>
const input = document.querySelector("input")
console.info(input)
input.addEventListener("input", async (e) => {
fetch("https://api.exchangeratesapi.io/v1/")
await new Promise((resolve) => setTimeout(resolve, 1000));
fetch("https://api.exchangeratesapi.io/v1/")
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment