Skip to content

Instantly share code, notes, and snippets.

@talha08
Created December 19, 2016 22:01
Show Gist options
  • Save talha08/4a06a9d31a884898d5961948c60cca3c to your computer and use it in GitHub Desktop.
Save talha08/4a06a9d31a884898d5961948c60cca3c to your computer and use it in GitHub Desktop.
https://www.spot.im/
//use in scripr
<script type="text/javascript">!function(t,e,n){function a(t){var a=e.createElement("script");a.type="text/javascript",a.async=!1,a.src=("https:"===e.location.protocol?"https":"http")+":"+n,(t||e.body||e.head).appendChild(a)}function o(){var t=e.getElementsByTagName("script"),n=t[t.length-1];return n.parentNode} var p=o();t.spotId="sp_hrLZW7d1",t.parentElement=p,a(p)}(window.SPOTIM={},document,"//www.spot.im/launcher/bundle.js");</script>
//use in body
<div class="comments-container ">
<div class="spot-im-frame-inpage" data-post-id="{!! $journal->id !!}"></div>
</div>
//counting comment in other page
<a href="#">
<span class="spot-im-replies-count" data-post-id="{!! $journal->id !!}"> </span>
comments
</a>
<script type="text/javascript">!function(t,e,n){function a(t){var a=e.createElement("script");a.type="text/javascript",a.async=!1,a.src=("https:"===e.location.protocol?"https":"http")+":"+n,(t||e.body||e.head).appendChild(a)}function o(){var t=e.getElementsByTagName("script"),n=t[t.length-1];return n.parentNode} var p=o();t.spotId="sp_hrLZW7d1",t.parentElement=p,a(p)}(window.SPOTIM={},document,"//www.spot.im/launcher/bundle.js");</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment