{"id":13446117,"url":"https://github.com/yeild/jigsaw","last_synced_at":"2025-03-21T06:30:52.597Z","repository":{"id":41176442,"uuid":"125990219","full_name":"yeild/jigsaw","owner":"yeild","description":"canvas滑动验证码","archived":false,"fork":false,"pushed_at":"2021-03-05T01:49:09.000Z","size":196,"stargazers_count":696,"open_issues_count":3,"forks_count":250,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-10-28T09:52:53.605Z","etag":null,"topics":["canvas","captcha"],"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/yeild.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":"2018-03-20T09:09:09.000Z","updated_at":"2024-10-18T02:16:09.000Z","dependencies_parsed_at":"2022-07-14T10:21:28.883Z","dependency_job_id":null,"html_url":"https://github.com/yeild/jigsaw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeild%2Fjigsaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeild%2Fjigsaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeild%2Fjigsaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeild%2Fjigsaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeild","download_url":"https://codeload.github.com/yeild/jigsaw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244750435,"owners_count":20504055,"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":["canvas","captcha"],"created_at":"2024-07-31T05:00:46.117Z","updated_at":"2025-03-21T06:30:52.199Z","avatar_url":"https://github.com/yeild.png","language":"JavaScript","funding_links":[],"categories":["Libraries"],"sub_categories":["Verification code"],"readme":"# jigsaw\ncanvas滑动验证码\n\n## [演示地址](https://yeild.github.io/jigsaw/demo.html)\n\n### 用法：\n1. 引入[jigsaw.min.js](https://raw.githubusercontent.com/yeild/jigsaw/master/dist/jigsaw.min.js)\n\n2.\n```\njigsaw.init({\n  el: document.getElementById('container'),\n  width: 310, // 可选, 默认310\n  height: 155, // 可选, 默认155\n  onSuccess: function () { ... },\n  onFail: function () { ... },\n  onRefresh: function () { ... }\n})\n```\n\n### Tips：\n.\n1. 图片从 https://picsum.photos/ 随机获取，然后用canvas裁剪生成滑块.\n\n2. 支持移动端和IE浏览器(IE10+).\n\n3. 纯前端验证不能保证安全性，本项目仅供学习交流.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeild%2Fjigsaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeild%2Fjigsaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeild%2Fjigsaw/lists"}