Last active
December 15, 2015 23:39
-
-
Save charleshimmer/5342278 to your computer and use it in GitHub Desktop.
Example Travelocity integration code for C2013 supporting all three locales
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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, for production use | |
display.ugc.bazaarvoice.com instead of display-stg.ugc.bazaarvoice.com --> | |
<script src="//display-stg.ugc.bazaarvoice.com/static/Travelocity/en_US/bvapi.js"></script> | |
<!-- <script src="//display-stg.ugc.bazaarvoice.com/static/Travelocity/en_CA/bvapi.js"></script> --> | |
<!-- <script src="//display-stg.ugc.bazaarvoice.com/static/Travelocity/fr_CA/bvapi.js"></script> --> | |
<script> | |
$BV.configure('global', { | |
productId: 'test1' | |
}) | |
$BV.ui('rr', 'show_reviews', { | |
doShowContent: function(){ | |
console.log('code to show reviews tab'); | |
} | |
}); | |
$BV.ui('qa', 'show_questions', { | |
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment