mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-28 02:10:56 +02:00
4481fbe361
branch: master
SHA: c7d6de72f7
range SHA: 81f31a3106fb...c7d6de72f785
build id: 375208741
build number: 1103
13 lines
470 B
JavaScript
13 lines
470 B
JavaScript
(function(){
|
|
var matched = location.pathname.match(/\/(manual\/.*\.html)$/);
|
|
if (!matched) return;
|
|
|
|
var currentName = matched[1];
|
|
var cssClass = '.navigation .manual-toc li[data-link="' + currentName + '"]';
|
|
var styleText = cssClass + '{ display: block; }\n';
|
|
styleText += cssClass + '.indent-h1 a { color: #039BE5 }';
|
|
var style = document.createElement('style');
|
|
style.textContent = styleText;
|
|
document.querySelector('head').appendChild(style);
|
|
})();
|