Hi there, my name is Harold AO.
Hi there, my name is Harold AO.
How smooth scroll should be
FAQ Accordion
-------------
A [Pen](https://codepen.io/haroldao/pen/poRQwXO) by [Harold AO](https://codepen.io/haroldao) on [CodePen](https://codepen.io).
// check device
let isMobile = false;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
isMobile = true;
/* Vh Calc */
// First we get the viewport height and we multiple it by 1% to get a value for a vh unit
let vh = window.innerHeight * 0.01;
// Then we set the value in the --vh custom property to the root of the document
document.documentElement.style.setProperty('--vh', `${vh}px`);
function checkBrowserVersion() {
var objappVersion = navigator.appVersion;
var objAgent = navigator.userAgent;
var objbrowserName = navigator.appName;
var objfullVersion = ''+parseFloat(navigator.appVersion);