Pinned Loading
-
Check if window is fullscreen, maxim...
Check if window is fullscreen, maximized or not maximized 1const isAtMaxWidth = screen.availWidth - window.innerWidth === 0
2const screenPixelRatio = (window.outerWidth - 8) / window.innerWidth
3const isAtDefaultZoom = screenPixelRatio > 0.92 && screenPixelRatio <= 1.10
4const isMaximizedAndDefaultZoom = isAtMaxWidth && isAtDefaultZoom
5const isFullscreen = window.outerWidth == screen.width && window.outerHeight == screen.height
-
React Simple Stateless Component
React Simple Stateless Component 1import React from 'react'
2import { string } from 'prop-types'
3import './_SimpleModal.css'
45export function SimpleModal ({ className }) {
-
Get viewport dimension
Get viewport dimension 1export function getViewportDimensions () {
2const w = window
3const d = document
4const e = d.documentElement
5const g = d.getElementsByTagName('body')[0]
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.