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
function featureTest(element, attribute); | |
var el = document.createElement('input'); | |
if(attribute in el){ | |
return true; | |
else{ | |
return false; | |
} | |
} |
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
$BV.configure('global', { | |
allowSamePageSubmission: true, | |
doShowSubmission: function() { | |
tb_show('', '#TB_inline?height=auto&width=730&modal=true&inlineId=submissioncon',''); | |
}, | |
onSubmissionReturn: function() { | |
tb_remove(); | |
}, | |
doScrollSubmission: function() { | |
return false; |
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
$BV.ui('rr', 'show_reviews', { | |
productId: '67760', | |
submissionContainerDiv: 'BVRRContainer', | |
doShowContent: function(){ | |
// place logic here to show the reviews tab | |
} | |
}); |
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
// When doing smart SEO advanced you will check for the existence of a URL parameter named bvrrp. | |
// If that parameter exists, you will check to make sure that file exists on disk, and then include it. | |
// For example, if the product id was 6789 and page 2 was being requested, the parameter bvrrp would be 1230-en_us/reviews/product/2/6789.htm. | |
// If that parameter doesn't exist, you will default to including page 1. | |
// Here is an example function you might write to handle this logic. | |
function getRRSmartSEOFile() { | |
$SEOParam = getURLParameter('bvrrp'); | |
$SEOFile = '/path/to/smartseo/' + $SEOParam; |
NewerOlder