-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·376 lines (330 loc) · 16 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Grassroots</title>
<!-- Core theme CSS freelancer (includes Bootstrap)-->
<link href="/static/fieldtrial/css/styles.css" rel="stylesheet">
<!-- font awesome -->
<link href="/static/fieldtrial/SCRIPTS/fontawesome-free-5.15.4-web/css/all.css" rel="stylesheet" type="text/css"/>
<!-- jQuery -->
<script type="text/javascript" src="/static/fieldtrial/SCRIPTS/jquery/jquery-3.7.1.min.js"></script>
<script type="text/javascript" src="/static/fieldtrial/SCRIPTS/jquery/jquery-ui.min.js"></script>
<!-- jQuery UI CSS -->
<link rel="stylesheet" href="/static/fieldtrial/SCRIPTS/jquery/jquery-ui.min.css" type="text/css"/>
<!-- **BOOTSTRAP 5.3.2** -->
<script src="/static/fieldtrial/SCRIPTS/bootstrap5.3.2/bootstrap.bundle.min.js"></script>
<!-- Core theme JS freelancer -->
<script src="/static/fieldtrial/js/scripts.js"></script>
<!-- grassroots grassroots.css (modified) or site.css (original) -->
<link rel="stylesheet" href="/static/fieldtrial/site.css" type="text/css"/>
<!--<link href="https://grassroots.tools/css/site.css" rel="stylesheet"> -->
<link rel="stylesheet" href="/static/fieldtrial/overrides/style.css" type="text/css"/>
<style>
/* Tabs styling */
.tabs {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center; /* Center tabs if they don't fill the entire width */
flex-wrap: wrap;
border-bottom: 2px solid #2C3E50; /* Visual separation */
}
.tabs li {
display: inline-block;
margin-right: 10px;
padding: 10px 15px;
background-color: #2C3E50;
color: #fff;
cursor: pointer;
border-radius: 5px 5px 0 0; /* Rounded corners on the top */
transition: background-color 0.3s ease; /* Interaction effect */
}
.tabs li.active, .tabs li:hover {
background-color: #1D2E40; /* Darker on hover/active */
}
.tabs li a {
color: inherit; /* Ensures anchor tags inherit the li color */
text-decoration: none; /* No underline */
}
/* Tab content styling */
.tab-content div {
display: none; /* Initially hide all content */
padding: 20px;
border: 1px solid #ddd;
background-color: #f9f9f9; /* Light background for readability */
margin-top: -1px; /* Align with tabs */
text-align: left;
}
.tab-content div p {
color: #2C3E50; /* Text color */
text-align: left;
}
.tab-content div.active {
display: block; /* Show active tab content */
}
/* Adjustments for smaller screens */
@media (max-width: 600px) {
.tabs {
flex-direction: column; /* Stack tabs vertically on small screens */
}
}
/* Section and explanatory text styling */
#header-section .explanatory-text h2, #header-section .explanatory-text p {
color: #2C3E50; /* Unified color for header section text */
margin-bottom: 20px; /* Space below the text */
}
.close-button {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close-button:hover,
.close-button:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
#header-section .explanatory-text h2 {
font-size: 28px;
color: #2C3E50;
margin-bottom: 20px;
}
#header-section .explanatory-text p {
font-size: 20px;
color: #2C3E50;
margin-bottom: 30px;
}
.darker {
font-size: 18px; /* size of hyperlink text */
}
#services, #results {
padding-top: 0;
margin-top: 1;
}
#search-results {
width: 100%; /* Adjust this value as needed */
max-width: 1600px; /* Optional: sets a maximum width */
margin: 0 auto; /* Centers the box */
}
#resultsTabs, #tabContent {
width: 100%; /* Ensures they take the full width of #search-results */
}
#loadingSpinner {
display: none; /* Initially hidden */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
position: fixed; /* Or absolute, depending on the use case */
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.5); /* Optional: slight white overlay */
z-index: 1000; /* Ensure it's above other content */
}
.spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
width: 50px;
height: 50px;
border-radius: 50%;
border-left-color: #09f;
animation: spin 1s ease infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.publication-item {
padding-bottom: 10px; /* Add some space at the bottom */
margin-bottom: 10px; /* Add additional space below the border */
border-bottom: 1px solid #ccc; /* Thin, faint grey line */
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand" href="/index.html" style="text-transform: none;">Grassroots Infrastructure</a>
<button class="navbar-toggler text-uppercase font-weight-bold bg-primary text-white rounded" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto">
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="services.html">Services</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="https://grassroots.tools/documentation/">Docs</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="https://opendata.earlham.ac.uk/">Data</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="about.html">About</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="dsw/index.html">DSW</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded" target="_blank" href="contact.html">Contact</a>
</li>
</ul>
<img class="navbar-nav navbar-right" style="height:50px;margin-left:50px;"
src="img/logo-white.png"/>
</div>
</div>
</nav>
<!-- Search Box Section -->
<header id="header-section" class="masthead"
style="background-image: url('img/nature-2571086_1920_40_opac.png');background-position: center; text-align: justify ! important; padding-top: 0;">
<div class="container">
<section id="search" style="padding-top: 140px; padding-bottom: 5px;">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<div class="explanatory-text" style="margin-bottom: 20px;">
<p style="color: #2C3E50; font-weight: bold;">Grassroots is a data sharing platform for the wheat community. Use the search box below to find resources, or scroll down to read more about the project.</p>
<!-- Search Box -->
<div class="search-box" style="border: 2px solid #2C3E50; padding: 20px; border-radius: 5px; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">
<!-- Search box title and subtitle -->
<div class="search-box-title" style="text-align: left; margin-bottom: 15px;">
<h4 style="margin: 0; color: #2C3E50;">Grassroots Search</h4>
<p style="margin: 0; color: #2C3E50; font-size: 14px;">Explore our system</p>
</div>
<!-- Search fields -->
<div class="row">
<div class="col-sm-8">
<input type="text" id="searchInput" class="form-control" placeholder="Enter search keyword...">
</div>
<div class="col-sm-4">
<select id="categorySelect" class="form-control">
<option value="All">All</option>
<option value="Dataset">Dataset</option>
<option value="Service">Service</option>
<option value="Field Trial">Field Trial</option>
<option value="Study">Study</option>
<option value="Location">Location</option>
<option value="MARTi Sample">MARTi Sample</option>
<option value="Programme">Programme</option>
<option value="Publication">Publication</option>
</select>
</div>
</div>
<button onclick="sendSearchRequest()" class="btn btn-primary btn-xl js-scroll-trigger" style="margin-top: 10px; background-color: #2C3E50; border: none;">Search</button>
</div>
</div>
</div>
</div>
</section>
</div>
</header>
<script>
function sendSearchRequest() {
var keyword = document.getElementById('searchInput').value.trim(); // Trim to remove any leading/trailing white spaces
var category = document.getElementById('categorySelect').value;
if (keyword === "") {
// Display an alert or message on the page that a search term is required.
alert("Please enter a search term.");
} else {
// Construct the URL for results.html with query parameters for keyword and category
var resultsUrl = `search_results.html?keyword=${encodeURIComponent(keyword)}&category=${encodeURIComponent(category)}`;
// Redirect the browser to the results page
window.location.href = resultsUrl;
}
}
</script>
<!--footer-->
<footer class="text-center">
<div class="footer-above">
<div class="container">
<div class="row">
<div class="footer-col col-md-12" style="text-align: left !important;">
<h5 style="text-align: center;">Funding</h5>
<p style="text-align: justify; font-size: 1.12em;">The author(s) acknowledge the support of the Biotechnology and Biological Sciences Research Council (BBSRC),
part of UK Research and Innovation; this research was funded by the BBSRC
Designing Future Wheat grant BB/P016855/1 and its constituent work packages(BBS/E/T/000PR9783
(DFW WP4 Data Access and Analysis) BBS/E/T/000PR9784 (DFW WP2 Added value and resilience) BBS/E/T/000PR9785 (DFW WP1 Increased efficiency and sustainability),
Cross Institute Strategic Programme Grant Delivering Sustainable Wheat BBX011003/1 and its
constituent work packages BBS/E/ER/230003A (DSW WP1 Targeted Sustainability-Trait Discovery),
BBS/E/ER/230003B (DSW WP2 Delivering Resilience to Biotic Stress),
BBS/E/ER/230003C (DSW WP4 Sustainable Data Frameworks for Wheat) and
Core Capability Grants BB/CCG1720/1 and BB/CCG2220/1 and the work delivered via the
BBSRC National Capability in e‐Infrastructure (BBS/E/T/000PR9814)
at the Earlham Institute by members of the e‐Infrastructure group.</p>
</div>
</div>
<!-- First Row for Earlham Institute and Project Code -->
<div class="row">
<div class="footer-col col-md-6" style="text-align: left !important;">
<h5>Earlham Institute</h5>
<p>Norwich Research Park<br/>
Norwich<br/>
NR4 7UZ<br/>
UK</p>
</div>
<div class="footer-col col-md-6">
<h5>Project Code</h5>
<p>The project is fully open source and the source code is available on <a
href="https://github.com/TGAC?q=grassroots" target="_blank">GitHub</a>:</p>
<ul class="list-inline">
<li class="list-inline-item">
<a class="btn-social btn-outline" href="https://github.com/TGAC?q=grassroots"
target="_blank">
<i class="fab fa-fw fa-github"></i>
</a>
</li>
<!-- Example of additional social media. Uncomment and modify as needed.
<li class="list-inline-item">
<a class="btn-social btn-outline" href="#">
<i class="fa fa-fw fa-twitter"></i>
</a>
</li>
-->
</ul>
</div>
</div>
</div>
</div>
<div class="footer-below">
<div class="container">
<div class="row">
<div class="col-lg-12">
© 2017 - 2024 Brought to you by <a href="http://www.earlham.ac.uk/" target="_blank">Earlham
Institute</a>
</div>
</div>
</div>
</div>
</footer>
<!-- Additional scripts if any -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Define the extra string to add to the base URL
const extraString = "test"; // BETA or TEST
// Get all the navigation links in the navbar
const navLinks = document.querySelectorAll('#mainNav .nav-link');
// Iterate over each link and update the href attribute
navLinks.forEach(link => {
const href = link.getAttribute('href');
// Check if the href is a relative URL
if (href && !href.startsWith('http')) {
///link.setAttribute('href', `/${extraString}/${href}`);
}
});
});
</script>
</body>
</html>