Embed Hireflix in a Wix website

Updated by Antonio

How to embed a Hireflix interview in Wix?

To embed a Hireflix interview in a Wix website is super easy. Keep in mind that for it to work properly you need a Wix paid plan and a site with its own domain. To learn how to embed Hireflix in Wix, check the video below:

<iframe src="YOUR LINK HERE"
allow="camera *; microphone *; autoplay *; encrypted-media *; fullscreen *; display-capture *;"
width="100%"
height="100%"
style="border: none; border-radius: 20px"
>
</iframe>

IMPORTANT: This is the code I mention on the video. Just copy it and paste it where I mention on the video above 😊🙏:

<script>
function addPermissions (iframe) {
const ALLOW_PERMISSIONS = 'camera *; microphone *; autoplay *; encrypted-media *; fullscreen *; display-capture *;'
if (iframe.allow === ALLOW_PERMISSIONS) {
return
}
iframe.setAttribute('allow', ALLOW_PERMISSIONS)
iframe.allow = ALLOW_PERMISSIONS
iframe.src = iframe.src
}
document.querySelectorAll('iframe').forEach(addPermissions)
const observer = new MutationObserver(function (mutationsList, observer) {
for(let mutation of mutationsList) {
if (mutation.addedNodes && mutation.addedNodes.length) {
for (let node of mutation.addedNodes) {
if (node.querySelectorAll) {
node.querySelectorAll('iframe').forEach(addPermissions)
}
}
}
}
})
observer.observe(document.body, { attributes: false, childList: true, subtree: true })
</script>


How did we do?


Powered by HelpDocs (opens in a new tab)