18
| <![CDATA[<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.8&appId=1012021388926896";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>]]>
|
601
| <![CDATA[<script type="text/javascript">
var $btnAumentar = $("#btnAumentar");
var $btnDiminuir = $("#btnDiminuir");
var $elemento = $("body").find("*"); //encontra todos os elementos dentro do #content
var fonts = [];
var orig = [];
var font = parseInt(sessionStorage.getItem("tamanhofont[0]"));
function obterTamanhoFonte() {
for (var i = 0; i < $elemento.length; i++) {
fonts.push(parseFloat($elemento.eq(i).css('font-size')));
}
}
obterTamanhoFonte();
$btnAumentar.on('click', function() {
for (var i = 0; i < $elemento.length; i++) {
if(orig[i]==null){
orig[i]=fonts[i];
}
++fonts[i];
sessionStorage.setItem("tamanhofont["+i+"]", fonts[i]);
$elemento.eq(i).css('font-size', fonts[i]);
}
});
$btnDiminuir.on('click', function() {
for (var i = 0; i < $elemento.length; i++) {
if(orig[i]==null){
orig[i]=fonts[i];
}
--fonts[i];
sessionStorage.setItem("tamanhofont["+i+"]", fonts[i]);
$elemento.eq(i).css('font-size', fonts[i]);
}
});
$(window).load(function (){
for (var i = 0; i < $elemento.length; i++) {
$elemento.eq(i).css('font-size', font);
}
});
$("#btnNormal").on("click",function(){for (
var i = 0; i < $elemento.length; i++) {
sessionStorage.removeItem("tamanhofont["+i+"]");
$elemento.eq(i).css('font-size', orig[i]);
}
})
function contraste(){
var contraste="";
contraste+='<style media="screen">';
contraste+='*,h4.heading, header .navbar, #content, section.callaction, header .navbar p,';
contraste+='#content p, section.callaction p, header .navbar h1, #content h1, section.callaction h1,';
contraste+='header .navbar h2, #content h2, section.callaction h2, header .navbar h3, #content h3, section.callaction h3,';
contraste+='header .navbar h4, #content h4, section.callaction h4,.navbar-default .navbar-collapse, .navbar-default .navbar-form, .menu_, #sub-footer, header .top,#featured.bg,footer, footer a, footer ul.link-list li a,header .nav li .dropdown-menu li a';
contraste+='header .navbar-nav > li > ul > li,.dropdown-menu{';
contraste+='background:#000 !important;';
contraste+='background-color:#000 !important;';
contraste+='color:#fff !important;';
contraste+='border-bottom: 1px solid #000 !important;';
contraste+='}';
contraste+='</style>';
$(".contraste").html(contraste);
if($(".btnContraste").attr("data-id")=='true'){
$(".btnContraste").attr("data-id","false");
$(".contraste").html("");
sessionStorage.setItem("contraste", "false");
}else{
$(".btnContraste").attr("data-id","true");
$(".contraste").html(contraste);
sessionStorage.setItem("contraste", "true");
}
}
$(document).ready(function(){
var value_contraste=sessionStorage.getItem("contraste");
if(value_contraste=="true"){
contraste();
}
$(".btnContraste").on("click",function(){
return contraste();
});
});
</script>]]>
|