Skip to content

Commit 10f983c

Browse files
committed
...
1 parent fe431d7 commit 10f983c

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

assets/css/default.css

+2
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ div#right {
5959
div#left {
6060
float: left;
6161
width: 15%;
62+
overflow-x: scroll;
63+
height:100%;
6264
}

assets/js/default.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
$(function(){
2-
var main = $("#table-main");
3-
var selected = main;
2+
var main = $("table")[0];
3+
var selected = $(main);
4+
5+
$(main).fadeIn();
46

57
$("#tree").jstree({
68
"plugins": [

explain.php

+6-11
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ function scanpath($path) {
2323
return $files;
2424
}
2525

26-
function table($id, &$explained, &$lines, &$first) {
26+
function table($id, &$explained, &$lines) {
2727
?>
28-
<table id="<?=sprintf("table-%s", md5($id)) ?>" style="<?=($first) ? "" : "display:none;" ?>">
28+
<table id="<?=sprintf("table-%s", md5($id)) ?>" style="display:none;">
2929
<thead>
3030
<tr>
3131
<th>LINE</th>
@@ -169,25 +169,20 @@ function table($id, &$explained, &$lines, &$first) {
169169
<div id="right">
170170
<?php
171171
if ($explained) {
172-
$first = true;
173-
174172
foreach ($explained as $file => $explanation) {
175-
table($file, $explanation, $lines[$file], $first);
176-
177-
if ($first)
178-
$first = false;
179-
173+
table($file, $explanation, $lines[$file]);
174+
180175
if ($classes[$file]):
181176
foreach ($classes[$file] as $class => $methods):
182177
foreach ($methods as $method => $opcodes):
183-
table("{$file}-{$class}-{$method}", $opcodes, $lines[$file], $first);
178+
table("{$file}-{$class}-{$method}", $opcodes, $lines[$file]);
184179
endforeach;
185180
endforeach;
186181
endif;
187182

188183
if ($functions[$file]):
189184
foreach ($functions[$file] as $function => $opcodes):
190-
table("{$file}-{$function}", $opcodes, $lines[$file], $first);
185+
table("{$file}-{$function}", $opcodes, $lines[$file]);
191186
endforeach;
192187
endif;
193188
}

0 commit comments

Comments
 (0)