https://github.com/alibahaari/resolutionjs
Don't show a web page in a specified resolution.
https://github.com/alibahaari/resolutionjs
resolution responsive
Last synced: 7 months ago
JSON representation
Don't show a web page in a specified resolution.
- Host: GitHub
- URL: https://github.com/alibahaari/resolutionjs
- Owner: AliBahaari
- License: mit
- Created: 2018-09-10T16:38:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T16:40:18.000Z (over 5 years ago)
- Last Synced: 2024-12-29T08:12:53.999Z (over 1 year ago)
- Topics: resolution, responsive
- Language: JavaScript
- Homepage: https://alibahaari.github.io/ResolutionJS
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ResolutionJS
***ResolutionJS*** will not show a web page in a specified resolution. It just uses *JavaScript*.
## Add Project
Just link SliderJS to your project :
```
```
## Initializing
Then, you should initialize properties, just copy the code below and paste it after the code above.
```
Resolution({
clientWidth: 500, // The maximum width of the window
clientHeight: 400, // The maximum height of the window
backGround: '#555', // The layer `background` property
textColor: '#F5F5F5', // The layer text `color` property
zIndex: 10000, // The layer `z-index` property
fontSize: '1.5rem', // The layer text `font-size` property
fontFamily: 'TimesNewRoman', // The layer text `font-family` property
displayMessage: 'Lorem Ipsum' // A text for displaying
});
```
*Note :* All the properties above should be filled; `backGround`, `textColor`, `fontSize`, `fontFamily`, `displayMessage` should be ***String***; `clientWidth`, `clientHeight`, `zIndex` should be ***Integer***.
## Minified
In the minified version, it uses Babel to feel free for using in old version browsers.