-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (39 loc) · 1.27 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ochre</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
let shell = require('electron').remote.shell
document.addEventListener('click', function (event) {
if (event.target.tagName === 'A' && event.target.href.startsWith('http')) {
event.preventDefault()
shell.openExternal(event.target.href)
}
})
</script>
</head>
<body>
<div id="container" class="container-fluid">
<br/>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
<h3>Folder containing PDFs</h3>
<input name="pdfdir" id="pdfdir" type="text" size="40" readonly="readonly"/>
</div>
</div>
<br/><br/>
<div class="button" id="button">
<button class="btn btn-primary" id="ocr" style="display:inline;">OCR</button>
</div>
<div class="waiting" id="waiting" style="display:none;">
<p>Reticulating splines...</p>
</div>
<br/><br/>
<p><a href="https://axfelix.github.io">axfelix.github.io</a>
</div>
<script src="ochre.js" charset="utf-8"></script>
</body>
</html>