Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -108,7 +108,7 @@ function analyzeWeightLoss(product) {
|
|||||||
|
|
||||||
Feature Ideen:
|
Feature Ideen:
|
||||||
|
|
||||||
- [ ] Allergen-Warnung
|
- [/] Allergen-Warnung
|
||||||
- [ ] PWA Support (Offline-Modus)
|
- [ ] PWA Support (Offline-Modus)
|
||||||
|
|
||||||
## Bekannte Probleme
|
## Bekannte Probleme
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ body {
|
|||||||
placeholder="Or enter barcode manually"
|
placeholder="Or enter barcode manually"
|
||||||
class="input"
|
class="input"
|
||||||
/>
|
/>
|
||||||
<button id="startButton" type="submit" class="btn btn-green">
|
<button id="start-scan-btn" type="submit" class="btn btn-green">
|
||||||
Search
|
Search
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -920,8 +920,8 @@ import { analyzeProduct } from "../utils/productAnalysis";
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('startButton').addEventListener('click', () => {
|
document.getElementById('start-scan-btn').addEventListener('click', () => {
|
||||||
codeReader.decodeFromVideoDevice(selectedDeviceId, 'video', (result, err) => {
|
codeReader.decodeFromVideoDevice(selectedDeviceId, 'scanner-video', (result, err) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
const code = result.getText();
|
const code = result.getText();
|
||||||
barcodeDisplay.textContent = code;
|
barcodeDisplay.textContent = code;
|
||||||
|
|||||||
Reference in New Issue
Block a user