https://github.com/code2life/shaoshuo
A Portable Comment System
https://github.com/code2life/shaoshuo
Last synced: 11 months ago
JSON representation
A Portable Comment System
- Host: GitHub
- URL: https://github.com/code2life/shaoshuo
- Owner: Code2Life
- License: mit
- Created: 2017-04-27T03:37:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T07:55:33.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T10:47:41.911Z (over 1 year ago)
- Language: JavaScript
- Size: 288 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shaoshuo
A Portable Comment System
## Description
A simple comment plugin write by _jQuery_ With [APICloud](http://www.apicloud.com/) backend storage
## Usage
Shaoshuo Comment Plugin is easy to use. You can generate a simple comment system like following
```javascript
shaoshuo.init({
appKey: 'xxxx', //a unique key for a website, you can use 'CommonKey' or ask author for the unique key
page: 'xxxx', //a unique key for a page
element: 'xxxx', //the DOM element to load comment plugin
editorHeight: '200px', //comment/reply editor initial height, optional
editorMaxHeight: '300px' //comment/reply editor max height, optional
});
```
## Notice
1. You can customize CSS by overwrite classes in comment.css
2. If you want to use your own database, you could register a new cloud database in [APICloud](http://www.apicloud.com/) and create 2 documents: app and comment
3. If you don't want to use APICloud, you could implement RESTFUL API interfaces
4. Up comment button can only press onece in 5s, because of the throttle
## Demo & Source
You can comment on _[DEMO Page](http://code2life.top./Shaoshuo/)_
Here is the project source code : _[Github](https://github.com/Code2Life/Shaoshuo)_