mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-06 16:02:39 +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');
|
||
|
}
|
||
|
})();
|