master
Jordi Boggiano 13 years ago
parent faef780f96
commit f90cdfeec6
  1. 10
      index.php
  2. 11
      php-console.js

@ -74,11 +74,11 @@ if (isset($_POST['code'])) {
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Debug Console</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="ace/ace.js"></script>
<script type="text/javascript" src="ace/mode-php.js"></script>
<script type="text/javascript" src="php-console.js"></script>
<script type="text/javascript">
<script src="jquery-1.7.1.min.js"></script>
<script src="ace/ace.js"></script>
<script src="ace/mode-php.js"></script>
<script src="php-console.js"></script>
<script>
$.console({
tabsize: <?php echo json_encode($options['tabsize']) ?>
});

@ -11,10 +11,11 @@
*
* Source on Github http://github.com/Seldaek/php-console
*/
(function() {
var updateStatusBar, handleKeyPress, options, editor;
(function(require, $, ace) {
"use strict";
var updateStatusBar, prepareClippyButton, refreshKrumoState, handleSubmit, initializeAce,
options, editor;
options = {
tabsize: 4,
editor: 'editor'
@ -50,7 +51,7 @@
$('<a class="expand" href="#">Toggle all</a>')
.click(function(e) {
$('div.krumo-element.krumo-expand').each(function(idx, el) {
krumo.toggle(el);
window.krumo.toggle(el);
});
e.preventDefault();
})
@ -122,4 +123,4 @@
$('form').submit(handleSubmit);
});
};
}());
}(require, jQuery, ace));

Loading…
Cancel
Save