HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/bristolfilton.co.uk/public_html/wp-content/themes/advance/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);
		
	}
}
});