{"id":21177458,"url":"https://github.com/betsol/baseline-element","last_synced_at":"2025-10-20T05:53:01.845Z","repository":{"id":58218989,"uuid":"39214630","full_name":"betsol/baseline-element","owner":"betsol","description":"JavaScript library to fix responsive images in vertical rhythm environments","archived":false,"fork":false,"pushed_at":"2016-01-18T14:44:55.000Z","size":1511,"stargazers_count":24,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T23:06:14.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betsol.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-16T18:54:15.000Z","updated_at":"2021-03-16T18:47:39.000Z","dependencies_parsed_at":"2022-09-01T10:21:25.785Z","dependency_job_id":null,"html_url":"https://github.com/betsol/baseline-element","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/betsol/baseline-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fbaseline-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fbaseline-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fbaseline-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fbaseline-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betsol","download_url":"https://codeload.github.com/betsol/baseline-element/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fbaseline-element/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262087673,"owners_count":23256915,"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":[],"created_at":"2024-11-20T17:16:10.954Z","updated_at":"2025-10-20T05:52:56.798Z","avatar_url":"https://github.com/betsol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# baseline-element\n\n[![Bower version](https://badge.fury.io/bo/baseline-element.svg)](http://badge.fury.io/bo/baseline-element)\n[![npm version](https://badge.fury.io/js/baseline-element.svg)](http://badge.fury.io/js/baseline-element)\n\nThis JavaScript library provides a way to fix an issue with responsive images that are used in vertical rhythm layouts.\n\n\u003e DEPRECATION NOTICE\n\u003e\n\u003e Thank you everyone! But population census of perfectionists is now officially over.\n\u003e\n\u003e I have a bad news for you: our world is not perfect and we all will have to find a way to live with it.\n\u003e\n\u003e Sorry for that!\n\u003e\n\u003e And now more seriously: we're not planning to develop this library and the idea of VR in the near future.\n\u003e If you want to take over and maintain this library — please let me know: s.fomin@betsol.ru\n\u003e\n\u003e Cheers!\n\n\n## Demos and examples\n\n[Please see our demo.][demo]\n\n\n## Installation\n\n### Install library with Bower\n\n`bower install --save baseline-element`\n\n\n### Install library with npm\n\n`npm install --save baseline-element`\n\n\n### Add library to your page\n\n``` html\n\u003cscript src=\"dist/baseline-element.js\"\u003e\u003c/script\u003e\n```\n\nYou should use minified version (`baseline-element.min.js`) in production.\n\n\n## Usage\n\n### In vanilla JS\n\n``` javascript\nvar baseline = 24;\nvar element = document.getElementById('my-responsive-image');\nwindow.baselineElement(element, baseline);\n```\n\n\n### With jQuery/Zepto\n\n``` javascript\nvar baseline = 24;\n$('.responsive-image').baselineElement(baseline);\n```\n\n\n## Changelog\n\nPlease see the [complete changelog][changelog] for list of changes.\n\n\n## Feedback\n\nIf you have found a bug or have another issue with the library —\nplease [create an issue][new-issue].\n\nIf you have a question regarding the library or it's integration with your project —\nconsider asking a question at [StackOverflow][so-ask] and sending me a\nlink via [E-Mail][email]. I will be glad to help.\n\nHave any ideas or propositions? Feel free to contact me by [E-Mail][email].\n\nCheers!\n\n\n## Developer guide\n\nFork, clone, create a feature branch, commit, create a PR.\n\nRun:\n\n- `npm install \u0026\u0026 bower install` to initialize the project\n- `gulp build` to re-build the dist files\n\nDo not add dist files to the PR itself.\nWe will re-compile the module manually each time before releasing.\n\n\n## Support\n\nIf you like this library consider to add star on [GitHub repository][repo-gh].\n\nThank you!\n\n\n## Credits\n\nThanks to Vladimir Gaintsev for great implementation ideas, thorough testing and [beautiful demo page][demo]!\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 - 2015 Slava Fomin II, BETTER SOLUTIONS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n  [changelog]: changelog.md\n  [so-ask]:    http://stackoverflow.com/questions/ask?tags=javascript\n  [email]:     mailto:s.fomin@betsol.ru\n  [new-issue]: https://github.com/betsol/baseline-element/issues/new\n  [repo-gh]:   https://github.com/betsol/baseline-element\n  [gulp]:      http://gulpjs.com/\n  [demo]:      http://betsol.github.io/baseline-element/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fbaseline-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetsol%2Fbaseline-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fbaseline-element/lists"}