12 lines
463 B
JavaScript
12 lines
463 B
JavaScript
$(window).load(function() {
|
|
var pageTitleValue = $('h1.page-title').text();
|
|
if (pageTitleValue == '') {
|
|
return false;
|
|
} else {
|
|
$('.prettyprint.source.linenums li span').each(function (index) {
|
|
if ($(this).is(':contains(' + pageTitleValue + ')') && $(this).is(':not(:contains(".docx"))') && $(this).is(':not(:contains(".xlsx"))')) {
|
|
$(this).addClass('api_highlighted');
|
|
}
|
|
});
|
|
}
|
|
}); |