Stories
Slash Boxes
Comments

Dev.SN ♥ developers

posted by LaminatorX on Thursday February 20 2014, @04:45PM   Printer-friendly
from the I'm-so-meta-even-this-acronym dept.

jcd writes:

"I'm rather excited to get going with Soylent and to watch it grow. Nay, help it grow. I have lurked in /. for more than a decade (note: I'm not the same username over there, I know, how sneaky), and always wished I could have been involved with the beginning. So this is a great opportunity, and I joined as soon as I saw what Soylent was doing. Not to mention the fact that I felt right at home with the old style. It's very comfortable.

So here's a question for everyone. Are we going to be the same as slashdot? A clone that focuses as entirely as possible on tech related news? Or will we branch out to other topics? I'm interested to see either way. I posted a comment to this effect in one of our two existing polls, and it may be a community-wide assumption, but I do think it merits a discussion."

 
This discussion has been archived. No new comments can be posted.
Display Options Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1) by stderr on Friday February 21 2014, @11:07AM

    by stderr (11) on Friday February 21 2014, @11:07AM (#4346) Journal

    I have only tested this in "Nested"-mode, but if you can make some "pretty" buttons and hook them up to the following hide_comment(cid) and show_comment(cid) functions, I think we got a very simple POC...

    function hide_comment(cid)
    {
       var comment=document.getElementById("comment_"+cid);
       if(!comment) return;

       var details=comment.getElementsByClassName("details");
       if(details) details[0].style.setProperty("display","none",null );

       var commentbody=comment.getElementsByClassName("commen tBody");
       if(commentbody) commentbody[0].style.setProperty("display","none", null);

       var commentsub=comment.getElementsByClassName("comment Sub");
       if(commentsub) commentsub[0].style.setProperty("display","none",n ull);

       var commtree=document.getElementById("commtree_"+cid);
       if(commtree) commtree.style.setProperty("display","none",null);
    }

    function show_comment(cid)
    {
       var comment=document.getElementById("comment_"+cid);
       if(!comment) return;

       var details=comment.getElementsByClassName("details");
       if(details) details[0].style.removeProperty("display");

       var commentbody=comment.getElementsByClassName("commen tBody");
       if(commentbody) commentbody[0].style.removeProperty("display");

       var commentsub=comment.getElementsByClassName("comment Sub");
       if(commentsub) commentsub[0].style.removeProperty("display");

       var commtree=document.getElementById("commtree_"+cid);
       if(commtree) commtree.style.removeProperty("display");
    }

    cid is of course the comment-id, so hide_comment(4127); should hide your comment (except for the title bar) and all it's replies (including this, so don't try that!).

    --
    alias sudo="echo make it yourself #" # ... and get off my lawn!
  • (Score: 1) by stderr on Friday February 21 2014, @11:15AM

    by stderr (11) on Friday February 21 2014, @11:15AM (#4350) Journal

    The comment systems inserts a blank after every 50 character in long lines of characters to avoid spam. It should be "commentBody" and "commentSub".

    --
    alias sudo="echo make it yourself #" # ... and get off my lawn!