-
Notifications
You must be signed in to change notification settings - Fork 5
/
search.ejs
124 lines (102 loc) · 5.22 KB
/
search.ejs
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 lang="en">
<head>
<title>SnapperGPS - Download</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="View and download the track of your SnapperGPS receiver once processing is completed.">
</head>
<body>
<!-- Nav bar -->
<%- include ('partials/navBar', {pageName: 'download'}) %>
<!-- Main body -->
<main class="container">
<div class="row">
<div class="col">
<h1>View and download the track of your SnapperGPS receiver
once processing is completed</h1>
</div>
</div>
<div class="row bg-white">
<% if (displayError) { %>
<div id="error-display">
<div class="card text-white bg-danger mb-3" style="max-width: 100%;">
<div class="card-header"><b>Error</b></div>
<div class="card-body">
<p class="card-text" id="error-text">
We could not find any data with your
upload ID <i><%= uploadID %></i>. Please double check and try again.
</p>
</div>
</div>
</div>
<% } %>
</div>
<div class="row bg-light">
<div class="row">
<div class="col">
Enter your upload ID to view your track.
</div>
</div>
<div class="row row-ident">
<div class="col">
<div class="input-group">
<input id="id-input" style="width: 8em;">
<button id="search-button" class="btn btn-primary">Search</button>
</div>
</div>
</div>
</div>
<div id="upload-table-row" class="row bg-light" style="display:none;">
<div class="row">
<div class="col">
Your most recent uploads:
</div>
</div>
<div class="row">
<div class="col">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Upload ID</th>
<th scope="col">Nickname</th>
</tr>
</thead>
<tbody id="upload-table"></tbody>
</table>
</div>
</div>
<!-- Clear button -->
<div class="row">
<div class="col">
<button id="clear-button" class="btn btn-primary">Clear</button>
</div>
</div>
</div>
<div class="row bg-light">
<div class="row">
<div class="col">
To view some exemplary tracks, try
<a class="text-link" href="/view?uploadid=a59d40be7a">a59d40be7a</a>,
<a class="text-link" href="/view?uploadid=14505f3faa">14505f3faa</a>,
<a class="text-link" href="/view?uploadid=2127c52253">2127c52253</a>,
<a class="text-link" href="/view?uploadid=2f2723281e">2f2723281e</a>,
<a class="text-link" href="/view?uploadid=8eb55d66dc">8eb55d66dc</a>,
<a class="text-link" href="/view?uploadid=b8448ce081">b8448ce081</a>,
<a class="text-link" href="/view?uploadid=db1fa7ab21">db1fa7ab21</a>,
<a class="text-link" href="/view?uploadid=8821aa36c3">8821aa36c3</a>,
<a class="text-link" href="/view?uploadid=2669beb66f">2669beb66f</a>,
<a class="text-link" href="/view?uploadid=9aec7efae8">9aec7efae8</a>,
<a class="text-link" href="/view?uploadid=6d7f25f3b4">6d7f25f3b4</a>, or
<a class="text-link" href="/view?uploadid=1b5fc28c1b">1b5fc28c1b</a>.
</div>
</div>
</div>
</main>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script src="js/view/searchUI.js"></script>
</html>