-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·45 lines (41 loc) · 1.2 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
---
layout: default
title: Home
---
<div id="biz-list">
<span id="new-biz">
Don't see a deaf-owned biz on the list? <a href="https://docs.google.com/forms/d/e/1FAIpQLSdFPZyanfu-_nkWpKKwIIk15NzeoBXgkg5xSp4c5CrBlSoARw/viewform" target="_blank">Submit one!</a>
</span>
<div id="search">
<input class="search" placeholder="search {{ site.data.businesses | size }} businesses" />
<button class="sort" data-sort="name">Sort by name</button>
</div>
<ul class="list">
{% for biz_hash in site.data.businesses %}
{% assign biz = biz_hash[1] %}
<li id="{{biz_hash[0]}}" data-comments="{{ biz.comments }}" data-category="{{ biz.category }}">
<a href="{{ biz.url }}?utm_source=kratsg.github.io&utm_campaign=deafbiz&utm_medium=mainpage">
<span class="name">
{{ biz.name }}
</span>
</a>
{% if biz.location %}
in
<span class="location">
{{ biz.location }}
</span>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<script type="text/javascript">
var options = {
valueNames: [
'name',
'location',
{ data: ['comments', 'category'] }
]
};
var bizList = new List('biz-list', options);
</script>