"Campaign Dashboard"
Bootstrap 3.0.0 Snippet by davidn20

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ----------> <div class="container"> <div class="row" style="margin-top:40px"> <div class="panel"> <div class="panel-heading" hidden> <h3 class="panel-title">Panel 1</h3> <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span> </div> <div class="panel-body"> <div class="row"> <div class="col-sm-3"> <strong style="font-size:large">Panel 1 - EXPANDED</strong> <div> Starts: May 1st, 2017 <br /> Ends: May 30th, 2017 <br /> 1 Month 15 Days remaining </div> </div> <div class="col-sm-6"> <div class="progress" style="margin-top:35px"> <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> <span class="sr-only">60% Complete</span> </div> <span class="progress-completed">60%</span> </div> </div> <div class="col-sm-2"> <div style="margin-left:30px"> Goal <h2>$100,00</h2> </div> </div> <div class="col-sm-1"> <div class="pull-right" style="width:20px; height:100px"> <div class="clickable"><i class="glyphicon glyphicon-resize-small glyphicon-padded"></i></div> <div class="clickable"><i class="glyphicon glyphicon-edit glyphicon-padded"></i></div> <div class="clickable"><i class="glyphicon glyphicon-signal glyphicon-padded"></i></div> </div> </div> </div> <div class="row"> <div class="col-sm-7" style="border:5px solid;"> <div id="morris-area-chart"></div> </div> <div class="col-sm-5"> <div class="col-sm-6 info-box"> Test 1 </div> <div class="col-sm-6 info-box"> Test 2 </div> <div class="col-sm-6 info-box"> Test 3 </div> <div class="col-sm-6 info-box"> Test 4 </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-success"> <div class="panel-heading"> <h3 class="panel-title">Panel 2</h3> <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span> </div> <div class="panel-body collapse"> <span class="pull-right clickable"><i class="glyphicon glyphicon-resize-small"></i></span> <h2>Panel 2 - EXPANDED</h2> </div> </div> </div> </div> </div>
.row{ padding: 0 10px; } .clickable{ cursor: pointer; } .panel-heading span { margin-top: -20px; font-size: 15px; } .panel{ background-color: #f5f5f5; border: solid 1px #e3e3e3; border-left: 3px solid #66b92e !important; } .glyphicon-padded { padding:10px; } .info-box{ width:200px; height:130px; border:2px solid; padding:10px; } .progress { position: relative; height: 40px; border-radius: 25px; } .progress > .progress-type { position: absolute; left: 0px; font-weight: 800; padding: 3px 30px 2px 10px; color: rgb(255, 255, 255); background-color: rgba(25, 25, 25, 0.2); } .progress > .progress-completed { position: absolute; right: 0px; font-weight: 800; padding: 3px 10px 2px; } #morris-area-chart{ width:600px; height:250px; border:2px solid; }
$(document).on('click', '.panel-heading span.clickable', function(e){ var $this = $(this); $this.parents('.panel').find('.panel-heading').prop('hidden', 'hidden'); $this.parents('.panel').find('.panel-body').slideDown(); $this.removeClass('panel-collapsed'); }) $(document).on('click', '.panel-body div.clickable', function(e){ var $this = $(this); $this.parents('.panel').find('.panel-body').slideUp(); $this.parents('.panel').find('.panel-heading').removeProp('hidden'); $this.addClass('panel-collapsed'); })

Related: See More


Questions / Comments: