2.0.1 • Published 6 years ago

prevent_mobile_landscape v2.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

prevent_mobile_landscape

NPM Package to prevent mobile viewing while in landscape orienation

Build Status

prevent_mobile_landscape

Installation

npm install prevent_mobile_landscape

Usage

import the package to your main js file

import { prevent_mobile_landscape } from 'prevent_mobile_landscape';

Basic

call the function

prevent_mobile_landscape({});

Customize

edit the visuals with these parameters

  background_color: 
  text_color:
  font:
  font_size: 
  text:

default values

prevent_mobile_landscape({
  background_color: 'linear-gradient(-90deg, #D77C7C, #AD71BC)',
  text_color: '#eee',
  font: 'Montserrat-Thin',
  font_size: '20px',
  text: 'Sorry, this device orientation is not supported'
});

That's it... you should be good to go :thumbsup:

2.0.1

6 years ago

2.0.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago