PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/distinctdesign/codenwebz.com/website-design-3/js/
Server: Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
IP: 162.0.232.53
Choose File :

Url:
Dir : /home/distinctdesign/codenwebz.com/website-design-3/js/e9custom-public.js

jQuery(document).ready(function( $ ){
// 	$('.popup-toggle-content').click(function() {
// 		$(this).parents('.breakdance-popup').find('.popup-toggled-content').addClass('active');
// 		$(this).parents('.breakdance-popup').find('.popup-toggled-content-hide').addClass('hidden');
// 	});
	
// 	$('.popup-minimize-popup').click(function() {
// 		$(this).parents('.breakdance-popup').find('.popup-toggled-content').removeClass('active');
// 		$(this).parents('.breakdance-popup').find('.popup-toggled-content-hide').removeClass('hidden');
// 	});
	
	/*if(!$('#fired-popup').length) {
		console.log('fired popup is not loaded');
		$('.popup-minimized-fired-button').show();
	} else {
		console.log('fired popup is loaded');
		$('.popup-minimized-fired-button').hide();
	}*/
	
	$('.bde-logo-list img').each(function() {
		let height = $(this).height(),
			width = $(this).width(),
			css_height = '90%',
			ratio = Math.floor(height / width * 100);

		if(ratio < 10) {
		  ratio = 10;
		}
		
		if(ratio > 90) {
		  css_height = '100%';
		} else if(ratio < 90 && ratio >= 80) {
		  css_height = '80%';
		} else if(ratio < 80 && ratio >= 70) {
		  css_height = '80%';
		} else if(ratio < 70 && ratio >= 60) {
		  css_height = '68%';
		} else if(ratio < 60 && ratio >= 50) {
		  css_height = '62%';
		} else if(ratio < 50 && ratio >= 40) {
		  css_height = '58%';
		} else if(ratio < 40 && ratio >= 30) {
		  css_height = '50%';
		} else if(ratio < 30 && ratio >= 20) {
		  css_height = '45%';
		} else if(ratio < 20 && ratio >= 10) {
		  css_height = '35%';
		} else if(ratio < 10) {
		  css_height = '30%';
		}

		$(this).css('height', css_height);
	});
	
	$('.bde-logo-list').each(function() {
		$(this).css('opacity', 1);
	});
	
	function resizeLogos() {
		$('.resize-logo:not(.fadeIn)').each(function() {
			let height = $(this).height(),
				width = $(this).width(),
				ratio = Math.floor(height / width * 10);

			if(ratio < 1) {
			  ratio = 1;
			}

			$(this).addClass('fadeIn image-ratio-' + ratio);
		});
	}
	
	setTimeout(() => {
		resizeLogos();
	}, "1000");
	
	$('.logo-grid .bde-posts-pagination-loadmore-button').click(function() {
		resizeLogos();
		setTimeout(() => {
			resizeLogos();
		}, "200");
	});
	
	
	var projectLogomarkPaths = document.querySelectorAll('.project-icon svg *'),
		projectLogomark = $('.project-icon'),
    	projectLogomarkOffset = null;
	
	if($('.logomark-section').length) {
		projectLogomarkOffset = $('.logomark-section').offset().top;
	}

	$(document).on("scroll", function () {

		if ($(document).scrollTop() > (projectLogomarkOffset - 400) ) {
			if(!projectLogomark.hasClass('active')) {
				projectLogomark.addClass('active');
				
				projectLogomarkPaths.forEach(p => {

				  var svgIconPathLen = Math.round(p.getTotalLength() );
				  var svgIcon = document.querySelector('.project-icon');

				  p.setAttribute("stroke-dasharray", svgIconPathLen);
					  p.setAttribute("stroke-dashoffset", svgIconPathLen);

					setTimeout(() => {   		    svgIcon.classList.add('visible');
					}, 100);

					setTimeout(() => {   
						p.setAttribute("stroke-dashoffset", 0);
					}, 300);

					 /*setTimeout(() => {
						  p.setAttribute("stroke-dashoffset", svgIconPathLen);
					}, 1800);*/

				});
			}
		} 
	});
	
	$('#select-goal').change(function() {
	  let url = $(this).val();
		
		$(this).parents('.goal-container').addClass('loading');

	  if(url) {
	  	window.location.href = window.location.origin + '/' + url;
	  }
	});
	
	if($('body').hasClass('e9insta')) {
		$('html').addClass('e9insta');
	}
});