Commit c38b6771 authored by Renfred Harper's avatar Renfred Harper

Allow multiple characters in location subscripts

parent 6c2269a3
...@@ -70,9 +70,10 @@ body { ...@@ -70,9 +70,10 @@ body {
color: rgba(81,81,81,0.9); color: rgba(81,81,81,0.9);
background-color: rgba(255,255,255,0.65); background-color: rgba(255,255,255,0.65);
} }
.restaurant sub{ .restaurant .building{
font-size: 13px; font-size: 15px;
padding-left: 2px; padding-left: 2px;
} }
.search-row{ .search-row{
......
...@@ -27,7 +27,7 @@ function construct_grid(filtered_restaurants) { ...@@ -27,7 +27,7 @@ function construct_grid(filtered_restaurants) {
// Next to a restuarant name, the number will be formatted as a subscript. // Next to a restuarant name, the number will be formatted as a subscript.
$('#grid .row').append( $('#grid .row').append(
'<div class="col-sm-6 col-md-4 col-lg-3 grid-box" id="' + restaurant.id + '">\ '<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+)\]/, "<sub>$1</sub>") + '</div>\ <div class="restaurant ' + open_class + '">' + restaurant.name.replace(/ ?\[(.+)\]/, '<span class="building"> ($1)</span>') + '</div>\
</div>' </div>'
); );
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment