-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsp
77 lines (69 loc) · 1.94 KB
/
index.jsp
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
<%@page language="java" contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> COVID-02 Project</title>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://unpkg.com/papaparse@5.2.0/papaparse.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="./src/script.js"></script>
<script src="./src/chart.js"></script>
<script src="./src/macros.js"></script>
<link rel="stylesheet" type="text/css" href="./src/style.css">
<link rel="icon" type="image/png" href="./src/favicon.png"/>
</head>
<body>
<div id="topSection">
<div class="header" id="hleft">
Karteris Antonios<br>
03112076
</div>
<div class="header" id="hcenter">
COVID-02 Project<br>
Internet & Applications
</div>
<div class="header" id="hright">
<a href="https://github.com/UphillD/InA-COVID-02">GitHub</a><br>
<a href="https://www.semanticscholar.org/cord19">CORD-19 Dataset</a>
</div>
</div>
<div id="middleSection">
<div id="formContainer">
<form name="searchForm" method="post" action="searchServlet">
<input type="text" name="query" id="input" placeholder="Search..."/>
<input type="submit" id="submit" value=""/>
</form>
</div>
</div>
<div id="tableSection">
<table id="finalTable">
<thead>
<tr>
<th>UID</th>
<th>Title</th>
<th>Publish Date</th>
<th>Authors</th>
<th>Drug Mentioned in</th>
<th>Mentions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="bottomSection">
<div id="results">
</div>
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
</div>
<% String query = (String) request.getAttribute("searchQuery"); %>
<script>
var query = "<%=query%>";
if (query != "null") {
parseCSV('./data/metadata.csv', query);
}
</script>
</body>