SOPT 28220 FULL

by brasofilo

HTML

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
<div class="phpdebugbar">
	<div class="phpdebugbar-header">		
		<a href="javascript:" class="phpdebugbar-tab" data-tab="messages"><span class="text">Messages</span><span class="badge" style="display: inline;">4</span></a>
		<a href="javascript:" class="phpdebugbar-tab" data-tab="request"><span class="text">Request</span><span class="badge"></span></a>
		<a href="javascript:" class="phpdebugbar-tab" data-tab="timeline"><span class="text">Timeline</span><span class="badge"></span></a>
		<a href="javascript:" class="phpdebugbar-tab" data-tab="exceptions"><span class="text">Exceptions</span><span class="badge" style="display: inline;">1</span></a>
		<a href="javascript:" class="phpdebugbar-tab" data-tab="database"><span class="text">Database</span><span class="badge" style="display: inline;">6</span></a>

        <a class="phpdebugbar-close-btn" href="javascript:"><span class="icon-remove"></span></a>
       <span class="phpdebugbar-indicator" style="float: right;"><i class="icon-time"></i><span class="text">10ms</span><span class="tooltip">Request Duration</span></span>
       <span class="phpdebugbar-indicator" style="float: right;"><i class="icon-cogs"></i><span class="text">1.25MB</span><span class="tooltip">Memory Usage</span></span>
</div>
	
	<div class="phpdebugbar-body">
		<div class="phpdebugbar-resize-handle"></div>
		<div class="phpdebugbar-panel active" id="tab-messages">
			<div class="phpdebugbar-widgets-messages">
				<ul class="phpdebugbar-widgets-list">
					<li class="list-item"><span class="value info">hello</span><span class="label">info</span>
					</li>
					<li class="list-item"><span class="value warning">world</span><span class="label">warning</span>
					</li>
					<li class="list-item" style="cursor: pointer;"><span class="value info">Array
						(
						[toto] =&gt; Array
						(
						[0] =&gt; titi
						[1] =&gt;...

CSS

.phpdebugbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  font-family: arial;
  background: #fff;
}

/* -------------------------------------- */

.phpdebugbar-header {
  background: #efefef url(http://phpdebugbar.com/debugbar/php-icon.png) no-repeat 5px 4px;
  padding-left: 29px;
  min-height: 26px;
}

.phpdebugbar-header:after {
  clear: both;
}

/* -------------------------------------- */

.phpdebugbar-tab,
.phpdebugbar-indicator,
.phpdebugbar-close-btn {
  float: left;
  padding: 5px 8px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}
.phpdebugbar-indicator,
.phpdebugbar-close-btn {
  float: right;
  border-right: 1px solid #ddd;
}

.phpdebugbar-tab.active {
  background: #ccc;
  color: #444;
  background-image: linear-gradient(bottom, rgb(173,173,173) 41%, rgb(209,209,209) 71%);
  background-image: -o-linear-gradient(bottom, rgb(173,173,173) 41%, rgb(209,209,209) 71%);
  background-image: -moz-linear-gradient(bottom, rgb(173,173,173) 41%, rgb(209,209,209) 71%);
  background-image: -webkit-linear-gradient(bottom, rgb(173,173,173) 41%, rgb(209,209,209) 71%);
  background-image: -ms-linear-gradient(bottom, rgb(173,173,173) 41%, rgb(209,209,209) 71%);
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.41, rgb(173,173,173)), color-stop(0.71, rgb(209,209,209)));
}
  .phpdebugbar-tab .badge {
    display: none;
    margin-left: 5px;
    font-size: 11px;
    padding: 1px 6px;
    background: #ccc;
    border-radius: 4px;
    color: #555;
  }
  .phpdebugbar-tab .badge.important {
    background: #ed6868;
    color: white;
  }

.phpdebugbar-close-btn {
  display: none;
}

.phpdebugbar-indicator {
  position: relative;
}
  .phpdebugbar-indicator .text {
    margin-left: 5px;
  }
  .phpdebugbar-indicator .tooltip {
    display: none;
    position: absolute;
    top: -30px;
    background: #efefef;
    opacity: .7;
    border: 1px solid #ccc;
    color: #555;
    font-size: 11px;
...

JavaScript

$('.phpdebugbar-tab').click(function(){
    $('.phpdebugbar-panel.active').removeClass('active');
    var tab = $(this).data('tab');
    $('#tab-'+tab).addClass('active');
    if( $('.phpdebugbar-body').is(":hidden") )
    {
        $('.phpdebugbar-close-btn').show();
        $('.phpdebugbar-body').toggle();
    }
});

$('.phpdebugbar-close-btn').click(function(){
    $('.phpdebugbar-close-btn').hide();
    $('.phpdebugbar-body').toggle();
});