Skip to content

Instantly share code, notes, and snippets.

@charleshimmer
Last active December 14, 2015 22:08
Show Gist options
  • Select an option

  • Save charleshimmer/5155772 to your computer and use it in GitHub Desktop.

Select an option

Save charleshimmer/5155772 to your computer and use it in GitHub Desktop.

Revisions

  1. charleshimmer revised this gist Mar 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bazaarvoiceUpgradeTest.html
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    <meta name="viewport" content="width=device-width">

    <!-- Meat and Potatoes of BV Integration Code-->
    <script src="//travelocity.ugc.bazaarvoice.com/static/0025-en_us/bvapi.js"></script>
    <script src="//travelocity.ugc.bazaarvoice.com/bvstaging/static/0025-en_US/bvapi.js"></script>
    <script>
    $BV.ui('rr', 'show_reviews', {
    productId: 'test',
  2. charleshimmer created this gist Mar 13, 2013.
    46 changes: 46 additions & 0 deletions bazaarvoiceUpgradeTest.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

    <!-- Meat and Potatoes of BV Integration Code-->
    <script src="//travelocity.ugc.bazaarvoice.com/static/0025-en_us/bvapi.js"></script>
    <script>
    $BV.ui('rr', 'show_reviews', {
    productId: 'test',
    doShowContent: function(){
    console.log('code to show reviews tab');
    }
    });

    $BV.ui('qa', 'show_questions', {
    productId: 'test',
    doShowContent: function(){
    console.log('code to show questions tab');
    }
    });
    </script>

    </head>
    <body>
    <h1>Demo/Test Bazaarvoice Integration Page</h1>

    <div id="BVRRSummaryContainer">
    <!-- Contents of this div will be filled by Bazaarvoice's JavaScript. -->
    </div>

    <div id="BVRRContainer">
    <!--
    Contents of this div should be filled using the content of the smart SEO HTML file. Bazaarvoice's JS integration will also use this div to render reviews. -->
    </div>

    <div id="BVQAContainer">
    <!--
    Contents of this div should be filled using the content of the smart SEO HTML file. Bazaarvoice's JS integration will also use this div to render reviews. -->
    </div>
    </body>
    </html>