{"id":14972428,"url":"https://github.com/cakebake/jquery-breakpoint-check","last_synced_at":"2026-04-01T17:01:46.331Z","repository":{"id":31565273,"uuid":"35130007","full_name":"cakebake/jquery-breakpoint-check","owner":"cakebake","description":"Check/Detect the current visibility of bootstrap 3 breakpoints","archived":false,"fork":false,"pushed_at":"2016-07-17T22:39:52.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-27T23:42:26.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakebake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T23:59:33.000Z","updated_at":"2020-06-05T03:59:13.000Z","dependencies_parsed_at":"2022-08-29T08:51:18.551Z","dependency_job_id":null,"html_url":"https://github.com/cakebake/jquery-breakpoint-check","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cakebake/jquery-breakpoint-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fjquery-breakpoint-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fjquery-breakpoint-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fjquery-breakpoint-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fjquery-breakpoint-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakebake","download_url":"https://codeload.github.com/cakebake/jquery-breakpoint-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fjquery-breakpoint-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:46:54.156Z","updated_at":"2026-04-01T17:01:46.260Z","avatar_url":"https://github.com/cakebake.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"jQuery Bootstrap 3 Breakpoint Check\n===================================\n\nCheck the current visibility of bootstrap 3 breakpoints.\n\n### Why another breakpoint check for bootstrap 3?\n\nThe plugin I have created for simple reasons:\n\n-\tI needed something that works and is easy to integrate into existing projects (in my daily work)\n-\tI did not want to create a new code in each project. A plugin repository is mostly stable\n-\tBootstrap did not provide its own Javascript API for this\n-\tI had fun doing it^^\n\nInstallation\n------------\n\nYou can download the plugin manually or install by composer. ... and the plugin requires jQuery. ;) jQuery must be properly integrated into the page.\n\n### Install via Composer (recommended for php projects)\n\nIf you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).\n\nYou can then install the package using the following command:\n\n```\nphp composer.phar require --prefer-dist cakebake/jquery-breakpoint-check \"*\"\n```\n\nor add\n\n```\n\"cakebake/jquery-breakpoint-check\": \"*\"\n```\n\nto the require section of your `composer.json` file and run `php composer.phar update`.\n\n### Manual Installation\n\n#### Download:\n\n-\t[Current Master Branch](https://github.com/cakebake/jquery-breakpoint-check/archive/master.zip)\n-\t[Latest releases](https://github.com/cakebake/jquery-breakpoint-check/releases)\n\nInclude 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`.\n\nExample:\n\n```html\n\u003cscript src=\"js/jquery-breakpoint-check.min.js\"\u003e\u003c/script\u003e\n```\n\nUsage\n-----\n\nIs the current screen resolution `xs` breakpoint?\n\n```js\nif ($.isXs()) {\n    alert('Is xs breakpoint :)');\n}\n```\n\nIs the current screen resolution `sm` breakpoint?\n\n```js\nif ($.isSm()) {\n    alert('Is sm breakpoint :)');\n}\n```\n\nIs the current screen resolution `md` breakpoint?\n\n```js\nif ($.isMd()) {\n    alert('Is md :)');\n}\n```\n\nIs the current screen resolution `lg` breakpoint?\n\n```js\nif ($.isLg()) {\n    alert('Is lg breakpoint :)');\n}\n```\n\nIs the current screen resolution `custom` breakpoint?\n\nCreate a CSS-Class with visibility for your custom breakpoint. For example:\n\n```\n.visible-grid-float-breakpoint {\n    @media (min-width: @grid-float-breakpoint-max) {\n        display: none;\n        visibility: hidden;\n    }\n}\n```\n\n```js\nif ($.isBreakpoint('grid-float-breakpoint')) {\n    alert('It is my custom breakpoint :)');\n}\n```\n\nCheck the current breakpoint on screen resize.\n\n```js\n$(window).resize(function () {\n    if ($.isXs()) {\n        alert('Is xs breakpoint :)');\n    } else if ($.isSm()) {\n        alert('Is sm breakpoint :)');\n    } else if ($.isMd()) {\n        alert('Is md :)');\n    } else if ($.isLg()) {\n        alert('Is lg breakpoint :)');\n    }\n}).resize();\n```\n\nHide a div on `xs` and `lg` breakpoint.\n\n```js\n$(window).resize(function () {\n    var selector = $(\"div.selector\");\n    if ($.isXs() || $.isLg()) {\n        selector.hide();\n    } else {\n        selector.hide();\n    }\n}).resize();\n```\n\nCopyright and License\n---------------------\n\nCopyright (C) Jens A. (cakebake)\n\nReleased under [the MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakebake%2Fjquery-breakpoint-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakebake%2Fjquery-breakpoint-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakebake%2Fjquery-breakpoint-check/lists"}