Skip to content

Commit

Permalink
Adding info to the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
davdiv committed Jan 27, 2024
1 parent b897bc8 commit 3c66e7a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
</script>

<div class="container">
<h2 class="mt-3">Accu-Chek</h2>
{#if navigator.usb}
<button
type="button"
class="btn btn-primary mt-3"
on:click={callReadFromDevice}
>Extraire depuis le périphérique Accu-Chek</button
>
{:else}
Votre navigateur ne permet pas de se connecter à un périphérique Accu-Chek
par connexion USB. Vous pourriez essayer d'utiliser Chrome ou Chromium.
{/if}
<div class="mt-3">
<label for="formFile" class="form-label">Ouvrir un fichier JSON</label>
<input
Expand All @@ -29,16 +41,6 @@
on:change={onFileChange}
/>
</div>

{#if navigator.usb}
<button
type="button"
class="btn btn-primary mt-3"
on:click={callReadFromDevice}
>Extraire depuis le périphérique Accu-Chek</button
>
{/if}

{#if $data$}
<a
class="btn btn-outline-secondary mt-3"
Expand Down

0 comments on commit 3c66e7a

Please sign in to comment.