iso-countries-languages/esdoc/script/manual.js
pinturic 49a5a4c1ad First commit
README.md edited online with Bitbucket

Add esdoc

Upgraded dependencies

Fixed dependencies in readme

Fix description

Fixed readme

0.1.0

config.env deleted online with Bitbucket
2016-11-09 11:48:48 +01:00

13 lines
556 B
JavaScript

(function(){
var matched = location.pathname.match(/([^/]*)\.html$/);
if (!matched) return;
var currentName = matched[1];
var cssClass = '.navigation [data-toc-name="' + currentName + '"]';
var styleText = cssClass + ' .manual-toc { display: block; }\n';
styleText += cssClass + ' .manual-toc-title { background-color: #039BE5; }\n';
styleText += cssClass + ' .manual-toc-title a { color: white; }\n';
var style = document.createElement('style');
style.textContent = styleText;
document.querySelector('head').appendChild(style);
})();