Interface IVevet

Vevet Application

Hierarchy

  • IVevet

Properties

body: HTMLElement

Body element

browserName: string

Browser name

doc: Document

Document

html: HTMLElement

HTML element

isDesktop: boolean

Is desktop device

isMobile: boolean

Is mobile device

isPageLoaded: boolean

If the page is loaded

isPhone: boolean

Is phone device

isTablet: boolean

Is tablet device

isWebpSupported: boolean

If WebP is supported in the browser

onPageLoad: (() => PCancelable<void>)

Type declaration

    • (): PCancelable<void>
    • Add an event on page load

      Returns PCancelable<void>

      Example

      const promise = vevet.onPageLoad();

      promise
      .then(() => console.log('Page loaded'))
      .catch(() => console.log('Error'));
osName: string

OS name

prefix: string

Prefix used by Vevet for class names.

Appliction properties

version: string

Current Vevet version

viewport: IViewport

Viewport handler