Generic Commit; Most likely a fix or small feature

This commit is contained in:
Darius
2025-11-21 01:54:35 +01:00
parent 6faaf65793
commit 59c545bc51
2 changed files with 4 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ function analyzeWeightLoss(product) {
Feature Ideen:
- [ ] Allergen-Warnung
- [/] Allergen-Warnung
- [ ] PWA Support (Offline-Modus)
## Bekannte Probleme

View File

@@ -622,7 +622,7 @@ body {
placeholder="Or enter barcode manually"
class="input"
/>
<button id="startButton" type="submit" class="btn btn-green">
<button id="start-scan-btn" type="submit" class="btn btn-green">
Search
</button>
</form>
@@ -920,8 +920,8 @@ import { analyzeProduct } from "../utils/productAnalysis";
})
}
document.getElementById('startButton').addEventListener('click', () => {
codeReader.decodeFromVideoDevice(selectedDeviceId, 'video', (result, err) => {
document.getElementById('start-scan-btn').addEventListener('click', () => {
codeReader.decodeFromVideoDevice(selectedDeviceId, 'scanner-video', (result, err) => {
if (result) {
const code = result.getText();
barcodeDisplay.textContent = code;