$("img.op0").one('load',function(){$(this).addClass('op1')}).each(function(){if(this.complete)$(this).load()});function vscroll(selector){e=$(selector);$("html, body").animate({scrollTop:$(e).offset().top},1000)} function get_hash(param){return param.split("#")[1]} function col(selector,cols){e=$(selector);$(e).filter(function(index){return!(index%cols)}).addClass('first')} let scrollpos=window.scrollY const header=document.getElementById("logo-y-menu") const header_height=header.offsetHeight const add_class_on_scroll=()=>header.classList.add("fixed") const remove_class_on_scroll=()=>header.classList.remove("fixed") window.addEventListener('scroll',function(){scrollpos=window.scrollY;if(scrollpos>=45){add_class_on_scroll()} else{remove_class_on_scroll()}})