Utilisation de typeform en mode popup

pull/230/head
Mael 2018-05-03 15:46:24 +02:00 committed by Johan Girod
parent 13c1a9a712
commit d8fb70d6bc
1 changed files with 6 additions and 2 deletions

View File

@ -15,14 +15,18 @@ export default ({ hiddenVariables }) => (
<div
className="typeform-widget"
data-url={url(hiddenVariables)}
style={{ width: '100%', height: '500px' }}
data-mode="popup"
data-auto-open={true}
data-hide-headers={true}
data-hide-footer={true}
target="_blank"
/>
<Helmet
script={[
{
type: 'text/javascript',
innerHTML:
'(function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })()'
'(function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm_share", b="https://embed.typeform.com/"; if(!gi.call(d,id)){ js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() '
}
]}
/>