{"id":21891075,"url":"https://github.com/rocity/jquery-bgimg","last_synced_at":"2026-01-23T12:54:31.226Z","repository":{"id":98426550,"uuid":"64639993","full_name":"rocity/jquery-bgimg","owner":"rocity","description":"Make images become background-images for HTML elements","archived":false,"fork":false,"pushed_at":"2016-09-15T05:45:50.000Z","size":396,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T13:51:40.319Z","etag":null,"topics":["jquery","jquery-plugin"],"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/rocity.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-01T06:00:14.000Z","updated_at":"2018-05-31T01:16:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b487ab92-3fc4-4fdd-bb65-f6a0c3203a18","html_url":"https://github.com/rocity/jquery-bgimg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rocity/jquery-bgimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocity%2Fjquery-bgimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocity%2Fjquery-bgimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocity%2Fjquery-bgimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocity%2Fjquery-bgimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocity","download_url":"https://codeload.github.com/rocity/jquery-bgimg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocity%2Fjquery-bgimg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28692309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["jquery","jquery-plugin"],"created_at":"2024-11-28T12:19:22.465Z","updated_at":"2026-01-23T12:54:31.218Z","avatar_url":"https://github.com/rocity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bgimg\r\n\r\nMake images become `background-image`s for HTML elements.\r\n\r\n# Installation\r\n\r\n`jQuery` is a dependency for `jquery.bgimg.js`.\r\n\r\nClone this repo then copy `jquery.bgimg.js` into your project directory.\r\n\r\n```html\r\n\u003cscript src=\"jquery.min.js\"\u003e\u003c/script\u003e\r\n\u003cscript src=\"jquery.bgimg.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n# Options\r\n\r\n| Option        | Description   |\r\n| ------------- | ------------- |\r\n| `data-bgimg` `backgroundImage`  | The image that you want as background |\r\n| `data-bgimg-repeat` `backgroundRepeat`      | The option for how your background image is repeated      |\r\n| `data-bgimg-size` `backgroundSize` | The size of your background image      |\r\n| `data-bgimg-position` `backgroundPosition` | The position of your background image |\r\n| `data-bgimg-color` `backgroundColor` | *Bonus* The background color of your target element |\r\n\r\n*Note: data-attributes take precedence over options declared using JS.*\r\n\r\n# Example\r\n```html\r\n\u003cdiv\r\n    data-bgimg=\"./assets/200x200-4.png\"\r\n    data-bgimg-repeat=\"no-repeat\"\r\n    data-bgimg-size=\"cover\"\r\n    data-bgimg-position=\"center center\"\r\n    data-bgimg-color=\"transparent\"\r\n    id=\"demo\"\r\n    \u003e\u003c/div\u003e\r\n\r\n\u003cscript type=\"text/javascript\"\u003e\r\n    $('#demo').bgimg();\r\n\u003c/script\u003e\r\n```\r\n\r\nCheck out the [docs](./docs/) directory for more examples on how to use this plugin.\r\n\r\n# License\r\n\r\nThis software is licensed under [The MIT License](./LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocity%2Fjquery-bgimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocity%2Fjquery-bgimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocity%2Fjquery-bgimg/lists"}