Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$(document).ready(function() {
$('.page-header pre code, .top-resource-description pre code, .modal-body pre code').each(function(i, block) {
$('.page-header pre code, .top-resource-description pre code').each(function(i, block) {
hljs.highlightBlock(block);
});

Expand All @@ -17,6 +17,9 @@ $(document).ready(function() {

// do we have such element + is it a modal? --> show it
if (element.length && element.hasClass('modal')) {
element.find('pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
element.modal('show');
}
});
Expand Down