{"id":16953619,"url":"https://github.com/thisislawatts/coverimage","last_synced_at":"2025-04-11T21:22:50.368Z","repository":{"id":33157881,"uuid":"36798617","full_name":"thisislawatts/coverimage","owner":"thisislawatts","description":"Background Image without the CSS","archived":false,"fork":false,"pushed_at":"2017-03-11T08:32:00.000Z","size":50,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T04:34:57.467Z","etag":null,"topics":["background-image"],"latest_commit_sha":null,"homepage":"http://thisislawatts.github.io/coverimage/","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/thisislawatts.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":"2015-06-03T11:12:03.000Z","updated_at":"2018-06-20T18:32:49.000Z","dependencies_parsed_at":"2022-08-17T20:10:24.076Z","dependency_job_id":null,"html_url":"https://github.com/thisislawatts/coverimage","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fcoverimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fcoverimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fcoverimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fcoverimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisislawatts","download_url":"https://codeload.github.com/thisislawatts/coverimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480906,"owners_count":21111039,"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":["background-image"],"created_at":"2024-10-13T22:07:33.858Z","updated_at":"2025-04-11T21:22:50.343Z","avatar_url":"https://github.com/thisislawatts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CoverImage\n===\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thisislawatts/coverimage/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/thisislawatts/coverimage/?branch=master)\n\nTakes an element and uses the first image found to replicate the behaviour of `background-size: cover` from CSS.\n\nThe advantage of this method is that you get all the semantics/accessibility of an image present within the mark-up.\n\nUsage\n---\n\n```html\n \u003cdiv data-cover-image\u003e\n   \u003cimg src=\"http://example.com/cat.jpg\"/\u003e\n \u003c/div\u003e\n \u003cscript src=\"https://unpkg.com/coverimage/dist/coverimage.js\"\u003e\u003c/script\u003e\n```\n\nContributing\n---\n\nPlease do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fcoverimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisislawatts%2Fcoverimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fcoverimage/lists"}