<!--
Add 'standalone', 'company-eid' and 'button-id' (set tup in the platofrm) props
to make the ar button standalone
You can override the sku with the 'sku' prop
-->
<power-viewer-ar-button
standalone
company-eid="-5286354827860524208"
button-id="GS4DVtgpNyQ"
standalone-qr-template="modal"
text="Standalone AR Button"
ar-scan-text="Scan this code to view in AR"
ar-close-text="Click anywhere to close">
</power-viewer-ar-button>
<!--
standalone-qr-template = "modal" || "inline" || "message"
-->
<script>
// if standalone-qr-template="message",
// you will just receive the url for your custom QR code
window.addEventListener('message', (message) => {
if(message.data.type
&& message.data.type === 'POWER.viewer.showQRcode' ) {
alert('Show a QR code for ' + message.data.value)
}
})
</script>