Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zoheb Lokhandwala
whats-open
Commits
c38b6771
Commit
c38b6771
authored
Oct 14, 2013
by
Renfred Harper
Browse files
Allow multiple characters in location subscripts
parent
6c2269a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/static/css/style.css
View file @
c38b6771
...
...
@@ -70,9 +70,10 @@ body {
color
:
rgba
(
81
,
81
,
81
,
0.9
);
background-color
:
rgba
(
255
,
255
,
255
,
0.65
);
}
.restaurant
sub
{
font-size
:
1
3
px
;
.restaurant
.building
{
font-size
:
1
5
px
;
padding-left
:
2px
;
}
.search-row
{
...
...
website/static/js/grid.js
View file @
c38b6771
...
...
@@ -27,7 +27,7 @@ function construct_grid(filtered_restaurants) {
// Next to a restuarant name, the number will be formatted as a subscript.
$
(
'
#grid .row
'
).
append
(
'
<div class="col-sm-6 col-md-4 col-lg-3 grid-box" id="
'
+
restaurant
.
id
+
'
">
\
<div class="restaurant
'
+
open_class
+
'
">
'
+
restaurant
.
name
.
replace
(
/
?\[(
\d
+
)\]
/
,
"
<s
ub>
$1</s
ub>
"
)
+
'
</div>
\
<div class="restaurant
'
+
open_class
+
'
">
'
+
restaurant
.
name
.
replace
(
/
?\[(
.
+
)\]
/
,
'
<s
pan class="building"> (
$1
)
</s
pan>
'
)
+
'
</div>
\
</div>
'
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment