Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var olapicProductId = 0000000; //Insert here the product ID
- var olapicWidgetLanguage = 'id_ID'; //Insert here the language code, example 'es_ES'
- var olapicAPIKey = ''; //Insert here the customer API Key
- var olapicInstanceIdDesktop = ''; //Insert here the instance ID for the desktop widget
- var olapicInstanceIdMobile = ''; //Insert here the instance ID for the mobile widget
- function doRender(options){
- window.olapic.prepareWidget(options, {
- 'renderNow' : true,
- 'force' : true
- });
- };
- function onOlapicLoad() {
- OlapicSDK.conf.set('apikey', olapicAPIKey);
- window.olapic = window.olapic || new OlapicSDK.Olapic( function(o){
- window.olapic = o;
- if (window.innerWidth < 769) {
- doRender({
- 'id': olapicInstanceIdMobile,
- 'wrapper':'olapic_specific_widget',
- 'tags': olapicProductId,
- 'lang': olapicWidgetLanguage
- });
- } else {
- doRender({
- 'id':olapicInstanceIdDesktop,
- 'wrapper':'olapic_specific_widget',
- 'tags': olapicProductId,
- 'lang': olapicWidgetLanguage
- });
- }
- });
- };
- </script>
- <div id="olapic_specific_widget"></div>
- <script type="text/javascript" src="//photorankstatics-a.akamaihd.net/81b03e40475846d5883661ff57b34ece/static/frontend/latest/build.min.js" async="async"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement