.flex-video {display:none;}
document.addEventListener('DOMContentLoaded', function () {
var referer = document.referrer;
console.log('referer', referer);
var getUrlParam = function(name) {
var regexStr = '[\?&]' + name + '=([^&#]*)';
var results = new RegExp(regexStr, 'i').exec(window.location.href);
return results != undefined ? decodeURIComponent(results[1]) : false;
};
var formTitle = document.querySelector('.form-title');
formTitle.style.display = 'none';
var video = document.querySelector('.flex-video');
var form = document.querySelector('#_bl_web_form-8f121ce07d74717e0b1f21d122e04521');
var webFormID = getUrlParam("web_form_id");
if('8f121ce07d74717e0b1f21d122e04521' === webFormID && -1 !== referer.indexOf('hrd.brainlead.it/3.0.0/web_forms/subscription')) {
form.remove();
setTimeout(function () {
formTitle.innerHTML = '
Video - Siamo tutti in ballo';
formTitle.style.display = 'block';
video.style.display = 'block';
console.log(webFormID);
},800)
} else {
formTitle.style.display = 'block';
video.remove();
}
})