237 lines
5.6 KiB
HTML
237 lines
5.6 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap">
|
|
<link rel="stylesheet" href="https://cdn.ballast-data.co.uk/theme.css">
|
|
<link rel="icon" type="image/x-icon" href="https://cdn.ballast-data.co.uk/Icon.svg">
|
|
|
|
<style>
|
|
html {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
background-color: var(--A1);
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
min-height: 100%;
|
|
width: 100%;"
|
|
background-color: var(--A2);
|
|
padding-left: 18px;
|
|
padding-right: 18px;
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
a {
|
|
color: var(--A0);
|
|
}
|
|
|
|
.wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100%;
|
|
width: 100%;
|
|
background-color: var(--A0);
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.header {
|
|
position: sticky;
|
|
top: 0px;
|
|
width: fit-content;
|
|
min-width: 35em;
|
|
color: var(--A0);
|
|
background-color: var(--C2);
|
|
border: 6px solid var(--C1);
|
|
border-radius: 0 0 9px 9px;
|
|
padding: 12px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-top: 0px;
|
|
}
|
|
|
|
.main {
|
|
width: fit-content;
|
|
background-color: white;
|
|
border: 9px solid var(--B2);
|
|
border-radius: 9px;
|
|
padding: 12px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-bottom: 1em;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.branding {
|
|
width: fit-content;
|
|
border-bottom: 9px solid var(--C1);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.query {
|
|
width: fit-content;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
width: fit-content;
|
|
font-size: 0.8em;
|
|
color: var(--A0);
|
|
background-color: var(--D2);
|
|
border: 6px solid var(--D1);
|
|
border-radius: 9px 9px 0 0;
|
|
padding: 12px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.level0 {
|
|
text-align: right;
|
|
}
|
|
.col0,
|
|
.col1,
|
|
.col2 {
|
|
text-align: left;
|
|
}
|
|
|
|
input {
|
|
font-family: "Merriweather Sans";
|
|
font-size: 1em;
|
|
border: 3px solid var(--A1);
|
|
}
|
|
input:hover {
|
|
background-color: var(--C2);
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
function querySt(attribute) {
|
|
url = window.location.search.substring(1);
|
|
substrings = url.split('&');
|
|
for (i=0;i<substrings.length;i++) {
|
|
ft = substrings[i].split('=');
|
|
if (ft[0] == attribute) {
|
|
return ft[1];
|
|
}
|
|
}
|
|
}
|
|
|
|
function prefill(attribute) {
|
|
var value = querySt(attribute);
|
|
value = decodeURIComponent(value);
|
|
|
|
if(value !== 'undefined'){
|
|
document.getElementById(attribute).value = value;
|
|
} else {
|
|
document.getElementById(attribute).value = '';
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="header">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<a href="/fares"><img src="https://cdn.ballast-data.co.uk/Icon-NB.svg"></a>
|
|
</td>
|
|
<td>
|
|
Ballast-Data Product <br>
|
|
<a href="/">Home</a> |
|
|
<a href="/fares">Fares</a> |
|
|
<a href="/stations">Stations</a> |
|
|
<a href="/about">About Us</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="main">
|
|
|
|
<div class="branding">
|
|
<br>
|
|
<a href="/fares">
|
|
<img height=80px src="https://cdn.ballast-data.co.uk/Logo.svg">
|
|
</a>
|
|
<b style="font-size: 4em; line-height: 1; font-weight: 600;"> Fares </b> <br>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="query">
|
|
<form method="get" action="/fares">
|
|
<input
|
|
name="origin"
|
|
id="origin"
|
|
required
|
|
autocomplete="on"
|
|
placeholder="Origin*"
|
|
style="width: 10em;"
|
|
/>
|
|
<script>prefill('origin')</script>
|
|
|
|
<input
|
|
name="destination"
|
|
id="destination"
|
|
required
|
|
autocomplete="on"
|
|
placeholder="Destination*"
|
|
style="width: 10em;"
|
|
/>
|
|
<script>prefill('destination')</script>
|
|
|
|
<input
|
|
name="toc"
|
|
id="toc"
|
|
autocomplete="on"
|
|
placeholder="TOC"
|
|
style="width: 5em;"
|
|
/>
|
|
<script>prefill('toc')</script>
|
|
|
|
<input type="submit" value="Go!" style="width: 5em;">
|
|
</form>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<!-- Content -->
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="footer">
|
|
<span>
|
|
Powered by National Rail Enquiries. This site is not accredited by National Rail. <br>
|
|
We use information from
|
|
<a href="https://opendata.nationalrail.co.uk/" target="_blank">National Rail Open Data</a>
|
|
and
|
|
<a href="https://raildata.org.uk/" target="_blank">Rail Data Marketplace</a>. <br>
|
|
This service is not to be used for safety critical purposes. <br>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|