Skip to content

Commit b8c3b34

Browse files
committed
use google maps to autocomplete event locations
1 parent c67f48e commit b8c3b34

File tree

4 files changed

+1766
-6
lines changed

4 files changed

+1766
-6
lines changed

lib/config.template.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ class Config {
1919

2020
public static $twitterClientID = '';
2121
public static $twitterClientSecret = '';
22+
23+
// https://developers.google.com/maps/documentation/javascript/get-api-key
24+
public static $googleMapsAPIKey = '';
2225
}
2326

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
span.twitter-typeahead .tt-menu,
2+
span.twitter-typeahead .tt-dropdown-menu {
3+
cursor: pointer;
4+
position: absolute;
5+
top: 100%;
6+
left: 0;
7+
z-index: 1000;
8+
display: none;
9+
float: left;
10+
min-width: 160px;
11+
padding: 5px 0;
12+
margin: 2px 0 0;
13+
list-style: none;
14+
font-size: 14px;
15+
text-align: left;
16+
background-color: #ffffff;
17+
border: 1px solid #cccccc;
18+
border: 1px solid rgba(0, 0, 0, 0.15);
19+
border-radius: 4px;
20+
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
21+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
22+
background-clip: padding-box;
23+
}
24+
span.twitter-typeahead .tt-suggestion {
25+
display: block;
26+
padding: 3px 20px;
27+
clear: both;
28+
font-weight: normal;
29+
line-height: 1.42857143;
30+
color: #333333;
31+
white-space: nowrap;
32+
}
33+
span.twitter-typeahead .tt-suggestion.tt-cursor,
34+
span.twitter-typeahead .tt-suggestion:hover,
35+
span.twitter-typeahead .tt-suggestion:focus {
36+
color: #ffffff;
37+
text-decoration: none;
38+
outline: 0;
39+
background-color: #337ab7;
40+
}
41+
.input-group.input-group-lg span.twitter-typeahead .form-control {
42+
height: 46px;
43+
padding: 10px 16px;
44+
font-size: 18px;
45+
line-height: 1.3333333;
46+
border-radius: 6px;
47+
}
48+
.input-group.input-group-sm span.twitter-typeahead .form-control {
49+
height: 30px;
50+
padding: 5px 10px;
51+
font-size: 12px;
52+
line-height: 1.5;
53+
border-radius: 3px;
54+
}
55+
span.twitter-typeahead {
56+
width: 100%;
57+
}
58+
.input-group span.twitter-typeahead {
59+
display: block !important;
60+
height: 34px;
61+
}
62+
.input-group span.twitter-typeahead .tt-menu,
63+
.input-group span.twitter-typeahead .tt-dropdown-menu {
64+
top: 32px !important;
65+
}
66+
.input-group span.twitter-typeahead:not(:first-child):not(:last-child) .form-control {
67+
border-radius: 0;
68+
}
69+
.input-group span.twitter-typeahead:first-child .form-control {
70+
border-top-left-radius: 4px;
71+
border-bottom-left-radius: 4px;
72+
border-top-right-radius: 0;
73+
border-bottom-right-radius: 0;
74+
}
75+
.input-group span.twitter-typeahead:last-child .form-control {
76+
border-top-left-radius: 0;
77+
border-bottom-left-radius: 0;
78+
border-top-right-radius: 4px;
79+
border-bottom-right-radius: 4px;
80+
}
81+
.input-group.input-group-sm span.twitter-typeahead {
82+
height: 30px;
83+
}
84+
.input-group.input-group-sm span.twitter-typeahead .tt-menu,
85+
.input-group.input-group-sm span.twitter-typeahead .tt-dropdown-menu {
86+
top: 30px !important;
87+
}
88+
.input-group.input-group-lg span.twitter-typeahead {
89+
height: 46px;
90+
}
91+
.input-group.input-group-lg span.twitter-typeahead .tt-menu,
92+
.input-group.input-group-lg span.twitter-typeahead .tt-dropdown-menu {
93+
top: 46px !important;
94+
}

0 commit comments

Comments
 (0)