Skip to content

Commit 1668889

Browse files
committed
improve code blocks
1 parent f6679ee commit 1668889

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

all_static/javascripts/improve.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,7 @@
579579

580580
}, 3000);
581581
});
582-
setTimeout(function () {
583-
$("code.language-r").each(function () {
584-
$(this).children('.ln-num').last().hide();
585-
});
586-
587-
$("code.language-matlab").each(function () {
588-
$(this).children('.ln-num').last().hide();
589-
});
590-
}, 1300);
582+
591583

592584
}
593585
db.menuMobile();
@@ -602,5 +594,14 @@ document.addEventListener("DOMContentLoaded", (event) => {
602594
setTimeout(function () {
603595
hljsln.initLineNumbersOnLoad();
604596
}, 1000);
597+
setTimeout(function () {
598+
$("code.language-r").each(function () {
599+
$(this).children('.ln-num').last().hide();
600+
});
601+
602+
$("code.language-matlab").each(function () {
603+
$(this).children('.ln-num').last().hide();
604+
});
605+
}, 1300);
605606
});
606607
});

0 commit comments

Comments
 (0)