61
| <![CDATA[<script>
const ROOT = "";
const COMPANY_NAME = "Prefeitura de Progresso";
const TITLE = " Feira do produtor será nas quintas e sábados | Prefeitura de Progresso ";
const HOME = "/";
const MAPA_SITE = "/mapa-do-site";
const CURRENT_PATH = "/artigo/feira-do-produtor-sera-nas-quintas-e-sabados";
const URL_POPUP = "";
const URL_SEARCH = "/buscarPost";
const CALENDAR_PATH = "/calendar";
</script>]]>
|
787
| <![CDATA[<script>
var parent = document.querySelector(".page-scroll-content-header");
var pageContent = document.querySelector(".ctn-artigo-conteudo");
var corPrimaria = getComputedStyle(document.body).getPropertyValue('--color-primary');
console.log(corPrimaria);
var pageY = 50;
initScrollEffect(parent, corPrimaria, pageContent, pageY);
</script>]]>
|
998
| <![CDATA[<script>
function initScrollEffect(parent, color = getComputedStyle(document.body).getPropertyValue('--color-primary'), content, pageYOnShow = 0) {
var bar = document.createElement("div");
bar.style.height = "5px";
bar.style.width = "0";
bar.style.position = "absolute";
bar.style.top = "100%";
bar.style.backgroundColor = color;
bar.style.left = "0";
bar.style.zIndex = "99999";
bar.style.transition = "0.2s";
bar.classList.add("bar-content-read");
parent.append(bar);
function updateBar(){
var topOffset = content.offsetTop;
var offset = content.offsetHeight;
var curScrollY = window.pageYOffset;
if (pageYOnShow) {
var contentOffsetBottom = content.offsetTop + offset;
if (curScrollY > pageYOnShow) {
parent.classList.add('show');
}
if (curScrollY > contentOffsetBottom || curScrollY <= pageYOnShow) {
parent.classList.remove('show');
}
}
var percentage = curScrollY * 100 / offset;
bar.style.width = percentage + "%";
if (percentage > 100) {
parent.classList.add('complete');
} else {
parent.classList.remove('complete');
}
}
document.addEventListener("scroll", updateBar);
}
</script>]]>
|
1047
| <![CDATA[<script>
var parent = document.querySelector(".page-scroll-content-header");
var pageContent = document.querySelector(".ctn-artigo-conteudo");
var corPrimaria = getComputedStyle(document.body).getPropertyValue('--color-primary');
console.log(corPrimaria);
var pageY = 50;
initScrollEffect(parent, corPrimaria, pageContent, pageY);
</script>]]>
|