https://github.com/rayiumir/copycode-js
Simple and Lightweight Library for Copy Codes
https://github.com/rayiumir/copycode-js
clipboard clipboardjs copy copy-paste copy-to-clipboard
Last synced: about 1 year ago
JSON representation
Simple and Lightweight Library for Copy Codes
- Host: GitHub
- URL: https://github.com/rayiumir/copycode-js
- Owner: Rayiumir
- Created: 2024-11-22T21:45:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T20:44:39.000Z (over 1 year ago)
- Last Synced: 2025-01-23T22:41:24.590Z (over 1 year ago)
- Topics: clipboard, clipboardjs, copy, copy-paste, copy-to-clipboard
- Language: JavaScript
- Homepage: https://rayiumir.github.io/copycode-js/
- Size: 1.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CopyCode JS
Simple and Lightweight Library for Copy-paste Codes
# How to use
Add this two file in tag body.
Add JQuery:
```html
```
Add copycode.js:
```html
```
CSS:
```css
.precode .copy {
position: absolute;
margin: -50px 0px 0px 10px;
}
.copy {
border: 0;
padding: 5px 10px;
border-radius: 8px;
background-color: #1b344d;
color: #fff;
}
.fa-check {
color: green;
}
```
# Settings
In 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.
# Screenshot and Demo
Demo: https://rayiumir.github.io/copycode-js/