{"id":21500046,"url":"https://github.com/rayiumir/copycode-js","last_synced_at":"2025-03-17T13:14:50.884Z","repository":{"id":264252165,"uuid":"892834486","full_name":"Rayiumir/copycode-js","owner":"Rayiumir","description":"Simple and Lightweight Library for Copy Codes","archived":false,"fork":false,"pushed_at":"2024-11-23T20:44:39.000Z","size":1342,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T22:41:24.590Z","etag":null,"topics":["clipboard","clipboardjs","copy","copy-paste","copy-to-clipboard"],"latest_commit_sha":null,"homepage":"https://rayiumir.github.io/copycode-js/","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/Rayiumir.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T21:45:36.000Z","updated_at":"2024-11-23T20:44:02.000Z","dependencies_parsed_at":"2024-11-23T03:48:28.336Z","dependency_job_id":null,"html_url":"https://github.com/Rayiumir/copycode-js","commit_stats":null,"previous_names":["rayiumir/copycode-js"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayiumir%2Fcopycode-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayiumir%2Fcopycode-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayiumir%2Fcopycode-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayiumir%2Fcopycode-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rayiumir","download_url":"https://codeload.github.com/Rayiumir/copycode-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039241,"owners_count":20387835,"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":["clipboard","clipboardjs","copy","copy-paste","copy-to-clipboard"],"created_at":"2024-11-23T17:20:27.777Z","updated_at":"2025-03-17T13:14:50.871Z","avatar_url":"https://github.com/Rayiumir.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Rayiumir/copycode-js\" target=\"_blank\"\u003e\n        \u003cpicture\u003e\n            \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./art/CopycodeLogoLight.png\"\u003e\n            \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./art/CopycodeLogoDark.png\"\u003e\n            \u003cimg alt=\"CopyCode JS\" src=\"./art/CopycodeLogoLight.png\"\u003e\n        \u003c/picture\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n# CopyCode JS\n\nSimple and Lightweight Library for Copy-paste Codes\n\n# How to use\n\nAdd this two file in tag body.\n\nAdd JQuery:\n\n```html\n\u003cscript src=\"https://code.jquery.com/jquery-3.7.1.min.js\"\u003e\u003c/script\u003e\n```\nAdd copycode.js:\n\n```html\n\u003cscript src=\"js/galleryslide.js\"\u003e\u003c/script\u003e\n```\n\nCSS:\n\n```css\n.precode .copy {\n    position: absolute;\n    margin: -50px 0px 0px 10px;\n}\n\n.copy {\n    border: 0;\n    padding: 5px 10px;\n    border-radius: 8px;\n    background-color: #1b344d;\n    color: #fff;\n}\n\n.fa-check {\n    color: green;\n}\n```\n\n# Settings\n\nIn using copycode.js you deal with two tags `pre` and `code`. for set the button, use style for button settings and it is compatible in any editor that supports these two tags.\n\n# Screenshot and Demo\n\nDemo: https://rayiumir.github.io/copycode-js/\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./screenshots/screenshot.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./screenshots/screenshot.png\"\u003e\n  \u003cimg alt=\"CopyCode JS\" src=\"./screenshots/screenshot.png\"\u003e\n\u003c/picture\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayiumir%2Fcopycode-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayiumir%2Fcopycode-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayiumir%2Fcopycode-js/lists"}