{"id":21827390,"url":"https://github.com/judas-christ/breaks2000","last_synced_at":"2025-07-09T07:36:36.778Z","repository":{"id":15923385,"uuid":"18665181","full_name":"judas-christ/breaks2000","owner":"judas-christ","description":"Responsive elements script.","archived":false,"fork":false,"pushed_at":"2017-03-08T18:44:30.000Z","size":24,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T07:41:14.522Z","etag":null,"topics":["container-queries","element-queries","javascript","web"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/judas-christ.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":"2014-04-11T06:51:27.000Z","updated_at":"2017-07-07T12:08:19.000Z","dependencies_parsed_at":"2022-08-30T14:51:11.780Z","dependency_job_id":null,"html_url":"https://github.com/judas-christ/breaks2000","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/judas-christ/breaks2000","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judas-christ%2Fbreaks2000","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judas-christ%2Fbreaks2000/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judas-christ%2Fbreaks2000/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judas-christ%2Fbreaks2000/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/judas-christ","download_url":"https://codeload.github.com/judas-christ/breaks2000/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judas-christ%2Fbreaks2000/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260506669,"owners_count":23019419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["container-queries","element-queries","javascript","web"],"created_at":"2024-11-27T18:13:03.531Z","updated_at":"2025-07-09T07:36:36.726Z","avatar_url":"https://github.com/judas-christ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Breaks 2000\n\n\u003e A simple responsive elements script. Inspired by https://github.com/kumailht/responsive-elements but simpler and without any dependencies.\n\n## Usage\n\nAdd breakpoints to responsive elements\n\n```html\n\u003cdiv data-breaks=\"320,480,768,1280\"\u003e...\u003c/div\u003e\n```\n\nAdd CSS styles for the sizes\n\n```css\n.\\\u003e320 {\n\tbackground-color: peachpuff;\n}\n\n.\\\u003e768 {\n\tbackground-color: aliceblue;\n}\n```\n\nAdd breaks2000 script to page\n\n```html\n\u003cscript src=\"https://unpkg.com/breaks2000\"\u003e\u003c/script\u003e\n```\n\nor if you prefer to self-host\n\n```html\n\u003cscript src=\"/path/to/breaks2000.min.js\"\u003e\u003c/script\u003e\n```\n\nCall initialization function on page load\n\n```js\nbreaks2000.init();\n```\n\nWhen adding elements to page call\n\n```js\nbreaks2000.update();\n```\n\nIf, for some reason, breaks2000 has to be deactivated on a page call\n\n```js\nbreaks2000.uninit();\n```\n\n## Browser support\n\nModern browsers and optionally IE8.\n\n## Change Log\n\n### 2.3.0\n\n* UMD bundle\n* unpkg CDN example\n\n### 2.2.0\n\n* ES6 module support\n* CJS module support\n\n### 2.1.2\n\n* Bower support\n\n### 2.1.1\n\n* Bugfixes\n\n### 2.1.0\n\n* Added optional `uninit()` function for removing breaks2000.\n\n### 2.0.0\n\n* Class names changed from `gt-[size]`/`lt-[size]` to `\u003e[size]`/`\u003c[size]`. *This is a breaking change from 1.0.0*\n\n## License\n\nReleased under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudas-christ%2Fbreaks2000","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjudas-christ%2Fbreaks2000","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudas-christ%2Fbreaks2000/lists"}