-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (82 loc) · 4.64 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Digitize Heatmap</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link href="styles.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.min.js"></script>
</head>
<body>
<nav class="navbar bg-light custom-navbar" id="navigation">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="./assets/logo.png" alt="Logo" width="40" height="40" class="d-inline-block align-text-center">
Get Heatmap
</a>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-3 col-lg-2 d-md-block bg-light sidebar">
<div class="position-sticky">
<button class="btn btn-primary w-100 mb-3" id="uploadButton">Upload PDF</button>
<input type="file" id="fileInput" style="display: none;" accept=".pdf">
<div class="d-flex mb-2">
<input type="text" id="pageInput" class="form-control input-height me-2"
placeholder="Enter Page">
<button class="btn btn-secondary flex-grow-1" id="pageButton">Traverse</button>
</div>
<div class="d-flex mb-2">
<button class="btn btn-secondary flex-grow-1 me-2" id="prev">Prev</button>
<button class="btn btn-secondary flex-grow-1" id="next">Next</button>
</div>
<button class="btn btn-primary w-100 mb-3" id="cropButton">Crop</button>
<div class="d-flex mb-2">
<button class="btn btn-secondary flex-grow-1 me-2" id="zoomIn">Zoom In</button>
<button class="btn btn-secondary flex-grow-1" id="zoomOut">Zoom Out</button>
</div>
<div class="d-flex mb-2">
<input type="text" class="form-control input-height me-2" id="discreteInput"
placeholder="Number of Points">
<button class="btn btn-secondary flex-grow-1" id="discreteButton">Discrete Axis</button>
</div>
<div class="d-flex mb-2">
<button class="btn btn-secondary flex-grow-1" id="keyEndpointsButton">Continuous Endpoints</button>
</div>
<div class="d-flex mb-2">
<input type="text" class="form-control input-height me-2" id="toleranceInput"
placeholder="Tolerance Value">
<button class="btn btn-secondary flex-grow-1" id="toleranceButton">Set Tolerance</button>
</div>
<button class="btn btn-primary w-100 btn-loading-border" id="maskOrNot">Set Undefined to -1</button>
<button class="btn btn-primary w-100 btn-loading-border" id="scaleType">Linear Scale</button>
<button class="btn btn-primary w-100 btn-loading-border" id="getData">Get Data</button>
</div>
</nav>
<main class="col-md-6 col-lg-8 px-md-4">
<div class="canvas-stack-container">
<canvas id="cursor-highlight" width="1000" height="1000"></canvas>
<canvas id="highlight-points" width="1000" height="1000"></canvas>
<canvas id="content" width="1000" height="1000"></canvas>
</div>
</main>
<aside class="col-md-3 col-lg-2 d-flex justify-content-center align-items-start right-canvas-container">
<canvas id="near-cursor" width="200" height="200"></canvas>
</aside>
</div>
</div>
<script src="scripts/index.js"></script>
<script src="scripts/content.js"></script>
<script src="scripts/highlights.js"></script>
<script src="scripts/croplogic.js"></script>
<script src="scripts/discretecolormap.js"></script>
<script src="scripts/continuouscolormap.js"></script>
<script src="scripts/getdata.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"></script>
</body>
</html>