-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into final_fetcing_and_pdfs
- Loading branch information
Showing
11 changed files
with
11,341 additions
and
25 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11,256 changes: 11,256 additions & 0 deletions
11,256
coop_challenge/static/coop_challenge/js/html5-qrcode.js
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
coop_challenge/static/coop_challenge/js/html5-qrcode.min.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends 'coop_challenge/base.html' %} | ||
|
||
{% block body %} | ||
<script src="js/html5-qrcode.js"></script> | ||
<div class="d-flex justify-content-center"> | ||
<div style="width: 60%" id="reader"></div> | ||
</div> | ||
|
||
<div id="resultScan" class="d-flex justify-content-center"> | ||
|
||
</div> | ||
|
||
<script> | ||
function onScanSuccess(decodedText, decodedResult) { | ||
html5QrcodeScanner.clear(); | ||
var decodedText_int = parseInt(decodedText); | ||
$("#resultScan").html("<div class='row d-flex justify-content-center' style='width: 60%; margin-top: 100px;'><div class='col-12 d-flex justify-content-center' style=\"font-size:18px;\"><strong>Artikelnummer/Bar code gescannt:</strong><span style=\"color:#ffa500;\"> "+decodedText+"</span></div><br><br><br><br><div class='col-5 d-flex justify-content-center'><a href=\"printlabel/"+decodedText+"\"><button class='btn btn-primary btn-lg'>Label drucken</button></a></div><div class='col-5 d-flex justify-content-center'><a href=\"printpdf/"+decodedText+"\"><button class='btn btn-primary btn-lg'>Datenblatt drucken</button></a></div></div>".replace('decodedText_str', decodedText_int)); | ||
} | ||
|
||
var html5QrcodeScanner = new Html5QrcodeScanner( | ||
"reader", { fps: 10, qrbox: 250 }); | ||
html5QrcodeScanner.render(onScanSuccess); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.