Skip to content

Commit

Permalink
add circle
Browse files Browse the repository at this point in the history
  • Loading branch information
dotos committed Aug 7, 2017
1 parent 5906efc commit c89a4e1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
machine:
node:
version: 6
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![](./src/imageslogo.opacity.png)
# Valine
# Valine [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat-square)](#donate)
> A simple comment system based on Leancloud.
------------------------------
Expand All @@ -17,8 +17,8 @@
- [Useage](#useage)
- [Contributors](#contributors)
- [Features](#features)
- [License](#license)
- [Donate](#donate)
- [License](#license)

## Installation
**1. Installation**
Expand Down Expand Up @@ -75,17 +75,13 @@ import Valine from 'valine'
- Syntax highlighting
- And more...

## License
[GPL-2.0](https://github.com/xCss/Valine/blob/master/LICENSE)

## Donate
<table>
<tr>
<td><img width=150 src="./src/images/alipay.png"/></td>
<td><img width=150 src="./src/images/wechatpay.png"/></td>
</tr>
<tr>
<td >支付宝</td>
<td >微信</td>
</tr>
</table>
If you are enjoying this app, please consider making a donation to keep it alive, I will try my best to dedicate more time or even full time to work on it. 😉

- [Donate via Wechat](https://ws1.sinaimg.cn/large/006qRazegy1fibhig0ywqj30es0erabm.jpg)
- [Donate via Alipay](https://ws1.sinaimg.cn/large/006qRazegy1fibhifhhfnj30ix0io0tt.jpg)

If you are not available for this, simply spreading the word for us would help too!

## License
[GPL-2.0](https://github.com/xCss/Valine/blob/master/LICENSE)
2 changes: 1 addition & 1 deletion dist/Valine.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@
<script>
window.valine = new Valine({
av: AV,
el: '.comment',
app_id: '3GiiCyXCrGbOIH3EelCfJ6yw-gzGzoHsz',
app_key: 'iuneD4hXPQImdHQSRE0aOcRF',
el: '.comment'
placeholder: 'ヾノ≧∀≦)o来啊,快活啊!',

});
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/Valine.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class Valine {
return;
}
_root.element.classList.add('valine');

let eleHTML = `<div class="vwrap"><div class="vedit"><textarea class="veditor vinput" placeholder="ヾノ≧∀≦)o来啊,快活啊!"></textarea></div><div class="vcontrol"><div class='vident'><input placeholder="称呼" class="vnick vinput" type="text"><input placeholder="网址" class="vlink vinput" type="text"></div><div class="vright"><button type="button" class="vsubmit vbtn">回复</button></div></div></div><div class="pd5 txt-right power">Powered By <a href="https://github.com/xCss/Valine" target="_blank">Valine</a></div><ul class="vlist"><li class="vloading"></li><li class="vempty"></li></ul>`;
let placeholder = option.placeholder || 'ヾノ≧∀≦)o来啊,快活啊!';
let eleHTML = `<div class="vwrap"><div class="vedit"><textarea class="veditor vinput" placeholder="${placeholder}"></textarea></div><div class="vcontrol"><div class='vident'><input placeholder="称呼" class="vnick vinput" type="text"><input placeholder="网址" class="vlink vinput" type="text"></div><div class="vright"><button type="button" class="vsubmit vbtn">回复</button></div></div></div><div class="pd5 txt-right power">Powered By <a href="https://github.com/xCss/Valine" target="_blank">Valine</a></div><ul class="vlist"><li class="vloading"></li><li class="vempty"></li></ul>`;
_root.element.innerHTML = eleHTML;

// loading
Expand Down

0 comments on commit c89a4e1

Please sign in to comment.