-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (96 loc) · 3.17 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
<!doctype html>
<html>
<head>
<title>Post Code Search</title>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" integrity="sha512-EZLkOqwILORob+p0BXZc+Vm3RgJBOe1Iq/0fiI7r/wJgzOFZMlsqTa29UEl6v6U6gsV4uIpsNZoV32YZqrCRCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
.columns:first-child:before {
content: "\00a0";
}
.header {}
.header__title {
text-align: center;
}
.footer {
bottom: 0;
left: 0;
position: fixed;
right: 0;
text-align: center;
}
.postcode-search-form { transition: opacity .3s ease }
.postcode-search-form--loading { opacity: .5 }
.postcode-search-form--loaded { opacity: 1 }
.postcode-search-form__sub-input {
min-height: 20px;
}
.the-one-and-only-input {
width: 80%;
}
.sub-input-info {
position: relative;
}
.sub-input-info__error,
.sub-input-info__hints {
right: 0;
position: absolute;
top: 0;
}
.sub-input-info__hints {
top: -15px;
width: 80%;
}
.postcode-search-form__found {}
.postcode-details {}
.autocomplete {
margin: 0;
padding: 0;
list-style-type: none;
}
.autocomplete--empty {}
.autocomplete__suggestion {
margin: 0;
padding: 0;
}
.autocomplete__suggestion--info {
opacity: .6;
}
.autocomplete__choose-suggestion {
width: 100%;
line-height: 32px;
margin: 0;
border-top: 0;
border-radius: 0;
}
</style>
<script src="dist/main.js"></script>
</head>
<body>
<div id="post-code-app"></div>
<script>Elm.Main.init({node: document.getElementById('post-code-app')});</script>
</body>
</html>