Skip to content

Instantly share code, notes, and snippets.

@azcoov
Last active May 18, 2017 21:06
Show Gist options
  • Save azcoov/8156478 to your computer and use it in GitHub Desktop.
Save azcoov/8156478 to your computer and use it in GitHub Desktop.
Simple HTML examples of embedding the Nearby Now Javascript Widget
<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>
<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="sidebar">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>
<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="full">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>
<!-- Let's say you already have a sidebar with a container you wan to put reviews in -->
<div id="my-sidebar-container"></div>
<!-- Add this script on the page that you want to embed the reviews widget -->
<!-- Notice the two options we've added. data-container and data-count -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="full"
data-container="my-sidebar-container"
data-count="5">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment