aboutsummaryrefslogtreecommitdiff
path: root/docs/scripts/linenumber.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-07-29 03:39:18 +0300
committerValentin Popov <info@valentineus.link>2017-07-29 03:39:18 +0300
commit4d7d17a98ae96cc2de7c398fa730512705741905 (patch)
tree4b0f9fd667433358560ab84e90de1b306985fd71 /docs/scripts/linenumber.js
parenta7e3aec6138e60e4ffc208d07670965b61dddab4 (diff)
downloadiii-client-4d7d17a98ae96cc2de7c398fa730512705741905.tar.xz
iii-client-4d7d17a98ae96cc2de7c398fa730512705741905.zip
Release of version 2.0.0.
Diffstat (limited to 'docs/scripts/linenumber.js')
-rw-r--r--docs/scripts/linenumber.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/scripts/linenumber.js b/docs/scripts/linenumber.js
deleted file mode 100644
index 8d52f7e..0000000
--- a/docs/scripts/linenumber.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*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';
- }
- }
- }
-})();