Skip to content

Instantly share code, notes, and snippets.

View kdoran's full-sized avatar

Kevin Doran kdoran

  • Billiam
  • Various
View GitHub Profile
@kdoran
kdoran / gist:1719271
Created February 1, 2012 20:56
Write a review standalone button code using JS API
<a href="#" onclick="$BV.ui('rr', 'submit_review', {productId: 'test_product_id'});">write a review</a>
@kdoran
kdoran / gist:1718838
Created February 1, 2012 19:41
Write a story standalone button code via JS API
<a href="#" onclick="$BV.ui('sy', 'submit_story', {subjectType: 'category', productId: 'make_every_swing_count'});">write a story</a>
<script type="text/javascript">
(function() {
var tk = document.createElement('script');
tk.type = 'text/javascript';
tk.async = true;
tk.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'use.typekit.com/txn8uhp.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(tk, s);
tk.onload = function () {