-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·115 lines (110 loc) · 5.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Antigrapheus - Online OCR for Ancient Greek and Latin</title>
<meta name="description" content="Online OCR for Ancient Greek and Latin">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="hocr.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<style>
.progress {
position: relative;
}
.progress-bar-title {
position: absolute;
text-align: center;
text-transform: capitalize;
/* line-height: 4em; line-height should be equal to bar height */
color: #fff;
mix-blend-mode: color-dodge;
right: 0;
left: 0;
top: .5em;
overflow: hidden;
}
</style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<main role="main">
<div class="jumbotron">
<div class="container">
<h3>Antigrapheus: <small>Online OCR for Ancient Greek and Latin</small></h3>
<p>Convert images of print documents in Ancient Greek and Latin into text. Right in your browser. <a href="about.html">Learn more</a>.</p>
</div>
</div>
<div class="container">
<form>
<div class="form-group form-row align-items-center">
<label for="imageUpload" class="col-auto col-form-label-lg">Upload Image:</label>
<div class="col-auto">
<input type="file" accept="image/*" class="form-control-file" id="imageUpload">
</div>
</div>
<div class="form-group">
<label for="language1">Primary Document Language:</label>
<select class="form-control" id="language1">
<option value="grc">Ancient Greek</option>
<option value="lat">Latin</option>
<option value="eng">English</option>
</select>
</div>
<button type="submit" class="btn-lg btn-secondary btn-block" id="process" disabled>Process</button>
</form>
<br/>
<div class="progress" style="height: 4em;">
<div id="progress" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="1"></div>
<div id="progresstext" class="progress-bar-title h5"></div>
</div>
<br/>
<button type="button" class="btn-lg btn-outline-secondary btn-block disabled" id="copy" disabled data-trigger="manual" data-placement="bottom" data-toggle="tooltip" title="Copied!">Copy to clipboard</button>
</div>
<br/>
<div class="container invisible" id="results" role="tablist">
<div class="card">
<div class="card-header" role="tab" id="headingOne">
<h5 class="mb-0">
<a data-toggle="collapse" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Rich Text
</a>
</h5>
</div>
<div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#results">
<div class="card-body" id="richtext">
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingTwo">
<h5 class="mb-0">
<a data-toggle="collapse" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Plain Text
</a>
</h5>
</div>
<div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-parent="#results">
<div class="card-body" id="plaintext">
</div>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js"></script>
<script src="https://cdn.rawgit.com/zenorocha/clipboard.js/v1.7.1/dist/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="src/js/antigrapheus.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID.
<script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
-->
</body>
</html>