mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-16 21:36:41 +02:00
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
(function(){
|
|
prettyPrint();
|
|
var lines = document.querySelectorAll('.prettyprint.linenums li[class^="L"]');
|
|
for (var i = 0; i < lines.length; i++) {
|
|
lines[i].id = 'lineNumber' + (i + 1);
|
|
}
|
|
|
|
if (location.hash) {
|
|
var line = document.querySelector(location.hash);
|
|
if (line) line.classList.add('active');
|
|
}
|
|
})();
|