Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -108,7 +108,7 @@ function analyzeWeightLoss(product) {
|
||||
|
||||
Feature Ideen:
|
||||
|
||||
- [ ] Allergen-Warnung
|
||||
- [/] Allergen-Warnung
|
||||
- [ ] PWA Support (Offline-Modus)
|
||||
|
||||
## Bekannte Probleme
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user