-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (49 loc) · 2.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<script type="text/javascript">
var config = {
partner_id: 'HzyODz98rN', //demo - XxDi4W65d2
locale: 'en',
disablePersist: true, // Don't persist state
env: 'test', // for test env. Change to prod for production deployment
// When using renderTo option plugin will render inside
// the given DOM element instead of using a modal.
// The plugin will adapt its size to fill the parent container,
// you have to adjust parent container dimensions according
// to device size in order to ensure the best user experience
// This could be a div overlaid with the product image div
// for example.
renderTo: document.getElementById('revieve-container'),
onClose: function() {
// User clicked close button
console.log('User clicked close');
}
};
(function() {
var rv = document.createElement('script');
rv.src = 'https://d38knilzwtuys1.cloudfront.net/revieve-plugin-v4/revieve-plugin-loader.js';
rv.charset = 'utf-8';
rv.type = 'text/javascript';
rv.async = 'true';
rv.onload = rv.onreadystatechange = function() {
var rs = this.readyState;
if (rs && rs != 'complete' && rs != 'loaded') return;
Revieve.Init(config, function() {
// Comment out the below line if you want to open the modal
// manually when user clicks a certain button or navigates
// to certain page.
// Optimally call this method only after the user has clicked
// a "try on" button
Revieve.API.show();
window.Revieve.API.liveAR.addTryOnProduct('647247'); //lip gloss
window.Revieve.API.liveAR.addTryOnProduct('647237'); //lipstick
window.Revieve.API.liveAR.addTryOnProduct('647230'); //highlighter
window.Revieve.API.liveAR.addTryOnProduct('647268'); //blush
window.Revieve.API.liveAR.addTryOnProduct('647261'); //mascara
//window.Revieve.API.liveAR.addTryOnProduct('16691886');
//window.Revieve.API.liveAR.addTryOnProduct('16416465');
//window.Revieve.API.liveAR.addTryOnProduct('16417171');
});
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(rv, s);
})();
</script>