diff --git a/j/dip3.js b/j/dip3.js index 32e6f31..a902c0d 100644 --- a/j/dip3.js +++ b/j/dip3.js @@ -141,12 +141,21 @@ $(document).ready(function() { var hip = {'background-color':'#eee','cursor':'default'}; var unhip = {'background-color':'inherit','cursor':'inherit'}; $("pre.code, pre.screen").each(function() { - $(this).find("a:not([href])").each(function(i) { + var s = ''; + var ol = $(this).next("ol"); + var refs = $(this).find("a:not([href])"); + refs.each(function(i) { + var li = ol.find("li:nth-child(" + (i+1) + ")"); + s += "