2.1.7 • Published 8 years ago

biginjapan v2.1.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

What it is

biginjapan.js sets the height of an element based on the height of the browser window.

Installation

biginjapan.js is available as an npm package.

npm install biginjapan --save

Add biginjapan.min.js to the bottom of the <body> like this:

	<script src="biginjapan.min.js"></script>
</body>

Usage

<div data-biginjapan="true"></div>

Options

Options can be passed via data attributes. Append the option name to data-biginjapan-, as in data-biginjapan-percentage="".

NameTypeDefaultDescription
percentagenumber1000 - 100%
excludeselectorfalseA valid CSS selector of an element you want biginjapan to exclude from it's height.

Events

FunctionDescription
BigInJapan.update()Run after DOM has changed
BigInJapan.pause()Pauses resize event listener

Browser Support

Coming soon

License

The code is available under the MIT License.

2.1.7

8 years ago

2.1.6

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago