"Simple Comments"
Bootstrap 3.3.0 Snippet by konkur4

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Author: Konrad Kurkowski http://kurkowski.hpark.pl 30.10.2017 --> <div class="container"> <div class="row"> <h2>Comments |2| <div class="pull-right"><a href="#" id="addacomment" class="btn btn-primary">Add a coment</a> </div></h2> </div> <div class="row" id="addcomment" style="display: none;"> <form> <textarea class="form-control" placeholder="Comment content..."></textarea><br/> <button class="btn btn-primary">Send</button> </form> </div> <hr> <div class="row comment"> <div class="head"> <small><strong class='user'>Diablo25</strong> 30.10.2017 12:13</small> </div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non lorem elementum, accumsan magna sed, faucibus mauris. Nulla pellentesque ante nibh, ac hendrerit ante fermentum sed. Nunc in libero dictum, porta nibh pellentesque, ultrices dolor. Curabitur nunc ipsum, blandit vel aliquam id, aliquam vel velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed sit amet mi dignissim, pretium justo non, lacinia libero. Nulla facilisi. Donec id sem velit. </p> </div> <div class="row comment"> <div class="head"> <small><strong class='user'>Giesche</strong> 30.10.2017 12:13</small> </div> <p>Praesent molestie ante nec metus convallis aliquam. Ut aliquam tincidunt mollis. Maecenas et ex sit amet est vehicula ultrices sed sit amet elit. Suspendisse potenti. Aenean et quam ut purus convallis porttitor. Mauris porttitor pretium elementum. Duis blandit elit tincidunt ipsum ultricies, ut faucibus lorem facilisis. Proin ipsum turpis, pharetra in lorem ac, porta ullamcorper velit. Proin gravida odio eget elit ultricies sodales. Vivamus vel tincidunt ligula. Proin pulvinar pellentesque velit eget luctus. Aliquam vitae enim ut purus vestibulum sollicitudin sit amet eget lacus. Nunc tempus fringilla tincidunt. </p> </div> <hr> </div>
/* Author: Konrad Kurkowski http://kurkowski.hpark.pl 30.10.2017 */ hr{ border-top: 1px solid #000 !important; } .row{ margin-right: 0px; margin-left: 0px; } .comment{ margin-right: 20px; margin-left: 20px; margin-bottom: 30px; } .head{ margin-bottom: 10px; } .user{ margin-right: 10px; }
/* Author: Konrad Kurkowski http://kurkowski.hpark.pl 30.10.2017 */ $(document).on('click', '#addacomment', function(){ $('#addcomment').toggle(); });

Related: See More


Questions / Comments: