1//getting the viewport dimensions
2var width= Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
3var height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
1// viewport dimention
2const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
3const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);