2023-12-09 14:47:03 +00:00
|
|
|
<template>
|
2023-12-09 16:02:23 +00:00
|
|
|
<iframe v-if="!isDark" id="testimonialto-carousel-all-notionforms"
|
2023-12-09 14:47:03 +00:00
|
|
|
loading="lazy"
|
|
|
|
src="https://embed.testimonial.to/carousel/all/notionforms?theme=light&autoplay=on&showmore=on&one-row=on&same-height=off"
|
|
|
|
frameBorder="0" scrolling="no" width="100%"
|
|
|
|
/>
|
|
|
|
<iframe v-else id="testimonialto-carousel-all-notionforms" src="https://embed.testimonial.to/carousel/all/notionforms?theme=dark&autoplay=on&showmore=on&one-row=on&same-height=off" frameborder="0" scrolling="no" width="100%" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-01-16 14:00:22 +00:00
|
|
|
import {darkModeEnabled} from "~/lib/forms/public-page.js"
|
2023-12-09 16:02:23 +00:00
|
|
|
|
2023-12-09 14:47:03 +00:00
|
|
|
export default {
|
|
|
|
|
|
|
|
props: {
|
|
|
|
featuresOnly: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data: () => ({}),
|
|
|
|
|
2023-12-09 16:02:23 +00:00
|
|
|
setup () {
|
2024-01-16 14:00:22 +00:00
|
|
|
const isDark = darkModeEnabled()
|
2023-12-09 16:02:23 +00:00
|
|
|
return {
|
|
|
|
isDark
|
2023-12-09 14:47:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted () {
|
|
|
|
this.loadScript()
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
loadScript () {
|
|
|
|
if (process.server) return
|
|
|
|
const script = document.createElement('script')
|
|
|
|
script.setAttribute('src', 'https://testimonial.to/js/iframeResizer.min.js')
|
|
|
|
document.head.appendChild(script)
|
|
|
|
script.addEventListener('load', function () {
|
|
|
|
window.iFrameResize({
|
|
|
|
log: false,
|
|
|
|
checkOrigin: false
|
|
|
|
}, '#testimonialto-carousel-all-notionforms')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|