110
| <![CDATA[<a href="http://barretos.sp.gov.br/noticias" class="btn gray" style="margin-top: 16px">+ NotÃcias</a>]]>
|
245
| <![CDATA[<img src="http://barretos.sp.gov.br/public/images/banner-vagas.jpg" alt="Vagas de Emprego - PAT Barretos" style="max-width: 287px">]]>
|
254
| <![CDATA[<img src="http://barretos.sp.gov.br/public/images/banner-multas.jpg" alt="Consulta de Multas de Trânsito" style="max-width: 287px">]]>
|
257
| <![CDATA[<img src="http://barretos.sp.gov.br/public/images/banner-criadouro-zero.jpg" alt="Programa Criadouro Zero" style="max-width: 287px">]]>
|
51
| <![CDATA[<script>
const widthScreen = window.innerWidth ||
document.documentElement.clientWidth ||
document.body.clientWidth;
const homeVideo = document.getElementById('home-first');
if (widthScreen > 768) {
const contentVideo = `<video autoplay muted loop id="home-video">
<source src="http://barretos.sp.gov.br/public/media/videos/home.mp4" type="video/mp4">
</video>
<div class="container">
<a href="http://barretos.sp.gov.br/"><img src="http://barretos.sp.gov.br/public/images/logo-prefeitura-barretos.png" alt="Brasão - Prefeitura de Barretos"></a>
<div class="social-home social flex">
<a href="https://www.facebook.com/prefeituramunicipal.barretos/" target="_blank">
<img src="http://barretos.sp.gov.br/public/images/facebook.svg" alt="">
</a>
<a href="https://www.instagram.com/prefeituradebarretos/" target="_blank">
<img src="http://barretos.sp.gov.br/public/images/instagram.svg" alt="">
</a>
<a href="#" target="_blank">
<img src="http://barretos.sp.gov.br/public/images/youtube.svg" alt="">
</a>
<a href="https://twitter.com/pref_barretos" target="_blank">
<img src="http://barretos.sp.gov.br/public/images/twitter.svg" alt="">
</a>
</div>
</div>`;
homeVideo.innerHTML = contentVideo;
}
</script>]]>
|
114
| <![CDATA[<script>
fetchData('news/?page=1&perpage=11&highlight=1').then(response => {
const sliderList = document.querySelector('#slider .splide__list');
const boxNewsFirst = document.querySelector('.news-bottom.first');
const boxNewsSecond = document.querySelector('.news-bottom.second');
let slide = '';
let newsFirst = '';
let newsSecond = '';
let x = 0;
response.data.forEach(obj => {
let {
idNoticia,
nomeCategoria,
tituloNoticia,
fotoPrincipal
} = obj;
if (x < 7)
slide += `<li class="splide__slide">
<a href="${env.URL + 'noticia/' + idNoticia + '/' + slugify(tituloNoticia)}">
<span class="title">${tituloNoticia}</span>
<img data-splide-lazy="${env.URL_TMP}arquivosNoticiasInterna/${fotoPrincipal}" alt="${tituloNoticia}">
</a>
</li>`;
else if (x < 9)
newsFirst += `<article class="second">
<a href="${env.URL + 'noticia/' + idNoticia + '/' + slugify(tituloNoticia)}">
<img src="${env.URL_TMP}arquivosNoticiasInterna/${fotoPrincipal}" alt="${tituloNoticia}">
<span class="title">${tituloNoticia}</span>
</a>
</article>`;
else
newsSecond += `<article class="second">
<a href="${env.URL + 'noticia/' + idNoticia + '/' + slugify(tituloNoticia)}">
<img src="${env.URL_TMP}arquivosNoticiasInterna/${fotoPrincipal}" alt="${tituloNoticia}">
<span class="title">${tituloNoticia}</span>
</a>
</article>`;
/*
if(x < 7)
slide += `<li class="splide__slide">
<a href="${env.URL + 'noticia/' + idNoticia + '/' + slugify(tituloNoticia)}">
<span class="title">${tituloNoticia}</span>
<span class="category">${nomeCategoria}</span>
<img src="${env.URL_TMP}arquivosNoticiasInterna/${fotoPrincipal}" alt="${tituloNoticia}">
</a>
</li>`;
else
news += `<article class="second">
<a href="${env.URL + 'noticia/' + idNoticia + '/' + slugify(tituloNoticia)}">
<img src="${env.URL_TMP}arquivosNoticiasInterna/${fotoPrincipal}" alt="${tituloNoticia}">
<span class="category">${nomeCategoria}</span>
<span class="title">${tituloNoticia}</span>
</a>
</article>`;
*/
x++;
});
sliderList.innerHTML = slide;
boxNewsFirst.innerHTML = newsFirst;
boxNewsSecond.innerHTML = newsSecond;
new Splide('#slider', {
autoplay: true,
interval: 3000,
rewind: true,
type: 'slide',
/* arrows: false, */
lazyLoad: 'nearby'
}).mount();
});
</script>]]>
|
356
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|