suanhagiare - Abre.bio
(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'8e6001838c46d77f',t:'MTczMjE4NTA0My4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
/* Some global variables */
window.altum = {};
let global_token = document.querySelector('input[name="global_token"]').value;
let site_url = document.querySelector('input[name="global_site_url"]').value;
let url = document.querySelector('input[name="global_url"]').value;
let decimal_point = document.querySelector('[name="global_number_decimal_point"]').value;
let thousands_separator = document.querySelector('[name="global_number_thousands_separator"]').value;
/* Background backdrop fix on modal */
let backdrop_filter = null;
$('.modal').on('show.bs.modal', function () {
backdrop_filter = document.querySelector('body').style.backdropFilter;
document.querySelector('body').style.backdropFilter = '';
});
$('.modal').on('hide.bs.modal', function () {
document.querySelector('body').style.backdropFilter = backdrop_filter;
});
/* Internal tracking for biolink page blocks */
document.querySelectorAll('a[data-track-biolink-block-id]').forEach(element => {
element.addEventListener('click', event => {
let biolink_block_id = event.currentTarget.getAttribute('data-track-biolink-block-id');
navigator.sendBeacon(`${site_url}l/link?biolink_block_id=${biolink_block_id}&no_redirect`);
});
});
/* Fix CSS when using scroll for background attachment on long content */
if(document.body.offsetHeight > window.innerHeight) {
let background_attachment = document.querySelector('body').style.backgroundAttachment;
if(background_attachment == 'scroll') {
document.documentElement.style.height = 'auto';
}
}
window.addEventListener('load', () => {
let language_code = document.documentElement.getAttribute('lang');
let language_direction = document.documentElement.getAttribute('dir');
let translations = {};
translations[language_code] = {
consentModal: {
title: "N\u00f3s usamos cookies \ud83c\udf6a",
description: "Usamos alguns cookies (com gotas de chocolate) para te fornecer uma boa experi\u00eancia, saiba mais na.
x server