120
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#mod_iccalendar_98").highlightToday("show_today");
});
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(window).on('load', function() {
new JCaption('img.caption');
});
window.addEventListener('load', function(){
GN_ContentSlider('gn_slider_1_1', 6000, 'Next', '');
}, false);
</script>]]>
|
463
| <![CDATA[<script type="text/javascript">
(function($){
var icmouse = 'click';
var mouseout = '1';
var icclasstip = '.icevent a';
var icclass = '.iccalendar';
var position = 'center';
var posmiddle = 'top';
var modid = '98';
var modidid = '#98';
var icagendabtn = '.icagendabtn_98';
var mod_iccalendar = '#mod_iccalendar_98';
var template = '.ic_rounded';
var loading = 'carregando...';
var closetxt = 'Fechar';
var tip_type = '1';
var tipwidth = 390;
var smallwidththreshold = 481;
var verticaloffset = 50;
var css_position = '';
var mobile_min_width = 320;
var extra_css = '';
$(document).on('click touchend', icagendabtn, function(e){ e.preventDefault();
url=$(this).attr('href');
$(modidid).html('<div class="icloading_box"><div style="text-align:center;">' + loading + '<\/div><div class="icloading_img"><\/div><\/div>').load(url + ' ' + mod_iccalendar, function(){$('#mod_iccalendar_98').highlightToday();});
});
if (tip_type=='2') { $(document).on(icmouse, this, function(e){
e.preventDefault();
$(".iCaTip").tipTip({maxWidth: "400", defaultPosition: "top", edgeOffset: 1, activation:"hover", keepAlive: true});
});
}
if (tip_type=='1') { $view_width=$(window).width(); if($view_width<smallwidththreshold){ icmouse='click touchend';
}
$(document).on(icmouse, modidid+' '+icclasstip, function(e){
$view_height=$(window).height(); $view_width=$(window).width(); e.preventDefault();
$('#ictip').remove();
$parent=$(this).parent();
$tip=$($parent).children(modidid+' .spanEv').html();
if ($view_width < smallwidththreshold)
{
css_position = 'fixed';
$width_px = Math.max(mobile_min_width,$view_width); $width = '100%';
$pos = '0px';
$top = '0px';
extra_css='border:0;border-radius:0;height:100%;box-shadow:none;margin:0px;padding:10px;min-width:'+mobile_min_width+'px;overflow-y:scroll;padding:0;'; }
else
{
css_position = 'absolute';
$width_px = Math.min($view_width, tipwidth);
$width = $width_px+'px';
switch(position) {
case 'left':
$pos=Math.max(0,$(modidid).offset().left-$width_px-10)+'px';
break;
case 'right':
$pos=Math.max(0,Math.min($view_width-$width_px,$(modidid).offset().left+$(modidid).width()+10))+'px';
break;
default: $pos=Math.ceil(($view_width-$width_px)/2)+'px';
break;
}
if (posmiddle === 'top')
{
$top = Math.max(0,$(modidid).offset().top-verticaloffset)+'px'; }
else
{
$top = Math.max(0,$(modidid).offset().top+$(modidid).height()-verticaloffset)+'px'; }
}
$('body').append('<div style="display:block; position:'+css_position+'; width:'+$width+'; left:'+$pos+'; top:'+$top+';'+extra_css+'" id="ictip"> '+$(this).parent().children('.date').html()+'<a class="close" style="cursor: pointer;"><div style="display:block; width:auto; height:50px; text-align:right;">' + closetxt + '<\/div></a><span class="clr"></span>'+$tip+'<\/div>');
$(document).on('click touchend', '.close', function(e){
e.preventDefault();
$('#ictip').remove();
});
if (mouseout == '1')
{
$('#ictip')
.mouseout(function() {
// $( "div:first", this ).text( "mouse out" );
$('#ictip').stop(true).fadeOut(300);
})
.mouseover(function() {
// $( "div:first", this ).text( "mouse over" );
$('#ictip').stop(true).fadeIn(300);
});
}
});
}
}) (jQuery);
</script>]]>
|