grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026/** *------------------------------------------------------------------------------ * @package T3 Framework for Joomla! *------------------------------------------------------------------------------ * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @authors JoomlArt, JoomlaBamboo, (contribute to this project at github * & Google group to become co-author) * @Google group: https://groups.google.com/forum/#!forum/t3fw * @Link: http://t3-framework.org *------------------------------------------------------------------------------ */ (function($){ $(document).ready(function(){ $(document).click(function(e){ form_container = $('.t3-cpanel.t3-cpanel-search'); idetify_glass = $('.head-search'); if ((!idetify_glass.is(e.target) && idetify_glass.has(e.target).length === 0) && (!form_container.is(e.target) && form_container.has(e.target).length === 0)) { if ($(e.target).parent('#t3-header').has('cpanel-open')) $('#t3-header').removeClass('cpanel-open').addClass('cpanel-close'); } }); //inview events $('.has-inview').bind('inview', function (event, visible, visiblePartX, visiblePartY) { if (visible) { if (visiblePartY == 'top' || visiblePartY == 'both') { $(this).addClass('inview'); } } }); //////////////////////////////// // equalheight for col //////////////////////////////// var ehArray = ehArray2 = [], i = 0; $('.equal-height').each (function(){ var $ehc = $(this); if ($ehc.has ('.equal-height')) { ehArray2[ehArray2.length] = $ehc; } else { ehArray[ehArray.length] = $ehc; } }); for (i = ehArray2.length -1; i >= 0; i--) { ehArray[ehArray.length] = ehArray2[i]; } var equalHeight = function() { for (i = 0; i < ehArray.length; i++) { var $cols = ehArray[i].children().filter('.col'), maxHeight = 0, equalChildHeight = ehArray[i].hasClass('equal-height-child'); // reset min-height if (equalChildHeight) { $cols.each(function(){$(this).children().first().css('min-height', 0)}); } else { $cols.css('min-height', 0); } $cols.each (function() { maxHeight = Math.max(maxHeight, equalChildHeight ? $(this).children().first().innerHeight() : $(this).innerHeight()); }); if (equalChildHeight) { $cols.each(function(){$(this).children().first().css('min-height', maxHeight)}); } else { $cols.css('min-height', maxHeight); } } // store current size $('.equal-height > .col').each (function(){ var $col = $(this); $col.data('old-width', $col.width()).data('old-height', $col.innerHeight()); }); }; equalHeight(); // monitor col width and fire equalHeight setInterval(function() { $('.equal-height > .col').each(function(){ var $col = $(this); if (($col.data('old-width') && $col.data('old-width') != $col.width()) || ($col.data('old-height') && $col.data('old-height') != $col.innerHeight())) { equalHeight(); // break each loop return false; } }); }, 500); // Search Cpanel $('.btn-search').click(function() { if($('.t3-header-wrap').hasClass('cpanel-close')) { $('.t3-header-wrap').addClass('cpanel-open'); $('.t3-header-wrap').removeClass('cpanel-close'); } else { $('.t3-header-wrap').removeClass('cpanel-open'); $('.t3-header-wrap').addClass('cpanel-close'); } }); }); })(jQuery); /* TOOLTIP ================================================== */ jQuery(function ($) { $('[data-toggle=tooltip]').tooltip(); // Back to top $('#back-to-top').on('click', function(){ $("html, body").animate({scrollTop: 0}, 500); return false; }); }); jQuery(function ($) { /* ============================================== Scrolling Effects =============================================== */ new WOW({ boxClass: 'wow', // default animateClass: 'animated', // default offset: 120, // default mobile: false, // default live: true // default }).init(); /* ================================================== Owl Carousel ================================================== */ $(".owl-blog-slider").owlCarousel({ navigation: false, autoHeight: true, slideSpeed: 300, paginationSpeed: 300, singleItem: true, autoPlay: 4000, pagination: false, }); // Custom Navigation Events $(".slider-next").click(function () { owl.trigger('owl.next'); }) $(".slider-prev").click(function () { owl.trigger('owl.prev'); }) //$("a[rel^='prettyPhoto']").prettyPhoto(); $('a[data-gal]').each(function() { jQuery(this).attr('rel', jQuery(this).data('gal')); }); $("a[data-gal^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',slideshow:false,overlay_gallery: false,theme:'light_square',social_tools:false,deeplinking:false}); // Fun Facts function count($this){ var current = parseInt($this.html(), 10); current = current + 1; /* Where 50 is increment */ $this.html(++current); if(current > $this.data('count')){ $this.html($this.data('count')); } else { setTimeout(function(){count($this)}, 50); } } $(".stat-count").each(function() { $(this).data('count', parseInt($(this).html(), 10)); $(this).html('0'); count($(this)); }); });