{"id":16595703,"url":"https://github.com/1000ch/fluid-iframe","last_synced_at":"2025-10-29T12:30:34.137Z","repository":{"id":36931467,"uuid":"231216802","full_name":"1000ch/fluid-iframe","owner":"1000ch","description":"Web Components which provides fluid width \u003ciframe\u003e.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:33:46.000Z","size":443,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-03T21:37:25.642Z","etag":null,"topics":["iframe","web-components"],"latest_commit_sha":null,"homepage":"https://1000ch.github.io/fluid-iframe/","language":"HTML","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/1000ch.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":"2020-01-01T12:58:57.000Z","updated_at":"2022-10-24T04:54:27.000Z","dependencies_parsed_at":"2023-01-17T07:18:38.550Z","dependency_job_id":null,"html_url":"https://github.com/1000ch/fluid-iframe","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1000ch%2Ffluid-iframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1000ch%2Ffluid-iframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1000ch%2Ffluid-iframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1000ch%2Ffluid-iframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1000ch","download_url":"https://codeload.github.com/1000ch/fluid-iframe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857757,"owners_count":16556056,"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":["iframe","web-components"],"created_at":"2024-10-11T23:51:19.787Z","updated_at":"2025-10-29T12:30:33.719Z","avatar_url":"https://github.com/1000ch.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluid-iframe ![GitHub Actions Status](https://github.com/1000ch/fluid-iframe/workflows/test/badge.svg)\n\n\u003e Web Components which provides fluid width `\u003ciframe\u003e`.\n\n## Install\n\nUsing [npm](https://www.npmjs.org/package/fluid-iframe):\n\n```sh\n$ npm install fluid-iframe\n```\n\n## Usage\n\nImport `FluidIframe` and register it as a custom element.\n\n```html\n\u003cscript type=\"module\"\u003e\nimport FluidIframe from 'https://unpkg.com/fluid-iframe';\n\ncustomElements.define('fluid-iframe', FluidIframe);\n\u003c/script\u003e\n```\n\nPut `\u003cfluid-iframe\u003e`.\n\n```html\n\u003cfluid-iframe\n  src=\"https://www.youtube.com/embed/EqNHSrHzSOU\"\n  title=\"Santa Tracker: Out Like A Light\"\n  aspect=\"16/9\"\u003e\n\u003c/fluid-iframe\u003e\n```\n\n## API\n\n### `src` attribute\n\nURL string which will be set as `\u003ciframe src\u003e`.\n\n### `title` attribute\n\nTitle string which will be set as `\u003ciframe title\u003e`.\n\n### `aspect` attribute\n\n`x/y` format string will be calculated for aspect ratio. Default value is `16/9`.\n\n## License\n\n[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1000ch%2Ffluid-iframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1000ch%2Ffluid-iframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1000ch%2Ffluid-iframe/lists"}