HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/themes/klasik/js/custom.js
(function () {
 "use strict";
jQuery(document).ready(function(){
	
	//=================================== FADE EFFECT ===================================//
	
	jQuery('.klasik-pf-img a').hover(
		function() {
			jQuery(this).find('.rollover').stop().fadeTo(500, 0.6);
		},
		function() {
			jQuery(this).find('.rollover').stop().fadeTo(500, 0);
		}
	
	);
	
	runcamera();
	runflexslider();
	runviewportChecker();
});


/*** Animated Effect ***/
function runviewportChecker(){
	jQuery("*[data-animate]")
	  .addClass('hidden')
	  .each(function(i, e){
		jQuery(this)
		  .viewportChecker({
			classToAdd: 'visible animated ' + jQuery(this).data('animate'),
			offset: 200
		});
	  });
}


function runflexslider(){
	//=================================== FLEXSLIDER ===================================//
	jQuery('.flexslider').flexslider({
		animation: "fade",
		touch:true,
		animationDuration: 6000,
		directionNav: true,
		controlNav: false
	});
	
}

function runcamera(){
	if(jQuery('#slideritems').length){
		jQuery('#slideritems').camera({
			height: '28.65%', /* to set the slider height */
			minHeight: '250px', /* to set minimum the slider height */
			fx: 'simpleFade', /* to set the slider effect */
			autoAdvance: true,
			pagination: false,
			navigation:true,
			navigationHover: true,
			playPause: false,
			thumbnails: false,
			loader: 'none',
			imagePath: '../images/'
		});
	}
}

})(jQuery);