SHARE
TWEET

Untitled

a guest Dec 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. each p in posts              
  2.                 .w3-container.w3-card.w3-black.w3-round.w3-margin
  3.                     p= p.title
  4.                     input(type='hidden', id="idPost" value=p._id)
  5.                     if p.picture
  6.                         img.w3-margin-bottom(src="images/"+p.picture style="width:100%")
  7.                     p= p.content
  8.                     .w3-container.w3-card(id="commentSection")
  9.                         if p.comments
  10.                             each m in p.comments
  11.                                 p= m.user.split(":")[1] + "        "+ m.message
  12.                     textarea(id="NewComment", cols="80%", rows="1" placeholder="Enter a new comment")
  13.    
  14. var num = $(this).closest('w3-container').find(".idPost").val();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top