-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
217 lines (200 loc) · 8.29 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>
PDF2Map
</title>
<!-- START - META DATA -->
<meta name=viewport content="width=device-width,initial-scale=1">
<meta name="description" content="A free online converter from .pdf to interactive maps designed to make you better understand the concept of what's in the pdf you uploaded and make you discover links you'd never thought before">
<meta name="keywords" content="PDF, converter, map, graphs, pdf converter online, pdf tool, pdf to map, maps">
<meta name="author" content="Davide Carlomagno">
<!-- END - META DATA -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src=pdf.min.js></script>
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
<script src="https://kit.fontawesome.com/af31aeeb71.js" crossorigin="anonymous"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@500&display=swap');
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T41EPWCLXT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-T41EPWCLXT');
</script>
</head>
<body>
<script src=FileSaver.min.js></script>
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v4.js"></script>
<!-- Load d3-cloud -->
<script src="https://cdn.jsdelivr.net/gh/holtzy/D3-graph-gallery@master/LIB/d3.layout.cloud.js"></script>
<nav class="navbar navbar-light bg-light" > <!--style="background-color: white;"> -->
<a class="navbar-brand" href="#">
<img src="assets/logo.png" width="100" height="50" class="d-inline-block align-top" alt="">
<strong>PDF</strong>2<strong>Map</strong>
</a>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://www.paypal.com/paypalme/dovdaysfund?locale.x=en_IT">Support Me
<img src="assets/coffee-cup.png" width="20" height="20" class="d-inline-block" alt="">
</a>
</li>
</ul>
</nav>
<!-- Modal -->
<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="errorModalTitle">Error</h5>
</div>
<div class="modal-body">
Sorry, but an error has occurred. It might happen for one of the following reasons:
<br>
- scanned PDFs cannot be uploaded yet
<br>
- the file might be corrupted
<br>
- or the file might be too big
<br>
<br>
Please upload another PDF.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="btn-default" onclick="location.reload()" data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
<div class=container>
<!-- NO TOUCH-SCREENS -->
<!-- DRAG AND DROP -->
<div class="drag-area dsp-none">
<div class="instructions">
<div class="first">
<p>
<img src="./assets/num-1.png" width="18px" alt="">
Upload your PDF from here. Either drag and drop or click the button.
</p>
</div>
<div class="second">
<p>
<img src="./assets/num-2.png" width="18px" alt="">
Deselect the words you don't want to include. Generate the maps.
</p>
</div>
<div class="third">
<p>
<img src="./assets/num-3.png" width="18px" alt="">
Interact with the graphs. Download your maps. Stay smart!
</p>
</div>
</div>
<div class="drag-icon">
<i class="fas fa-cloud-upload-alt"></i>
</div>
<div class="drag-text">
<h2>Drag & drop your PDF here</h2>
<span>OR</span>
</div>
<!-- UPLOAD BUTTON -->
<span
class="btn btn-primary btn-file" id="btn-default"
>
<label class="flex-center-by-col">
<span class="spinner" id="spinner"></span>
Upload PDF
<input
type=file
id=file
name=file
accept=application/pdf
/>
</span>
</label>
</div>
<!-- TOUCH-SCREENS -->
<div class="container-touch-screen">
<span
class="btn btn-primary btn-file btn-touch-screen" id="btn-default"
>
Upload PDF
<span class="spinner" id="spinner"></span>
<input
type=file
id=file
name=file
accept=application/pdf
/>
</span>
<!-- DROP-DOWN MENU INSTRUCTIONS -->
<div class="btn-group">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
How to use <i class="far fa-question-circle"></i>
</button>
<div class="dropdown-menu">
<ul>
<li class="dropdown-item disabled">1. Upload your PDF</li>
<li class="dropdown-item disabled">2. Deselect unwanted words</li>
<li class="dropdown-item disabled">3. Generate the maps</li>
<li class="dropdown-item disabled">4. Interact with the graphs</li>
<li class="dropdown-item disabled">5. Download your maps</li>
</ul>
</div>
</div>
</div>
<!-- END EDITS -->
<div class="cloud frame" id="cloud">
</div>
<hr class="hr dsp-none">
<div class="force frame" id="force"></div>
<div class=row>
<div
id=output
class="col-xs-12 well"
style=font-family:monospace;display:none
>
</div>
<div
id=error
class="col-xs-12"
style=font-style:italic;display:none;text-align:center;margin-top:40px
>
</div>
</div>
</div>
<footer>
<div class="ft-container">
<h3 style=font-size:inherit;margin:inherit>
<a href="https://github.com/pdf2map/pdf2map.github.io" style=color:rgba(0,0,0,.84)>
<strong>pdf</strong>2<strong>map</strong>.github.io
</a>
</h3>
<div>
A free service by <a href="https://t.me/Dovday" style="color: hsl(0, 75%, 49%); text-decoration: underline;">Davide Carlomagno</a>
</div>
<!-- to figure out how to insert -->
<!-- <div> Icons made by <a href="https://www.flaticon.com/authors/hight-quality-icons" title="Hight Quality Icons"> Hight Quality Icons </a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com'</a></div> -->
</div>
</footer>
<!-- JS scripts -->
<script src="app.js"></script>
<script src="pdfReader.js"></script>
<script src="checkboxList.js"></script>
<script src="drawGraphs.js"></script>
<script src="wordCloud.js"></script>
<script src="forceDirect.js"></script>
<script src="stopWords.js"></script>
<script src="downloadSVG.js"></script>
<!-- bootstrap's -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>