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" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Debug Console</title> <title>Debug Console</title>
<link rel="stylesheet" type="text/css" href="styles.css" /> <link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="ace/ace.js"></script> <script src="ace/ace.js"></script>
<script type="text/javascript" src="ace/mode-php.js"></script> <script src="ace/mode-php.js"></script>
<script type="text/javascript" src="php-console.js"></script> <script src="php-console.js"></script>
<script type="text/javascript"> <script>
$.console({ $.console({
tabsize: <?php echo json_encode($options['tabsize']) ?> tabsize: <?php echo json_encode($options['tabsize']) ?>
}); });

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

Loading…
Cancel
Save