{"id":18766212,"url":"https://github.com/vovayatsyuk/shrink-to-viewport","last_synced_at":"2026-01-25T18:31:47.235Z","repository":{"id":80141600,"uuid":"82483397","full_name":"vovayatsyuk/shrink-to-viewport","owner":"vovayatsyuk","description":"Automatically update element's max-height to fit viewport size https://vovayatsyuk.github.io/shrink-to-viewport/","archived":false,"fork":false,"pushed_at":"2017-02-21T19:15:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-20T21:38:05.438Z","etag":null,"topics":["height-calculation","viewport"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/vovayatsyuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T19:22:10.000Z","updated_at":"2022-09-30T19:38:18.000Z","dependencies_parsed_at":"2023-09-21T08:51:38.392Z","dependency_job_id":null,"html_url":"https://github.com/vovayatsyuk/shrink-to-viewport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vovayatsyuk/shrink-to-viewport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fshrink-to-viewport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fshrink-to-viewport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fshrink-to-viewport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fshrink-to-viewport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vovayatsyuk","download_url":"https://codeload.github.com/vovayatsyuk/shrink-to-viewport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fshrink-to-viewport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28756442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"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":["height-calculation","viewport"],"created_at":"2024-11-07T18:39:26.505Z","updated_at":"2026-01-25T18:31:47.218Z","avatar_url":"https://github.com/vovayatsyuk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shrink to Viewport\n\nThe script calculates maximum of available height for the element to fit the\nviewport and set it as `max-height` style.\n\n### Usage\n\n```js\nnew ShrinkToViewport(document.getElementById('aside'), {\n    offset: 20\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovayatsyuk%2Fshrink-to-viewport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvovayatsyuk%2Fshrink-to-viewport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovayatsyuk%2Fshrink-to-viewport/lists"}