mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
ed54199260
This updates jsdoc to the latest version from npm and forks a copy of the default jsdoc template. In subsequent commits, we will reapply our customizations to the template and to a jsdoc plugin. This also fixes several bad annotations that the new jsdoc failed to parse. Issue #1259 Change-Id: I00a47270ea4754e1c96c43ca900d5cf889ab72e6
26 lines
674 B
JavaScript
26 lines
674 B
JavaScript
/*global document */
|
|
(function() {
|
|
var source = document.getElementsByClassName('prettyprint source linenums');
|
|
var i = 0;
|
|
var lineNumber = 0;
|
|
var lineId;
|
|
var lines;
|
|
var totalLines;
|
|
var anchorHash;
|
|
|
|
if (source && source[0]) {
|
|
anchorHash = document.location.hash.substring(1);
|
|
lines = source[0].getElementsByTagName('li');
|
|
totalLines = lines.length;
|
|
|
|
for (; i < totalLines; i++) {
|
|
lineNumber++;
|
|
lineId = 'line' + lineNumber;
|
|
lines[i].id = lineId;
|
|
if (lineId === anchorHash) {
|
|
lines[i].className += ' selected';
|
|
}
|
|
}
|
|
}
|
|
})();
|