<script type="text/javascript" nonce="{{ nonceHash }}">
window['{{ scHash }}addRigths'] = () => {
let divFooterRightsSave = document.querySelector('.footer-rights');
if(divFooterRightsSave){
divFooterRightsSave.remove();
}
let body = document.querySelector('body');
let brand = '{{ client.brand }}';
let year = '{{ year }}';
let text = '{{ getLanguage("all_rights", "ead_rights") }}';
let divFooterRights = document.createElement('div');
let divInfoRights = document.createElement('div');
let divLogoRights = document.createElement('div');
let a = document.createElement('a');
let logo1 = document.createElement('img');
let logo2 = document.createElement('img');
a.setAttribute('title', 'Plataforma EAD');
a.setAttribute('href', 'https://eadplataforma.com/?src={{ actualDomain }}');
a.setAttribute('target', '_blank');
logo1.setAttribute('src', '{{ cdn }}img/ead-logo.svg');
logo2.setAttribute('src', '{{ cdn }}img/ead-logo-white.svg');
logo1.setAttribute('alt', 'Plataforma EAD');
logo2.setAttribute('alt', 'Plataforma EAD');
a.appendChild(logo1);
a.appendChild(logo2);
divLogoRights.appendChild(a);
divInfoRights.textContent = `${ brand } © ${ year } - ${text}`;
divFooterRights.appendChild(divInfoRights);
divFooterRights.appendChild(divLogoRights);
divInfoRights.classList.add('info-name-date');
divLogoRights.classList.add('logo-footer');
divFooterRights.classList.add('footer-rights');
let addImportant = (el, prop, value) => {
el.setAttribute('style', `${el.style.cssText}
${prop} : ${value} !important;`);
}
addImportant(divLogoRights, 'display', 'flex');
body.appendChild(divFooterRights);
let observer = new MutationObserver(function(e){
if(window['{{ scHash }}addRigths']){
window['{{ scHash }}addRigths']();
}
});
observer.observe(divFooterRights, { attributes: true, childList: true, subtree: true });
}
window['{{ scHash }}addRigths']();
</script>