Skip to content

Commit

Permalink
Add how to call socket
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhamiltonstubber committed Sep 28, 2018
1 parent 3124f83 commit 59eb01d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _examples/appointments.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="book-apts"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/customised_text_enquiry_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
{% highlight html %}
<div id="customised-messages-view"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/grid_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="grid-view"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/label_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="label-filter"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/list_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="list-view"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/subject_filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="subject-filter"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down
4 changes: 4 additions & 0 deletions _examples/terms_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% highlight html %}
<div id="socket-enquiry"></div>

<!-- If you haven't called it before -->
<script src="{{ site.socket_url }}"></script>

<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
Expand Down

0 comments on commit 59eb01d

Please sign in to comment.