ocr fix, redirect zu dash

This commit is contained in:
LukasNowy
2019-01-29 20:44:10 +01:00
parent 05568120bf
commit 5e970ade1a
3 changed files with 29 additions and 2 deletions

View File

@ -7,6 +7,7 @@ $(document).ready(function() {
$('.modal').modal({
dismissible: false
});
$('.materialboxed').materialbox();
$('.fixed-action-btn').floatingActionButton();
@ -23,6 +24,7 @@ $(document).ready(function() {
$("#modal1").modal("open");
$(".btn-analyze").click(function() {
analyzeUploaded();
});
@ -55,7 +57,7 @@ function movePurchases(text) {
},
success(result){
console.log(result);
alert("Done");
window.location.href = "/dash/" + idtoken
},
error(err){
console.error("Error: " + err);
@ -76,6 +78,9 @@ $(document).on("click", ".btndash", function() {
});
function analyzeUploaded() {
$("#modalEND").modal("open");
var img = document.getElementById("blah");
Tesseract.recognize(img).progress((progress) => {

View File

@ -71,4 +71,12 @@ html, body {
.btn-choose {
width: 100%;
}
.progress .indeterminate {
background-color: #f4511e;
}
.progress {
background-color: #f8cfc3;
}