2.0.1 • Published 8 years ago

prevent_mobile_landscape v2.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 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

8 years ago

2.0.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago