Skip to content

Commit

Permalink
Modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagss24 committed Aug 26, 2023
1 parent c848177 commit c491cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ <h2>GALACTIC X NEON</h2>
<div id="result">
<p>Scan to view <span id="result"></span></p>
</div>
<div id="showdata">
<p>Data: </p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/quagga/0.12.1/quagga.min.js"></script>
<script src="script.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Quagga.onDetected(function (data) {
`;
}


document.getElementById('showdata').innerHTML = `${ScannedId}`
setTimeout(() => {
document.getElementById('result').innerHTML = 'Scan again to view'; // Clear the result after 3 seconds
scanning = true; // Resume scanning
Expand Down

0 comments on commit c491cb2

Please sign in to comment.