ycomments

0.0.2 • Public • Published

YComments

A tiny script to embed discussions from YCombinator's Hacker News.

Usage

Put this in the <head> tag

<script src="https://cdn.rawgit.com/benwinding/ycomments/39084c44/dist/ycomments.min.js"></script>

Put one of these in the <body> tag

Auto Lookup (Page URL)

<div comments="auto"></div>

Specific Discussion

<div comments="16582136"></div>

Output

https://i.imgur.com/yGCb9yf.png

Features

  • 9 kb script minified.
  • Responsive layout
  • Collapsible comments

How was it?

Let me know! https://benwinding.com/contact

Readme

Keywords

none

Package Sidebar

Install

npm i ycomments

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

440 kB

Total Files

12

Last publish

Collaborators

  • benwinding