Skip to content

Commit 622a15d

Browse files
Basic tutors list
1 parent 59eb01d commit 622a15d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

_examples/basic_tutors_list.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: socket_example
3+
title: Basic tutors list example
4+
permalink: /examples/basic-tutors-list/
5+
description: The simplest implementation of Socket on a site.
6+
---
7+
{% highlight html %}
8+
<div id="socket"></div>
9+
10+
<!-- If you haven't called it before -->
11+
<script src="{{ site.socket_url }}"></script>
12+
13+
<!-- Then -->
14+
<script>
15+
socket('{{ site.socket_key }}');
16+
</script>
17+
{% endhighlight %}
18+
19+
<div id="socket"></div>
20+
21+
<script>
22+
socket('{{ site.socket_key }}');
23+
</script>

0 commit comments

Comments
 (0)