HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/index_lixo/wp-content/themes/safreen/js/halfparallax.js
jQuery(document).ready(function($){
	
	fullscreen();
$(window).resize(fullscreen);
$(window).scroll(headerParallax);

function fullscreen() {
	var mq = window.matchMedia('all and (max-width: 992px)');
	
	var masthead = $('.masthead');
	if(mq.matches) {
	var windowH = $(window).height()*0.7;
	} else {
		var windowH = $(window).height()*0.85;
		}
	
	masthead.height(windowH);
}

function headerParallax() {
	var st = $(window).scrollTop();
	var headerScroll = $('.masthead-overlay');
	var headerScroll2 = $('.masthead-dsc');

	if (st < 1200) {
		headerScroll.css('opacity', 0+st/1200);
		
		
	}
	if (st < 500) {
		headerScroll2.css('opacity', 1-st/1000);
		$('.masthead-arrow ').css('opacity', 1-st/500);
		
	}
}
});