mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 10:47:29 +03:00
20 lines
537 B
JavaScript
20 lines
537 B
JavaScript
|
$(document).ready( function() {
|
||
|
highlightDocVersion();
|
||
|
});
|
||
|
|
||
|
function highlightDocVersion() {
|
||
|
$('.versions').each( function() {
|
||
|
var parts = window.location.pathname.split('/');
|
||
|
var dir = parts.length > 1 ? parts[parts.length-2] : '';
|
||
|
var ver = $.isNumeric(dir) ? dir : 'dev';
|
||
|
$(this).find('a').each( function() {
|
||
|
if ($(this).html() == ver)
|
||
|
$(this)
|
||
|
.removeAttr('href')
|
||
|
.css('text-decoration', 'none')
|
||
|
.css('color', 'initial')
|
||
|
// .css('font-weight','bold');
|
||
|
});
|
||
|
});
|
||
|
}
|