{"id":17159665,"url":"https://github.com/schmidt/jquery.onscreen","last_synced_at":"2025-03-24T15:08:37.127Z","repository":{"id":24319914,"uuid":"27716358","full_name":"schmidt/jquery.onscreen","owner":"schmidt","description":"jQuery plugin which adds an :onscreen pseudo selector","archived":false,"fork":false,"pushed_at":"2014-12-08T13:58:27.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T19:49:16.290Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schmidt.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-12-08T13:35:45.000Z","updated_at":"2014-12-08T14:56:10.000Z","dependencies_parsed_at":"2022-07-25T09:30:05.711Z","dependency_job_id":null,"html_url":"https://github.com/schmidt/jquery.onscreen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmidt%2Fjquery.onscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmidt%2Fjquery.onscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmidt%2Fjquery.onscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmidt%2Fjquery.onscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmidt","download_url":"https://codeload.github.com/schmidt/jquery.onscreen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294768,"owners_count":20591900,"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-10-14T22:14:49.446Z","updated_at":"2025-03-24T15:08:37.106Z","avatar_url":"https://github.com/schmidt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jQuery.onscreen Plugin\n======================\n\nThis plugin adds a `:onscreen` pseudo selector to the list of jQuery selectors.\nYou may use it to test, if an partially visible on the screen.\n\n\nExamples\n--------\n\nFocus the first visible input element:\n\n    $(\"input:onscreen\").first().focus()\n\n\nScroll element into view if it was not visible before\n\n    e = $(\"#calltoaction\")\n\n    if (!e.is(\":onscreen\")) {\n        e.get(0).scrollIntoView();\n    }\n\n\nFuture work\n-----------\n\n* Add tests\n* Add `:fullyonscreen` which would match if the whole element is on the screen,\nnot just parts of it.\n\nCopyright\n---------\n\nThis code is just a wrapped version of a StackOverflow answer published on\njsfiddle.\n\nHere are the relevant sources:\n\n\u003cdl\u003e\n\u003cdt\u003eAuthor:\u003c/dt\u003e\n\u003cdd\u003epebbl http://pebbl.co.uk/\u003c/dd\u003e\n\u003cdt\u003eStackOverflow:\u003cdt\u003e\n\u003cdd\u003ehttp://stackoverflow.com/q/487073/817202#comment41045330_21627295\u003c/dd\u003e\n\u003cdt\u003eJSFiddle:\u003cdt\u003e\n\u003cdd\u003ehttp://jsfiddle.net/9nuqpgqa/\u003c/dd\u003e\n\u003c/dl\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmidt%2Fjquery.onscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmidt%2Fjquery.onscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmidt%2Fjquery.onscreen/lists"}