{"id":1146,"date":"2024-08-06T15:10:35","date_gmt":"2024-08-06T15:10:35","guid":{"rendered":"https:\/\/alloreparation.ca\/obtenir-une-offre-de-prix-instantanee\/"},"modified":"2024-09-26T18:42:59","modified_gmt":"2024-09-26T18:42:59","slug":"devis-instantane","status":"publish","type":"page","link":"https:\/\/alloreparation.ca\/fr\/devis-instantane\/","title":{"rendered":"R\u00e9parez vos Dispositifs avec Confiance: Demandez un Devis Instantan\u00e9!"},"content":{"rendered":"\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<iframe id=\"widget_dEn1e3898S3KuLtE0Krc\" src=\"https:\/\/widget.repairlift.biz\/widget\/dEn1e3898S3KuLtE0Krc?BrandName=AlloReparation&#038;data-thanks-url=https%3A%2F%2Falloreparation.ca%2Fthank-you\" width=\"100%\" frameborder=\"no\" scrolling=\"no\" allow=\"geolocation\" data-thanks-url=\"https:\/\/alloreparation.ca\/thank-you\">\n    \n<\/iframe>\n<script>\n    const queryString = window.location.search;\n    const fullUrl = window.location.href;\n    const urlParams = new URLSearchParams(queryString);\n    const lang = urlParams.get('lang');\n    const mod = urlParams.get('model');\n    const loc = urlParams.get('location')\n    const campaign = urlParams.get('campaign')\n    const fbclid = urlParams.get('fbclid')\n    const gclid = urlParams.get('gclid')\n    const device = urlParams.get('device')\n    let string = '';\n    let el = window.document.getElementById('widget_dEn1e3898S3KuLtE0Krc');\n    if(mod){\n        let dataSrc = el.getAttribute(\"data-src\");\n        if(!dataSrc){\n            dataSrc = el.getAttribute(\"src\")\n            if(loc){\n                el.setAttribute('src',dataSrc+'&model='+mod+'&location='+loc)\n            } else{\n                el.setAttribute('src',dataSrc+'&model='+mod)\n            }\n        }else{\n            if(loc){\n                el.setAttribute('data-src',dataSrc+'&model='+mod+'&location='+loc);\n            } else{\n                el.setAttribute('data-src',dataSrc+'&model='+mod);\n            }\n        }\n    }\n    if(campaign) string = string + '&campaign='+campaign;\n    if(fbclid) string = string + '&fbclid='+fbclid;\n    if(gclid) string = string + '&gclid='+gclid;\n    if(device) string = string + '&device='+device;\n    if(lang) string = string + '&lang='+lang;\n    if(campaign || fbclid || gclid || device || lang){\n        let lastSrc = el.getAttribute(\"data-src\");\n        if(!lastSrc) {\n            lastSrc = el.getAttribute(\"src\")\n            el.setAttribute('src',lastSrc+string);\n        }else{\n            el.setAttribute('data-src',lastSrc+string);\n        }\n    }\n    if(fullUrl){\n        let lastSrc = el.getAttribute(\"data-src\");\n        if(!lastSrc) {\n            lastSrc = el.getAttribute(\"src\")\n            el.setAttribute('src',lastSrc+'&from='+fullUrl);\n        }else{\n            el.setAttribute('data-src',lastSrc+'&from='+fullUrl);\n        }\n    }\n    window.addEventListener('message', function (e) {\n    \/\/ Commented out the automatic scrolling behavior\n    \/\/ window.document.getElementById('widget_dEn1e3898S3KuLtE0Krc').scrollIntoView({ behavior: 'smooth' });\n    \n    if (e.data.indexOf('WIDGET_CONTENT_CHANGED') === 0) {\n        window.document.getElementById('widget_dEn1e3898S3KuLtE0Krc').style.height = e.data.split('|')[1];\n    }\n\n    \/\/ Commented out the scrollTop logic to prevent scrolling\n    \/\/ if (event.data.scrollTop !== undefined) {\n    \/\/    window.scrollTo(0, event.data.scrollTop);\n    \/\/ }\n}, false);\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1146","page","type-page","status-publish","hentry"],"blocksy_meta":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/pages\/1146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/comments?post=1146"}],"version-history":[{"count":8,"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/pages\/1146\/revisions"}],"predecessor-version":[{"id":1459,"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/pages\/1146\/revisions\/1459"}],"wp:attachment":[{"href":"https:\/\/alloreparation.ca\/fr\/wp-json\/wp\/v2\/media?parent=1146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}