206
| <![CDATA[<script type="text/javascript">
// WORKAROUND FOR ISSUE: #873
kQuery(function($)
{
$.magnificPopup.instance._onFocusIn = function(e)
{
// Do nothing if target element is select2 input
if( $(e.target).hasClass('select2-search__field') ) {
return true;
}
// Else call parent method
$.magnificPopup.proto._onFocusIn.call(this,e);
};
});
kQuery(function($){
$('[data-k-modal]').each(function(idx, el) {
var el = $(el);
var data = el.data('k-modal');
var options = {"type":"image"};
if (data) {
$.extend(true, options, data);
}
el.magnificPopup(options);
});
});
kQuery(function($) {
var addHiddenFields = function(button) {
var field, i = 0, fields = ['.k-js-tag-search', '.k-js-category-search'];
for (; i < fields.length; i++) {
field = $(fields[i]);
if (field.length && !field.val()) {
var input = $('<input type="hidden" />')
.attr('name', field.attr('name').replace('[]', ''))
.val('');
$(button[0].form).append(input);
}
}
};
$('.k-js-search-submit').click(function() {
addHiddenFields($(this));
});
$('.k-js-search-reset').click(function(event) {
event.preventDefault();
var button = $(this),
form = button[0].form;
$('.k-filters')
.find('input:not(:checkbox), textarea').val('').end()
.find('select').val(null).trigger('change');
addHiddenFields(button);
$(form).append($('<input type="hidden" />').val('1')
.attr('name', 'filter[reset]'));
form.submit();
});
});
kQuery(function($) {
$('.docman_track_download').on('click', function() {
var el = $(this);
if (typeof window.GoogleAnalyticsObject !== 'undefined' && typeof window[window.GoogleAnalyticsObject] !== 'undefined') {
window[window.GoogleAnalyticsObject]('send', 'event', 'DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10));
}
else if (typeof _gaq !== 'undefined' && typeof _gat !== 'undefined') {
if (_gat._getTrackers().length) {
_gaq.push(function() {
var tracker = _gat._getTrackers()[0];
tracker._trackEvent('DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10));
});
}
}
});
if (typeof _paq !== 'undefined') {
_paq.push(['setDownloadClasses', 'docman_track_download']);
_paq.push(['trackPageView']);
}
});
if (typeof Koowa === 'object' && Koowa !== null) {
if (typeof Koowa.translator === 'object' && Koowa.translator !== null) {
Koowa.translator.loadTranslations({"Play":"Reproduzir","View":"Visualizar","Open":"Abrir"});
}
}
kQuery(function($) {
$('a.docman_download__button').downloadLabel({"force_download":"0","gdocs_supported_extensions":["ogg","doc","docx","xls","xlsx","ppt","pptx","pages","ai","psd","tiff","dxf","svg","eps","ps","ttf","xps"],"gdocs_preview":0});
});
var sp_preloader = '0';
var sp_gotop = '0';
var sp_offanimation = 'drarkplus';
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
window.addEvent((window.webkit) ? 'load' : 'domready', function() {
window.rokajaxsearch = new RokAjaxSearch({
'results': 'Results',
'close': '',
'websearch': 0,
'blogsearch': 0,
'imagesearch': 0,
'videosearch': 0,
'imagesize': 'MEDIUM',
'safesearch': 'MODERATE',
'search': 'Search...',
'readmore': 'Read more...',
'noresults': 'No results',
'advsearch': 'Advanced search',
'page': 'Page',
'page_of': 'of',
'searchlink': 'http://itirapina.sp.gov.br/p2n/index.php?option=com_search&view=search&tmpl=component',
'advsearchlink': 'http://itirapina.sp.gov.br/p2n/index.php?option=com_search&view=search',
'uribase': 'http://itirapina.sp.gov.br/p2n/',
'limit': '10',
'perpage': '3',
'ordering': 'newest',
'phrase': 'any',
'hidedivs': '',
'includelink': 1,
'viewall': 'View all results',
'estimated': 'estimated',
'showestimated': 1,
'showpagination': 1,
'showcategory': 1,
'showreadmore': 1,
'showdescription': 1
});
});
</script>]]>
|
938
| <![CDATA[<script>
jQuery(document).ready(function(){
checkCookie();
jQuery('.accessibility_box').hide();
jQuery('.text_spacer').remove();
var isMobile = false; //initiate as false
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))){
isMobile = true;
jQuery(".accessibility_box").addClass("mobileacc");
jQuery('.cursor_resizer').remove();
}
jQuery('.accessibility_open').click(function(){
jQuery('.accessibility_box').fadeIn();
jQuery(this).fadeOut();
});
jQuery('.accessibility_box_close_button').click(function(){
jQuery('.accessibility_box').fadeOut();
jQuery('.accessibility_open').fadeIn();
});
jQuery('input[name=dreadibility]').change(function(){
$dreadibilityval = jQuery(this).val();
switch($dreadibilityval){
case 'enable':
jQuery('*').addClass('dys_enabled');
jQuery('.dreadibilitydisablelabel').show();
jQuery('#allval').attr('data-dysenabled','true');
break;
case 'disable':
jQuery('*').removeClass('dys_enabled');
jQuery('#allval').attr('data-dysenabled','false');
break;
}
saveMyAccessSettings();
});
jQuery('input[name=grayscaler]').change(function(){
$grayscalerval = jQuery(this).val();
switch($grayscalerval){
case 'enable':
jQuery('div,p,span,content,article,form').addClass('grayscale_enabled');
jQuery('.grayscaledisablelabel').show();
jQuery('#allval').attr('data-grayscale','true');
break;
case 'disable':
jQuery('div,p,span,content,article,form').removeClass('grayscale_enabled');
jQuery('#allval').attr('data-grayscale','false');
jQuery('input.grayscalerreset').
break;
}
saveMyAccessSettings();
});
jQuery('input[name=hct_one]').change(function(){
$hctoneval = jQuery(this).val();
switch($hctoneval){
case 'enable':
jQuery('div,p,span,content,article,form,button,a').addClass('hctypeonee');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypetwoo');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypethreee');
jQuery('.hct_one_label').show();
jQuery('#allval').attr('data-hctthree','false');
jQuery('#allval').attr('data-hctone','true');
jQuery('#allval').attr('data-hcttwo','false');
break;
case 'disable':
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypeonee');
jQuery('#allval').attr('data-hctone','false');
break;
}
saveMyAccessSettings();
});
jQuery('input[name=hct_two]').change(function(){
$hcttwoval = jQuery(this).val();
switch($hcttwoval){
case 'enable':
jQuery('div,p,span,content,article,form,button,a').addClass('hctypetwoo');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypeonee');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypethreee');
jQuery('.hct_two_label').show();
jQuery('#allval').attr('data-hctthree','false');
jQuery('#allval').attr('data-hctone','false');
jQuery('#allval').attr('data-hcttwo','true');
break;
case 'disable':
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypetwoo');
jQuery('#allval').attr('data-hcttwo','false');
break;
}
saveMyAccessSettings();
});
jQuery('input[name=hct_three]').change(function(){
$hctthreeval = jQuery(this).val();
switch($hctthreeval){
case 'enable':
jQuery('div,p,span,content,article,form,button,a').addClass('hctypethreee');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypeonee');
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypetwoo');
jQuery('.hct_three_label').show();
jQuery('#allval').attr('data-hctthree','true');
jQuery('#allval').attr('data-hctone','false');
jQuery('#allval').attr('data-hcttwo','false');
break;
case 'disable':
jQuery('div,p,span,content,article,form,button,a').removeClass('hctypethreee');
jQuery('#allval').attr('data-hctthree','false');
break;
}
saveMyAccessSettings();
});
jQuery('input[name=cursorresizer]').change(function(){
$cursorsize = jQuery(this).val();
console.log($cursorsize);
jQuery('#allval').attr('data-cursorsize',''+$cursorsize+'');
switch($cursorsize){
case 'minicursor':
jQuery('*').addClass(''+$cursorsize+'');
jQuery('*').removeClass('largecursor,xlargecursor,normalcursor');
break;
case 'normalcursor':
jQuery('*').addClass(''+$cursorsize+'');
jQuery('*').removeClass('largecursor xlargecursor minicursor');
break;
case 'largecursor':
jQuery('*').addClass(''+$cursorsize+'');
jQuery('*').removeClass('normalcursor xlargecursor minicursor');
break;
case 'xlargecursor':
jQuery('*').addClass(''+$cursorsize+'');
jQuery('*').removeClass('.normalcursor largecursor minicursor');
break;
}
saveMyAccessSettings();
});
jQuery('body').AccessibilityFontResizer({
increaseTimes:5,
reduceTimes:5
});
jQuery('body').AccessibilityLetterSpacer({
increaseTimes:4,
reduceTimes:4,
});
// Write your custom JS
});
</script>]]>
|