var virtooalMirrorSettings = { apiKey: "", mirrorVersion: "0", }; if (typeof virtooalCrossmirrorScript === 'undefined') { var virtooalCrossmirrorScript = document.createElement('script'); virtooalCrossmirrorScript.type = 'text/javascript'; virtooalCrossmirrorScript.async = true; if (window.location.href.indexOf('duosshop.hr') > -1 || window.location.href.indexOf('duosshop.ro') > -1) { virtooalCrossmirrorScript.src = ''; } else if (window.location.href.indexOf('zoff.co.jp') > -1) { virtooalCrossmirrorScript.src = `https://tryon.auglio.com/${virtooalMirrorSettings.apiKey}?legacy=1&preview=${window.location.href.indexOf('preview=1') > -1 ? 1 : 0}`; } else if (window.location.href.indexOf('augliotestingv2') > -1) { virtooalCrossmirrorScript.src = `https://tryon.auglio.com/${virtooalMirrorSettings.apiKey}?legacy=1&preview=${window.location.href.indexOf('preview=1') > -1 ? 1 : 0}`; } else if (window.location.href.indexOf('presentation=1') > -1) { virtooalCrossmirrorScript.src = `https://tryontest.auglio.com/${virtooalMirrorSettings.apiKey}?legacy=1&preview=${window.location.href.indexOf('preview=1') > -1 ? 1 : 0}&presentation=${window.location.href.indexOf('presentation=1') > -1 ? 1 : 0}`; } else if (virtooalMirrorSettings.mirrorVersion == "2") { virtooalCrossmirrorScript.src = `https://tryon.auglio.com/${virtooalMirrorSettings.apiKey}?legacy=1&preview=${window.location.href.indexOf('preview=1') > -1 ? 1 : 0}`; } else { virtooalCrossmirrorScript.src = `https://mirror.auglio.com/assets/js/automirror.php?a=${virtooalMirrorSettings.apiKey}`; } var s_virtooal = document.getElementsByTagName('script')[0]; s_virtooal.parentNode.insertBefore(virtooalCrossmirrorScript, s_virtooal); }