{"id":20815612,"url":"https://github.com/schmod/jclipboard","last_synced_at":"2025-06-20T14:10:21.212Z","repository":{"id":2532540,"uuid":"3509322","full_name":"schmod/jClipboard","owner":"schmod","description":"A jQuery plugin that allows rich text to be copied to the clipboard.  (Uses Flash)","archived":false,"fork":false,"pushed_at":"2012-10-11T20:16:47.000Z","size":104,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T14:08:36.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schmod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-21T23:13:40.000Z","updated_at":"2017-06-07T17:46:44.000Z","dependencies_parsed_at":"2022-08-30T18:51:13.620Z","dependency_job_id":null,"html_url":"https://github.com/schmod/jClipboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schmod/jClipboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmod%2FjClipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmod%2FjClipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmod%2FjClipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmod%2FjClipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmod","download_url":"https://codeload.github.com/schmod/jClipboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmod%2FjClipboard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260959193,"owners_count":23088821,"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-17T21:24:40.453Z","updated_at":"2025-06-20T14:10:16.198Z","avatar_url":"https://github.com/schmod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jClipboard\n==========\nCopy text to your clipboard with jQuery\n---------------------------------------\n\njClipboard is a small jQuery plugin that allows you to copy rich text to the system clipboard.  jClipboard is loosely based around [jClip](http://www.steamdev.com/zclip/) and [Zero Clipboard](http://www.steamdev.com/zclip/), but weighs much less, thanks to the delegation of much of the heavy lifting to jQuery.  Unlike other solutions that work with rich text, jClipboard also provides the system clipboard with a text-only rendition of your content for applications that cannot accept HTML.\n\nRequires Flash 10.  Sorry.\n\n\n###Installation\n[Download jClipboard](https://github.com/schmod/jClipboard/tarball/master), extract somewhere into your site, and include jQuery and jClipboard in your page\n\n\t\u003cscript type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript type=\"text/javascript\" src=\"jquery.zclip.js\"\u003e\u003c/script\u003e\n\n###Usage\n\nActivate jClipboard on the element that you'd like to use as your copy button.\n````javascript\n$('a.copy').jclip({\n\tpath:'js/jClip10.swf',\n\tcopy:function(){\n\t\treturn $('textarea#myText').val();\n\t\t}\n)};\n````\n\nWe accept some other parameters too.  Here's a full list:\n\n * `path`: Path to the jClipboard .SWF file.  Defaults to `js/jClip10.swf`\n * `copy`: Tells jClip what text or elements to copy.  Accepts strings, jQuery objects, DOM Elements, and functions.\n * `success`: Callback function executed after text has been copied.  Accepts one parameter containing the text that was copied.\n * `setHandCursor`: Set to `false` if you do not wish to use a pointer cursor over your copy button.  Defaults to `true`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmod%2Fjclipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmod%2Fjclipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmod%2Fjclipboard/lists"}