Download the PHP package cakebake/jquery-breakpoint-check without Composer
On this page you can find all versions of the php package cakebake/jquery-breakpoint-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cakebake/jquery-breakpoint-check
More information about cakebake/jquery-breakpoint-check
Files in cakebake/jquery-breakpoint-check
Package jquery-breakpoint-check
Short Description Check the current visibility of bootstrap 3 breakpoints
License MIT
Informations about the package jquery-breakpoint-check
jQuery Bootstrap 3 Breakpoint Check
Check the current visibility of bootstrap 3 breakpoints.
Why another breakpoint check for bootstrap 3?
The plugin I have created for simple reasons:
- I needed something that works and is easy to integrate into existing projects (in my daily work)
- I did not want to create a new code in each project. A plugin repository is mostly stable
- Bootstrap did not provide its own Javascript API for this
- I had fun doing it^^
Installation
You can download the plugin manually or install by composer. ... and the plugin requires jQuery. ;) jQuery must be properly integrated into the page.
Install via Composer (recommended for php projects)
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install the package using the following command:
or add
to the require section of your composer.json
file and run php composer.phar update
.
Manual Installation
Download:
Include one of the two javascript files from the folder js
after jQuery include. For productive projects, you can use the jquery-breakpoint-check.min.js
version. For more details see file test.html
.
Example:
Usage
Is the current screen resolution xs
breakpoint?
Is the current screen resolution sm
breakpoint?
Is the current screen resolution md
breakpoint?
Is the current screen resolution lg
breakpoint?
Is the current screen resolution custom
breakpoint?
Create a CSS-Class with visibility for your custom breakpoint. For example:
Check the current breakpoint on screen resize.
Hide a div on xs
and lg
breakpoint.
Copyright and License
Copyright (C) Jens A. (cakebake)
Released under the MIT license