Skip to content

Instantly share code, notes, and snippets.

View kdoran's full-sized avatar

Kevin Doran kdoran

  • Billiam
  • Various
View GitHub Profile
<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 () {
@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>
@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:1724789
Created February 2, 2012 17:38
deep link stories URL
<a href="http://stories.makeeveryswingcount.com/bvstaging/stories/8567stories-en_us/category/make_every_swing_count/story/make_every_swing_count/redirect.htm">Individual story</a>
@kdoran
kdoran / gist:1754332
Created February 6, 2012 19:43
show individual story link
<a href="javascript:void(0);" onclick="$BV.ui('sy', 'show_stories', {storyId: '18362', categoryId: 'make_every_swing_count', subjectType: 'category'});">Individual story</a>
@kdoran
kdoran / gist:1774008
Created February 8, 2012 21:25
PIE feed heading
The heading Feed heading needs to be changed to:
<?xml version="1.0" encoding="UTF-8"?>
<Feed xmlns="http://www.bazaarvoice.com/xs/PRR/PostPurchaseFeed/4.9">
And the date format needs to be changed from:
<TransactionDate>2012-01-21 00:00:00.000</TransactionDate>
to
@kdoran
kdoran / gist:1792210
Created February 10, 2012 19:52
update to product feed
<Category>
<ExternalId>make_every_swing_count</ExternalId>
<Name>Make Every Swing Count</Name>
<CategoryPageUrl>https://www.makeeveryswingcount.com/</CategoryPageUrl>
</Category>
@kdoran
kdoran / gist:1861009
Created February 18, 2012 21:00
html woes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
University of Wisconsin–Madison
</title>
<link rel="stylesheet" href="http://www.wisc.edu/css/home.css?12353" type="text/css" media="all" />
<!--[if IE 6.0]>
@kdoran
kdoran / gist:1879383
Created February 21, 2012 22:15
compiled css
#BVUESExpanded {
color: #333333;
font-family: Arial,sans-serif;
font-size: 12px;
left: 25px;
line-height: 1.5em;
position: fixed;
right: 25px;
top: -100px;
z-index: 2147483647;
@kdoran
kdoran / gist:1903901
Created February 24, 2012 21:35
BV ui call in button
<a id="reviews_writeReview_btn" href="#" onclick="$BV.ui('rr', 'submit_review', {submissionUI: 'LIGHTBOX',
allowSamePageSubmission: true,
doLogin: function(callback, success_url) {
window.location = 'http://www-dev.golfsmith.com/login?fnm=reviews&redirect=' + success_url;}, submissionContainerUrl: window.location.href, productId: '30053772'});" title="Write a Review for the TaylorMade Burner SuperFast 2.0 Driver"> Write a Review for the TaylorMade Burner SuperFast 2.0 Driver</a>