mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
42beef04ff
* Deprecate bindToJquery * Tweak
14 lines
637 B
HTML
14 lines
637 B
HTML
<script type="text/javascript">
|
|
var phpdebugbar = new PhpDebugBar.DebugBar();
|
|
phpdebugbar.addTab("messages", new PhpDebugBar.DebugBar.Tab({"icon":"list-alt","title":"Messages", "widget": new PhpDebugBar.Widgets.MessagesWidget()}));
|
|
phpdebugbar.addIndicator("time", new PhpDebugBar.DebugBar.Indicator({"icon":"time"}), "right");
|
|
phpdebugbar.setDataMap({
|
|
"messages": ["messages.messages", []],
|
|
"messages:badge": ["messages.count", null],
|
|
"time": ["time", "0s"]
|
|
});
|
|
phpdebugbar.restoreState();
|
|
phpdebugbar.ajaxHandler = new PhpDebugBar.AjaxHandler(phpdebugbar, undefined, true);
|
|
phpdebugbar.ajaxHandler.bindToXHR();
|
|
phpdebugbar.addDataSet(
|