-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
207 lines (179 loc) · 7.75 KB
/
index.html
File metadata and controls
207 lines (179 loc) · 7.75 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cornish Place Names</title>
<link href='http://fonts.googleapis.com/css?family=Uncial+Antiqua' rel='stylesheet' type='text/css'>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-options">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Be sure to leave the brand out there if you want it shown -->
<a class="navbar-brand" href="#">
<img src="logo.jpg" alt="Maga" id="maga-logo"> Cornish Place Names
</a>
<!-- Place everything within .navbar-collapse to hide it until above 768px -->
<div class="collapse navbar-collapse navbar-ex1-collapse" id="nav-options">
<ul class="nav navbar-nav">
<li data-bind="css: { active: currentViewModel().template() == 'home' }"><a href="home" data-bind="click: link">Home</a></li>
<li data-bind="css: { active: currentViewModel().template() == 'places' }"><a href="places" data-bind="click: link">Places</a></li>
</ul>
</div>
</div>
</div>
<!-- /.navbar -->
<div data-bind="template: { name: currentViewModel().template, data: currentViewModel }" id="main"></div>
<footer>
<div class="container">
<div class="row">
<div class="col-md-6">
<h5>Contact</h5>
<address>
<strong>Maga</strong>
<br>
<abbr title="Phone">T:</abbr> +44 (0)1872 323497
<br>
<a href="mailto:cornishlanguage@cornwall.gov.uk">cornishlanguage@cornwall.gov.uk</a>
</address>
</div>
<div class="col-md-6" style="text-align: right">
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons Licence" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International License</a>.
</div>
</div>
</div>
<div class="container text-center">
Site developed by <a href="http://www.sensemaking.uk.com">sense|making</a>
<br> © Copyright 2013 - Cornish Language Partnership
</div>
</footer>
<script type="text/html" id="home">
<div class="container">
<h1>Welcome</h1>
<p>Cornish place names are important since it is the first context where most Cornish people first encounter their own language. They have a special place for Cornish people, enhancing their sense of place and distinctive culture.</p>
<p>The Cornish Language Partnership (CLP) represents all stakeholders with an interest in the Cornish Language. It is funded by the UK Government and Cornwall Council.</p>
<p>The Place Name and Street Sign Panel, of the CLP, provide recommended Cornish forms of place and street names. This helps maintain consistency whilst preventing confusion and duplication. Members of the Panel are Cornish speakers and comprise most
of the acknowledged experts on Cornish place names.</p>
<p>The gazetteer included in these webpages represents the extent of the Panel’s work to date.</p>
<div>
</script>
<script type="text/html" id="places">
<div class="container">
<div class="form-inline" role="form">
<div class="form-group">
<input type="text" class="form-control" id="keyword" placeholder="keyword" data-bind="value: keyword">
</div>
<div class="form-group">
<label>
<input type="radio" name="searchType" data-bind="attr: { value: 'eng' }, checked: searchType"> English
</label>
</div>
<div class="form-group">
<label>
<input type="radio" name="searchType" data-bind="attr: { value: 'ker' }, checked: searchType"> Cornish
</label>
</div>
<button type="button" class="btn btn-primary" data-bind="click: doSearch">Search
<span data-bind="visible: loading"> <i class="icon icon-spin icon-refresh"></i></span>
</button>
</div>
<div class="alert alert-danger" data-bind="visible: showError">
You must have at least 3 letters to search
</div>
<table class="table">
<tr>
<th>English Name</th>
<th>Type</th>
<th>Parish</th>
<th>Cornish Name</th>
<th></th>
</tr>
<!-- ko foreach: places -->
<tr>
<td data-bind="text: EnglishName"></td>
<td data-bind="text: Type"></td>
<td data-bind="text: Parish"></td>
<td data-bind="text: CornishName"></td>
<td><a data-bind="attr: { href: 'place/' + _links.self.href.escapeURL(true) }, click: $root.link">Details</a></td>
</tr>
<!-- /ko -->
</table>
<div class="row" data-bind="visible: totalPages() > 1">
<div class="col-md-2 col-sm-4 col-xs-4">
<a href="#" class="btn btn-primary" data-bind="click: previous, visible: hasPrevious"><i class="icon icon-chevron-left"></i> Prev</a>
</div>
<div class="col-md-8 col-sm-4 col-xs-4 text-center">
Page
<span data-bind="text: currentPage"></span> of
<span data-bind="text: totalPages"></span>
</div>
<div class="col-md-2 col-sm-4 col-xs-4 text-right">
<a href="#" data-bind="click: next, visible: hasNext" class="btn btn-primary">Next <i class="icon icon-chevron-right"></i></a>
</div>
</div>
</div>
</script>
<script type="text/html" id="place">
<div class="container">
<h1>
<span data-bind="text: CornishName"></span> ~
<span data-bind="text: EnglishName"></span>
</h1>
<div class="row">
<div class="col-md-6">
<form>
<div class="form-group">
<label>Type:</label>
<input class="form-control" data-bind="value: Type" disabled>
</div>
<div class="form-group">
<label>Parish:</label>
<input class="form-control" data-bind="value: Parish" disabled>
</div>
<div class="form-group">
<label>Keverang:</label>
<input class="form-control" data-bind="value: Keverang" disabled>
</div>
<div class="form-group">
<label>Grid Reference:</label>
<input class="form-control" data-bind="value: GridReference" disabled>
</div>
<div class="form-group">
<label>Etymology:</label>
<textarea class="form-control" data-bind="value: Etymology" disabled rows="5"></textarea>
</div>
<div class="form-group">
<label>Historic Forms:</label>
<textarea class="form-control" data-bind="value: HistoricForms" disabled rows="5"></textarea>
</div>
<a href="places" data-bind="click: $root.link" class="btn btn-primary"><i class="icon icon-chevron-left"></i> Places</a>
</form>
</div>
<div class="col-md-6">
<div id="google-map" style="height: 500px;"></div>
</div>
</div>
<div>
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/2.3.0/knockout-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.3.5/knockout.mapping.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.3.1/lodash.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/sammy.js/0.7.4/sammy.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/sugar/1.3.9/sugar.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script src="hdk.js"></script>
<script src="app.js"></script>
<script>
var app = new Application();
ko.applyBindings(app);
</script>
</body>
</html>