18
| <![CDATA[<script type="text/javascript" src="/acervo/static/js/choice-support.js"> </script>]]>
|
56
| <![CDATA[<script>
$(document).ready(function(){
$(function () {
$('[data-toggle="tooltip"]').tooltip();
})
});
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var urlBase="https://intranet.unasus.gov.br/statistics/";
_paq.push(["setTrackerUrl", urlBase+"piwik.php"]);
_paq.push(["setSiteId", "6"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=urlBase+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>]]>
|
244
| <![CDATA[<script src="/acervo/ares/template/navbar/js/jdenticon-2.2.0.js">
</script>]]>
|
337
| <![CDATA[<script>
$(document).ready(function(){
const minWidth = 990;
if($( document ).width() > minWidth)
{
let typesAndIds = new Map([
['Áudio', 'total-audio'],
['Documento institucional', 'total-documento-institucional'],
['Imagem', 'total-imagem'],
['Texto', 'total-texto'],
['Trabalho de conclusão de curso', 'total-trabalho-de-conclusao-de-curso'],
['Vídeo', 'total-video'],
['Material multimídia', 'total-material-multimidia']
]);
typesAndIds.forEach(function(value, key, map) {
let keyEncoded = encodeURI(key);
$.ajax({
method: "GET",
url: "/acervo/json/get-stats",
data: {
field: "type",
core: "search",
value: keyEncoded
}
})
.done(function (total) {
if (total) {
$("#" + value).text(Math.round(total));
let hrefString = '/acervo/simple-search?query=&rpp=10&sort_by=score&order=desc&location=&query=&filtername=type&filtertype=equals&filterquery=' + key + '&rpp=10&sort_by=score&order=desc';
$("#" + value).attr("href", encodeURI(hrefString));
}
});
});
}
});
</script>]]>
|
1054
| <![CDATA[<script>
$(document).ready(function(){
function loadTotals() {
let typesAndIds = new Map([
['field=archived&value=true&core=search', 'ares-in-number-total'],
['field=lastDownloads&core=piwik-downloads', 'ares-in-number-total-download'],
['field=lastDownloads&core=piwik', 'ares-in-number-total-visits'],
]);
typesAndIds.forEach(function (value, key, map) {
let keyEncoded = encodeURI(key);
$.ajax({
method: "GET",
url: "/acervo/json/get-stats?" + key
})
.done(function (total) {
if (total) {
$("#" + value).text(Math.round(total).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.'));
}
});
});
}
loadTotals();
});
</script>]]>
|