Skip to content

Commit 17daaff

Browse files
Add example for bookable apts
1 parent 34c3a0e commit 17daaff

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

_examples/appointments.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: socket_example
3+
title: Appointments booking example
4+
permalink: /examples/book-apts/
5+
description: An example of booking appointments in TutorCruncher using Socket.
6+
---
7+
{% highlight html %}
8+
<div id="book-apts"></div>
9+
10+
<script>
11+
socket('{{ site.socket_key }}', {
12+
router_mode: 'history',
13+
element: '#book-apts',
14+
mode: 'appointments'
15+
});
16+
</script>
17+
{% endhighlight %}
18+
19+
<div id="book-apts"></div>
20+
21+
<script>
22+
socket('{{ site.socket_key }}', {
23+
router_mode: 'history',
24+
element: '#book-apts',
25+
mode: 'appointments'
26+
});
27+
</script>

0 commit comments

Comments
 (0)