Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing beta #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.2
2.7.0
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ DEPENDENCIES
pygments.rb (~> 1.2, >= 1.2.1)

RUBY VERSION
ruby 2.5.5p157
ruby 2.7.0p0

BUNDLED WITH
2.1.4
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ theme: minima
permalink: pretty
highlighter: pygments

socket_key: 9c79f14df986a1ec693c
socket_key: 390eb8d224a0f64395eb
gems:
- jekyll-feed
exclude:
Expand All @@ -37,3 +37,4 @@ social:
url: http://github.com/tutorcruncher

socket_url: https://cdn.tutorcruncher.com/socket/latest/socket.js
socket_api_root: https://socket-beta.tutorcruncher.com
1 change: 1 addition & 0 deletions _examples/appointments.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<script>
socket('{{ site.socket_key }}', {
api_root: '{{ site.socket_api_root }}',
router_mode: 'history',
element: '#book-apts',
mode: 'appointments'
Expand Down
31 changes: 31 additions & 0 deletions _examples/no_stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: socket_example
title: No Review Stars Example
permalink: /examples/no-stars/
description: An example of the tutors list with no review stars shown
---
<div id="socket-no-stars"></div>

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

{% highlight html %}
<!-- Then -->
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
element: '#socket-no-stars',
show_stars: false,
});
</script>
{% endhighlight %}

<div id="socket-no-stars"></div>

<script>
socket('{{ site.socket_key }}', {
router_mode: 'history',
element: '#socket-no-stars',
show_stars: false,
});
</script>
1 change: 1 addition & 0 deletions _includes/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h2>Contact Us</h2>
</section>
<script>
socket('{{ site.socket_key }}', {
api_root: '{{ site.socket_api_root }}',
mode: 'enquiry',
element: '#socket-enquiry'
});
Expand Down
1 change: 1 addition & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ <h3>About Dino Tutors</h3>

<script>
socket('{{ site.socket_key }}', {
api_root: '{{ site.socket_api_root }}',
mode: 'enquiry-modal',
element: '#socket-enquiry-modal',
router_mode: 'history'
Expand Down
1 change: 1 addition & 0 deletions _includes/our-tutors.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h3 class="tutor-sign-up">Interested in becoming a tutor?</h3>
</section>
<script>
socket('{{ site.socket_key }}', {
api_root: '{{ site.socket_api_root }}',
router_mode: 'history'
});
</script>