65
| <![CDATA[<script type="text/javascript">
(function () {
var Contrast = {
storage: 'contrastState',
cssClass: 'contrast',
currentState: null,
check: checkContrast,
getState: getContrastState,
setState: setContrastState,
toogle: toogleContrast,
updateView: updateViewContrast
};
window.toggleContrast = function () { Contrast.toogle(); };
Contrast.check();
function checkContrast() {
this.updateView();
}
function getContrastState() {
return localStorage.getItem(this.storage) === 'true';
}
function setContrastState(state) {
localStorage.setItem(this.storage, '' + state);
this.currentState = state;
this.updateView();
}
function updateViewContrast() {
var body = document.body;
if (!body) return;
if (this.currentState === null)
this.currentState = this.getState();
if (this.currentState)
body.classList.add(this.cssClass);
else
body.classList.remove(this.cssClass);
}
function toogleContrast() {
this.setState(!this.currentState);
}
})();
</script>]]>
|
429
| <![CDATA[<script id="rendered-js" >
var $affectedElements = $("p, h1, h2, h3, h4, h5, h6, span, div, li, button, input, select"); // Can be extended, ex. $("div, p, span.someClass")
// Storing the original size in a data attribute so size can be reset
$affectedElements.each(function () {
var $this = $(this);
$this.data("orig-size", $this.css("font-size"));
});
$("#btn-aumenta").click(function () {
changeFontSize(1);
});
$("#btn-diminui").click(function () {
changeFontSize(-1);
});
$("#btn-padrao").click(function () {
$affectedElements.each(function () {
var $this = $(this);
$this.css("font-size", $this.data("orig-size"));
});
});
function changeFontSize(direction) {
$affectedElements.each(function () {
var $this = $(this);
$this.css("font-size", parseInt($this.css("font-size")) + direction);
});
}
//# sourceURL=pen.js
</script>]]>
|
463
| <![CDATA[<script type="text/javascript">
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
</script>]]>
|
471
| <![CDATA[<script type="text/javascript">
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="collapse"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
</script>]]>
|
480
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|
485
| <![CDATA[<script>
//Get the button
var mybutton = document.getElementById("myBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "block";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>]]>
|
507
| <![CDATA[<script>
window.onscroll = function () {
menuCor();
};
function menuCor() {
if (document.body.scrollTop > 60 || document.documentElement.scrollTop > 200) {
document.getElementById("menu-horizontal").className = "navbar navbar-expand-lg sticky-top navbar-dark menuCor";
}else{
document.getElementById("menu-horizontal").className = "navbar navbar-expand-lg navbar-light menuNormal";
}
}
</script>]]>
|
520
| <![CDATA[<script>
if (window.screen.width < 576) {
document.getElementById("acessibilidade").className = "collapse show";
mybutton.style.display = "none";
}else{
document.getElementById("acessibilidade").className = "collapse";
mybutton.style.display = "block";
}
document.body.onresize = function() {
if (document.body.clientWidth < 576) {
//if (window.screen.width< 576) {
document.getElementById("acessibilidade").className = "collapse show";
mybutton.style.display = "none";
//document.getElementById("st-3").className = "st-sticky-share-buttons st-right st-toggleable";
}else{
document.getElementById("acessibilidade").className = "collapse";
mybutton.style.display = "block";
//document.getElementById("st-3").className = "st-sticky-share-buttons st-right st-toggleable d-none";
}
};
</script>]]>
|