Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/werdl/jscredit
https://github.com/werdl/jscredit
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/werdl/jscredit
- Owner: werdl
- License: unlicense
- Created: 2024-01-27T07:38:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T07:46:29.000Z (10 months ago)
- Last Synced: 2024-01-27T08:30:30.659Z (10 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jscredit
> If they might not credit your work## Why
- Let's say you are writing a website.
- But the client is just going to nab your HTML, remove the credit div and run!
- So use jscredit, and get credited every time.## How
- use the version hosted at [the repo](https://raw.githubusercontent.com/werdl/jscredit/main/jscredit-obfuscated.js)
- then make a function call
```js
/**
* Sets or updates the credit information on the webpage.
* If the specified id exists, it updates the content with the provided name and helped_with values.
* If the specified id does not exist, it creates a new div element with the provided id and sets the content.
* Information displayed will be `Thanks to ${name} for helping with ${helped_with}!`
* @param {string} name - The name of the person being credited.
* @param {string} [helped_with="this project"] - The specific project or task the person helped with.
* @param {string} [id="credit"] - The id of the element where the credit information will be displayed.
*/credit("werdl")
```