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>
|
2023-12-09 16:02:23 +00:00
|
|
|
import {useDark} from "@vueuse/core";
|
|
|
|
|
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 () {
|
|
|
|
const isDark = useDark()
|
|
|
|
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>
|