-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
124 lines (115 loc) · 5.04 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Inter IIT | IIT Mandi</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body {
background-color: #ebf5fb;
background-image: url("https://user-images.githubusercontent.com/56690827/112338359-bf9b7300-8ce4-11eb-98de-bf197cee114b.jpg");
background-size: cover;
}
h1 {
color: #34568B;
font-family: 'Chango', cursive;
}
.js-plotly-plot .plotly .modebar {
left: 50%;
}
a.modebar-btn {
font-size: 30px !important;
}
#graph {
height: 70vh;
}
.center {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
border: 3px solid green;
}
</style>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<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://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<!-- fonts -->
<link href="https://fonts.googleapis.com/css2?family=Chango&display=swap" rel="stylesheet">
<!-- jsPDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script src="https://unpkg.com/jspdf-autotable@2.3.2"></script>
<!-- FileSaver -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<!-- json2csv -->
<script src="https://cdn.jsdelivr.net/npm/json2csv"></script>
</head>
<body>
<div class="container pt-5 pl-5 pr-5">
<div class="col-12">
<div class="col-sm text-center text-white">
<h1>Cosmic Sources Visualisation</h1>
</div>
<div class="col-sm">
</div>
</div>
</div>
<div id="graph"></div>
<div id="showdata"></div>
<div class="container" id="info_table" hidden>
<table class="table table-bordered table-striped w-auto">
<thead class="thead-dark">
<tr>
<th>Name</th>
<th id="Astrosat_Instrument" hidden>Astrosat Instrument</th>
<th id="ProposalId" hidden>Proposal ID</th>
<th id="Observation_Id" hidden>Observation ID</th>
<th>GLON</th>
<th>GLAT </th>
<th>Astrosat Observed</th>
<th>Download Data</th>
</tr>
</thead>
<tbody class="bg-white">
<tr>
<td id="info_Name"></td>
<td id="info_Astrosat_Instrument" hidden></td>
<td id="info_ProposalId" hidden></td>
<td id="info_Observation_Id" hidden></td>
<td id="info_GLON"></td>
<td id="info_GLAT"></td>
<td id="info_Astrosat_obs"></td>
<td>
<button class="btn btn-success me-2 p-1" id="download_json">JSON Format</button>
<button class="btn btn-success me-2 p-1" id="download_pdf">PDF Format</button>
<button class="btn btn-success me-2 p-1 mt-1" id="download_csv">CSV Format</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="container" id="pub_table" hidden>
<div id="publications" class="text-left">
<h3 class="text-center text-white" >Publications of Observed Astrosat Data</h3>
<table class="table table-bordered table-striped">
<thead class="thead-dark">
<tr>
<th>Source Name</th>
<th>Title</th>
<th>Authors</th>
<th>Url</th>
</tr>
</thead>
<tbody class="bg-white" id="pub_body"></tbody>
</table>
<div class="justify-content-center text-center" id="publication_pdf"></div>
</div>
</div>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="script.js"></script>
</body>
</html>