{"id":21078010,"url":"https://github.com/ryanburnette/jquery-helpers","last_synced_at":"2026-04-16T09:02:20.646Z","repository":{"id":23784699,"uuid":"27160141","full_name":"ryanburnette/jQuery-helpers","owner":"ryanburnette","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-03T16:53:47.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T04:23:09.693Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanburnette.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-11-26T04:51:33.000Z","updated_at":"2014-12-03T16:53:48.000Z","dependencies_parsed_at":"2022-08-05T23:16:02.199Z","dependency_job_id":null,"html_url":"https://github.com/ryanburnette/jQuery-helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryanburnette/jQuery-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2FjQuery-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2FjQuery-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2FjQuery-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2FjQuery-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanburnette","download_url":"https://codeload.github.com/ryanburnette/jQuery-helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanburnette%2FjQuery-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31878831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-11-19T19:39:06.624Z","updated_at":"2026-04-16T09:02:20.611Z","avatar_url":"https://github.com/ryanburnette.png","language":"JavaScript","readme":"# jQuery-helpers\n\nI've started to notice lately that I'm writing or searching out certain jQuery methods\non Stack Overflow over and over again. I'm going to try to compile a bundle of useful\npatterns that I use a lot with jQuery here so I can grab them as a Bower package when I need them.\n\n## Conventional Arguments\n\n`$el` means you're passing one element. Usually `$el.eq(0)` will be called to make sure we're working with just one.\n\n`$els` means you're passing one or more elements. On a page with many paragraph tags, `$('p')` would be a good example.\n\n## Helper Methods\n\n### `heightOfTallestOf($els)`\nThis method returns the `height()` of the tallest of the set of elements pass in.\n\n### `getFloatedRows($els)`\nPass in a set of elements and it'll return them to you as an array broken into rows.\nIt uses `getBoundingClientRect` to avoid triggering a repaint and keeping it fast.\n\nIterate the resulting array like so:\n```javascript\nhelpers.getFloatedRows($('ul li')).forEach(function ($row) {\n  console.log('this is a jQuery object', $row, 'but the array it came from was not');\n});\n```\n\n### `hdpi()`\nReturns true if the device pixel ratio is higher than 1.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanburnette%2Fjquery-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanburnette%2Fjquery-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanburnette%2Fjquery-helpers/lists"}