3 ms·
Author here, it's still an early alpha but I'd love to answer any questions that you have. I also have some questions for you if you are interested in the proje
by franciscop 10y ago
Author here, it's still an early alpha but I'd love to answer any questions that you have. I also have some questions for you if you are interested in the project:
- What are the features that you think are most exciting?
- Where would you use it? What kind of projects? I have some ideas of use-cases, but I'd love to hear yours.
- capex 10y agoSeems like a great idea! Just yesterday I created hn-comments[1], a collection of great comments made on HN. Can I embed a single comment as well? Edited for clarity. [1] https://medium.com/hn-comments https://medium.com/hn-comments
- franciscop 10y agoThere is a `sort` and a `limit` parameters so you might be able to work with these if it happens that the comment is in a specified place, but that's really hacky. Otherwise, I could think about adding filters such as: <comment-box hackernews="11850599" filter="id:3243534" class="border"></comment-box> However arguably this is useful because you can show N comments and the UI is made around that. You could also just hide everything else through CSS though: https://jsfiddle.net/franciscop/fygps59v/2/ https://jsfiddle.net/franciscop/fygps59v/2/ comment-box .comment, comment-box .add { display: none; } comment-box #id-12898146 { display: block; }
- capex 10y agoSo every comment has its own id?
- franciscop 10y agoIn the back-end yes, and now in the front-end also (just pushed that update). They are identified in the list as: <li class="comment" id="id-6547567" class="ind-1">...</li> See updated answer and jsfiddle above
- jsingleton 10y agoNice work! How does the initial submission to the sites work? Am I missing something or is this currently a manual process? It would be cool if it submitted on the first comment. N.B. If you auto add all your blog posts to HN you will get silently blocked from submitting (although it will still appear to work from your point of view). You will then need to, firstly notice this, then email the mods to get unblocked. I've hit this myself, so now I just include a simple link to: javascript:window.location=%22https://news.ycombinator.com/submitlink?u=%22+encodeURIComponent(document.location)+%22&t=%22+encodeURIComponent(document.title) You can see this at the bottom of all my posts on https://unop.uk https://unop.uk and I've seen others do something similar.
- franciscop 10y agoI commented in another thread. TL;DR, I love your solution and will try to use AJAX/JS for it, but I'll contact HN first to see if it's okay with them.