Last active
December 19, 2015 13:19
-
-
Save charleshimmer/5961267 to your computer and use it in GitHub Desktop.
Using doLogin
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"> | |
<script src="//display-stg.ugc.bazaarvoice.com/static/targetcom/bvapi.js"></script> | |
<script> | |
$BV.configure('global', { | |
doLogin : function (submission) { | |
showMyLoginPopup().then(function (userToken) { | |
// get the token, then invoke BV submission modal passing it a userToken | |
// property. | |
submission({ | |
userToken : userToken, | |
error : function(error){ | |
// handle error case | |
} | |
}); | |
}); | |
} | |
}); | |
$BV.ui('rr', 'show_reviews', { | |
productId: 'product1' | |
}); | |
// $BV.ui('rr', 'inline_ratings', { | |
// containerPrefix: 'BVRRInlineRatings', | |
// productIds: ['3600'] | |
// }); | |
</script> | |
</head> | |
<body> | |
<h1>Inline ratings</h1> | |
<div id="BVRRInlineRatings-3600"></div> | |
<h1>Target</h1> | |
<p>Target integration page</p> | |
<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 by Target using the content of the smart SEO HTML file. Bazaarovice will also overwrite this content with HTML from the Bazaarvoice JavaScript call. | |
--> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment