Our team speaks a number of languages including
Our team speaks a number of languages including
window.addEventListener('message', function(event) {
if (event.data?.eventId === 'provision.message.image.zoom') {
const div = document.createElement('div');
div.style.background = 'rgba(0,0,0,.5) url(' + event.data.image + ') no-repeat center';
div.style.backgroundSize = 'contain';
div.style.width = '100%';
div.style.height = '100%';
div.style.position = 'fixed';
div.style.zIndex = '99999';
div.style.top = '0';
div.style.left = '0';
div.style.cursor = 'zoom-out';
div.addEventListener('click', function(e) {
e.currentTarget.remove();
})
window.document.body.appendChild(div);
}
});