aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+page.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-05-02 14:09:51 -0700
committerAdam Soltys <[email protected]>2023-05-02 14:09:51 -0700
commit7f3dc05c74586f4777c4a51ebf2c831da91c6c0c (patch)
tree687beb156c8654b1b4fc3a63955ece6c65a1844e /src/routes/+page.svelte
parent89b13556338c9a31e4d911decd4c67ce0fe6790b (diff)
downloadcoinos-ui-7f3dc05c74586f4777c4a51ebf2c831da91c6c0c.tar.gz
coinos-ui-7f3dc05c74586f4777c4a51ebf2c831da91c6c0c.zip
nfc wip
Diffstat (limited to 'src/routes/+page.svelte')
-rw-r--r--src/routes/+page.svelte22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 510607eb..3331b69b 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -33,27 +33,6 @@
const faqIDs = ['cost', 'compatibility', 'safety'];
- let scan = async () => {
- log('User clicked scan button');
-
- try {
- const ndef = new NDEFReader();
- await ndef.scan();
- log('> Scan started');
-
- ndef.addEventListener('readingerror', () => {
- log('Argh! Cannot read data from the NFC tag. Try another one?');
- });
-
- ndef.addEventListener('reading', ({ message, serialNumber }) => {
- log(`> Serial Number: ${serialNumber}`);
- log(`> Records: (${message.records.length})`);
- });
- } catch (error) {
- log('Argh! ' + error);
- }
- };
-
onMount(async () => {
close();
@@ -72,7 +51,6 @@
<LandingHeader {howItWorks} {faq} {about} {user} />
<main class="space-y-40 py-20 md:py-32 lg:py-36 xl:py-40 px-5 md:px-0">
-<button on:click={scan} class="bg-black text-white mt-40 mx-auto p-8">Scan</button>
<LandingHero {user} />
<LandingInfoCard
image="lightning-qr"