const iframe = document.getElementById('sellcarIFRAME');
const urlParams = new URLSearchParams(window.location.search);
const carIdParam = urlParams.get('carId');
let carId = '';
if(carIdParam){
carId = '&carId='+carIdParam;
}
iframe.style.width="100vw";
iframe.style.height="100vh";
iframe.src = "https://vehis.pl/?brokerId=110"+carId;
iframe.onload = function(){
const data = {
color: "#fea00a",
hideScroll: 'true'
}
iframe.contentWindow.postMessage(data, 'https://vehis.pl/?brokerId=110');
}