ocr fix, redirect zu dash
This commit is contained in:
@ -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) => {
|
||||
|
@ -71,4 +71,12 @@ html, body {
|
||||
|
||||
.btn-choose {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.progress .indeterminate {
|
||||
background-color: #f4511e;
|
||||
}
|
||||
|
||||
.progress {
|
||||
background-color: #f8cfc3;
|
||||
}
|
Reference in New Issue
Block a user