Skip to content
console.log('Script starting...');
function setVH() {
console.log('setVH function called');
let vh = window.innerHeight * 0.01;
console.log('Calculated VH:', vh);
document.documentElement.style.setProperty('--vh', `${vh}px`);
console.log('VH property set');
}
// Check if jQuery is loaded
if (typeof jQuery !== 'undefined') {
console.log('jQuery is loaded');
} else {
console.log('jQuery is NOT loaded');
}
// Document ready check
jQuery(document).ready(function($) {
console.log('Document ready fired');
setVH();
});
// Additional event listeners
window.addEventListener('resize', function() {
console.log('Resize event fired');
setVH();
});
window.addEventListener('orientationchange', function() {
console.log('Orientation change fired');
setVH();
});
console.log('Script completed setup');