{"id":20672113,"url":"https://github.com/workarea-commerce/workarea-jquery-zoom","last_synced_at":"2025-10-06T16:53:43.792Z","repository":{"id":36073941,"uuid":"221305019","full_name":"workarea-commerce/workarea-jquery-zoom","owner":"workarea-commerce","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-05T00:52:47.000Z","size":823,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-16T08:51:57.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workarea-commerce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T20:24:08.000Z","updated_at":"2020-12-14T14:53:25.000Z","dependencies_parsed_at":"2023-01-16T12:50:35.839Z","dependency_job_id":null,"html_url":"https://github.com/workarea-commerce/workarea-jquery-zoom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/workarea-commerce/workarea-jquery-zoom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-jquery-zoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-jquery-zoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-jquery-zoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-jquery-zoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workarea-commerce","download_url":"https://codeload.github.com/workarea-commerce/workarea-jquery-zoom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-jquery-zoom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260447652,"owners_count":23010543,"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-11-16T20:32:05.021Z","updated_at":"2025-10-06T16:53:38.754Z","avatar_url":"https://github.com/workarea-commerce.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Workarea Jquery Zoom\n================================================================================\n\nNote: This work is in progress and part of the workarea-zoom plugin.\n\nAbout\n--------------------------------------------------------------------------------\nJquery Zoom add image zoom capabilities on touch enabled devices and is a great candidate for phone/tablet devices.\n\n\nGetting Started\n--------------------------------------------------------------------------------\n\nAdd the gem to your application's Gemfile:\n\n    # ...\n    gem 'workarea-jquery_zoom'\n    # ...\n\n\nExample\n--------------------------------------------------------------------------------\n\n```html\n    \u003cdiv class=\"zoom\"\u003e\n        \u003cdiv data-zoom-src=\"http://example.com/big-image.jpg\" class=\"zoom__container\"\u003e\n            \u003cimg src=\"http://example.com/thumbnail-image.jpg\" class=\"zoom__image\"\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n```\n\n```css\n.zoom {\n    width: 320px;\n}\n\n.zoom__container {\n    position: relative;\n}\n\n.zoom__image {\n    display: block;\n    width: 100%;\n    min-width: 100%;\n}\n```\n\n```javascript\n$(document).ready(function() {\n    $('.zoom__container').zoom();\n});\n```\n\n\nOptions\n--------------------------------------------------------------------------------\n\nYou have the ability to pass your options like this:\n\n```javascript\n$('.zoom__container').zoom({\n    lazyLoad: true,\n    deltaScale: 0.05,\n    url: null\n});\n```\n\nDifferent options are available:\n\nName  | Default | Description\n------------- | ------------- | -------------\nlazyLoad  | ```true``` | If set to true, jquery.zoom will lazy load the zoom image when the user clicks for the first time on the container\ndeltaScale  |``` 0.05``` | What is the increment scale you want to use when scale up/down\nurl | ```null``` | The url of the zoom image, if not defined, jquery.zoom will fetch the attribute  ```data-zoom-src```given.\n\n\nEvents\n--------------------------------------------------------------------------------\n\nYou can destroy the widget for the instance given, it's helpful when you want to go back to a clean state.\n\n```javascript\n// Create instance\n$('.zoom__container').zoom();\n\n// Remove instance\n$('.zoom__container').trigger('zoom.destroy');\n```\n\n\nWorkarea Commerce Documentation\n--------------------------------------------------------------------------------\n\nSee [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.\n\nLicense\n--------------------------------------------------------------------------------\n\nWorkarea Styled Selects is released under the [Business Software License](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-jquery-zoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkarea-commerce%2Fworkarea-jquery-zoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-jquery-zoom/lists"}