4
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-93941248-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
84
| <![CDATA[<script type="text/javascript">
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
// JavaScript Document
// alterar tamanhjo da fonte
var tgs = new Array( 'div','td','tr','select','a', 'p', 'span');
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;
function ts( trgt,inc )
{
if (!document.getElementById) return
var d = document,cEl = null,sz = startSz,i,j,cTags;
sz += inc;
if ( sz < 0 ) sz = 0;
if ( sz > 4 ) sz = 4;
startSz = sz;
if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
cEl.style.fontSize = szs[ sz ];
for ( i = 0 ; i < tgs.length ; i++ )
{
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0 ; j < cTags.length ; j++ )
{
cTags[ j ].style.fontSize = szs[ sz ];
}
}
}
//-----------------//////////////////////////////////
//----Alterar tipo de fonte ---------------------
var startFm=0;
function AlteraFonte(trgt,inc)
{
var fontes = new Array( 'Humanst521 BT','Calibri','Times','Arial');
if (!document.getElementById) return
var d = document,cEl = null,sz = startFm,i,j,cTags;
sz += inc;
if ( sz < 0 ) sz = 0;
if ( sz > 3 ) sz = 0;
startFm = sz;
if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
cEl.style.fontFamily = fontes[ sz ];
for ( i = 0 ; i < tgs.length ; i++ )
{
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0 ; j < cTags.length ; j++ )
{
cTags[ j ].style.fontFamily = fontes[ sz ];
}
}
}
/////////////------------------/////////////////
//----Alterar cor fundo e fonte ---------------------
var startCo=0;
function AlteraContraste(trgt,inc)
{
//var fontes = new Array( 'Humanst521 BT','Calibri','Times','Arial');
if (!document.getElementById) return
if ( inc == 1 ) // contraste escuro
{
if ( !( cEl = document.getElementById( trgt )) ) cEl = document.getElementsByTagName( trgt )[ 0 ];
//cEl.style.fontFamily = fontes[ sz ];
for ( i = 0 ; i < tgs.length ; i++ )
{
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0 ; j < cTags.length ; j++ )
{
cTags[ j ].style.color = "white";
cTags[ j ].style.backgroundColor= "#000000";
//cTags[ j ].style.border= "solid";
/*document.getElementById('Table_menu').style.borderRightStyle='solid';
document.getElementById('Table_menu').style.borderRightColor='red';*/
}
}
}
if ( inc == 2 ) // contraste normal
{
history.go(0);
}
}
/////////////------------------/////////////////
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
jQuery(document).ready(function (){
jQuery('.advancedSelect').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"Digite ou selecione algumas op\u00e7\u00f5es","placeholder_text_single":"Selecione uma op\u00e7\u00e3o","no_results_text":"Sem resultados correspondentes"});
});
jQuery(document).ready(function() {
var value, searchword = jQuery('#mod-finder-searchword131');
// Get the current value.
value = searchword.val();
// If the current value equals the default value, clear it.
searchword.on('focus', function ()
{
var el = jQuery(this);
if (el.val() === 'Pesquisar...')
{
el.val('');
}
});
// If the current value is empty, set the previous value.
searchword.on('blur', function ()
{
var el = jQuery(this);
if (!el.val())
{
el.val(value);
}
});
jQuery('#mod-finder-searchform131').on('submit', function (e)
{
e.stopPropagation();
var advanced = jQuery('#mod-finder-advanced131');
// Disable select boxes with no value selected.
if (advanced.length)
{
advanced.find('select').each(function (index, el)
{
var el = jQuery(el);
if (!el.val())
{
el.attr('disabled', 'disabled');
}
});
}
});
var suggest = jQuery('#mod-finder-searchword131').autocomplete({
serviceUrl: '/index.php/component/finder/?task=suggestions.suggest&format=json&tmpl=component',
paramName: 'q',
minChars: 1,
maxHeight: 400,
width: 300,
zIndex: 9999,
deferRequestBy: 500
});});
</script>]]>
|