The official website for the open-source compatibility layer fpPS4
1window.onload = function() { // fixes stupid scrollbar jumping if it happens
2 setTimeout(function() {
3 document.documentElement.scrollTop = 0;
4 document.body.scrollTop = 0;
5 }, 30);
6};
7
8function scrollToElement(event, learnmore) {
9 event.preventDefault();
10 const targetElement = document.getElementById(learnmore);
11 if (targetElement) {
12 targetElement.scrollIntoView({ behavior: 'smooth' });
13 history.replaceState({}, document.title, window.location.href.split('#')[0]);
14 }
15}
16
17document.addEventListener('DOMContentLoaded', function () {
18 addSnow()
19});