hackernews-button
所属分类:嵌入式/单片机/硬件编程
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2019-01-10 04:05:59
上 传 者:
sh-1993
说明: 可嵌入黑客新闻按钮+您网站的投票计数器,
(Embeddable Hacker News button + vote counter for your site,)
文件列表:
app.yaml (166, 2014-08-31)
hnbutton/ (0, 2014-08-31)
hnbutton/button.html (2236, 2014-08-31)
hnbutton/hnbutton.go (4427, 2014-08-31)
static/ (0, 2014-08-31)
static/hn.js (1919, 2014-08-31)
static/hn.min.js (1315, 2014-08-31)
test.html (1136, 2014-08-31)
# Embeddable Hacker News vote / counter button
![HN Button](http://img.skitch.com/20120415-bp8igiq74w53f91swt6tcy9cx8.jpg)
Async, embeddable submit + vote counter button for Hacker News.
- If the story has not been posted to HN, "Submit" button is shown, otherwise latest point count is displayed.
- Auto-detects Google Analytics and registers clicks events (see reports under `Traffic Sources > Social > Social Plugins`).
### Embedding the button
**Step 1**, place the HN link where you want the button appear on the page:
```html
Vote on HN
Vote on HN
```
**Step 2**, include the (async) javascript file:
```html
```
_Note: you can safely embed multiple buttons on the same page._
### Misc
* Kudos to @sbashyal and @stbullard for the button styling (hnlike.com)
* Kudos to Algolia for an [awesome HN API](http://hn.algolia.com/)
* (MIT License) - Copyright (c) 2012 Ilya Grigorik
近期下载者:
相关文件:
收藏者: